Skip to content

Instantly share code, notes, and snippets.

@aysbg
aysbg / httpexample
Last active August 29, 2015 14:18
http example
(function () {
'use strict';
var UserService = [
'$http', '$q',
function ($http, $q) {
return {
getOne: getOne
};
@aysbg
aysbg / store-pattern.js
Created July 6, 2016 15:23
Store pattern implementation
// Store implementation:
import { EventEmitter } from 'events';
const store = new EventEmitter();
let game = {};
store.GAME = () => {
return game;
};

Keybase proof

I hereby claim:

  • I am aysbg on github.
  • I am aysbg (https://keybase.io/aysbg) on keybase.
  • I have a public key ASDEOPBhfZafjpS1XcNSbmd1QZBM9Kobp2jpMoWXt04tngo

To claim this, I am signing this object:

// Libraries
import Sequelize from 'sequelize';
// App
import Model from './Model';
class User extends Model {
static get type() {
return `
type User {