Skip to content

Instantly share code, notes, and snippets.

View yuigoto's full-sized avatar
😓
pretty much exhausted, missing some sleep

Fabio Goto yuigoto

😓
pretty much exhausted, missing some sleep
View GitHub Profile
@yuigoto
yuigoto / Facebook.js
Created May 25, 2020 20:53 — forked from recca0120/Facebook.js
Facebook Promise Wrapper
'use strict';
export class Facebook {
getScript() {
return new Promise((resolve) => {
if (window.FB) {
resolve(window.FB);
}
const id = 'facebook-jssdk';
@yuigoto
yuigoto / User.php
Created March 16, 2018 02:50 — 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