Skip to content

Instantly share code, notes, and snippets.

View simonecorsi's full-sized avatar
🦄
Magic unicorn between machine and people

Simone Corsi simonecorsi

🦄
Magic unicorn between machine and people
View GitHub Profile
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@simonecorsi
simonecorsi / itemFactory.js
Created May 6, 2015 12:09
AngularFire Item Management Factory
'use strict';
// Remenber to add firebase/AngularFire scripts in you index.html
// FB_URL define .constant("FB_URL", "http://<firebase>.firebase.io")
angular.module("ItemFactory", [])
.factory("ItemData",function(FB_URL, $firebase, Auth){
var ref = new Firebase(FB_URL);