Skip to content

Instantly share code, notes, and snippets.

View AwoyoToyin's full-sized avatar
🏠
Working from home

Awoyo Oluwatoyin Stephen AwoyoToyin

🏠
Working from home
View GitHub Profile
@AwoyoToyin
AwoyoToyin / Place.js
Created January 22, 2018 06:02 — forked from PascalAnimateur/Place.js
Geospatial example in Sails.js using native MongoDB query
/* Place model */
module.exports = {
attributes: {
name: {
type: 'string',
required: true
},
@AwoyoToyin
AwoyoToyin / User.php
Created March 7, 2016 10:03 — forked from Ocramius/User.php
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User