Skip to content

Instantly share code, notes, and snippets.

View aeron11's full-sized avatar

Aeron Zhang aeron11

  • JD
  • Beijing China
View GitHub Profile
@aeron11
aeron11 / gist:618d9817bf58f39ec040
Created December 3, 2015 05:53 — forked from Mithrandir0x/gist:3639232
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@aeron11
aeron11 / dabblet.css
Created May 11, 2015 06:34 — forked from anonymous/dabblet.css
Untitled
.right-top{left:51%;width:50%;height:25%;top:26.5%;background:#f0f;position:absolute;text-align:center;}
.right-buttom{left:51%;width:50%;height:25%;top:52%;background:blue;position:absolute;text-align:center;}
.left{left:0.5%;width:50%;height:50%;top:26.5%;background:green;position:absolute;text-align:center;}
.top{left:0.5%;width:100%;height:25%;top:0.5%;background:yellow;position:absolute;text-align:center;}