Skip to content

Instantly share code, notes, and snippets.

View madpilot's full-sized avatar

Myles Eftos madpilot

View GitHub Profile
@gbissett
gbissett / robot_rock.rb
Created November 19, 2010 02:19
automates the album cover game
# ____ _ _ ____ _
# | _ \ ___ | |__ ___ | |_ | _ \ ___ ___| | __
# | |_) / _ \| '_ \ / _ \| __| | |_) / _ \ / __| |/ /
# | _ < (_) | |_) | (_) | |_ | _ < (_) | (__| <
# |_| \_\___/|_.__/ \___/ \__| |_| \_\___/ \___|_|\_\
#
# 1. http://en.wikipedia.org/wiki/Special:Random
# The first article title on the page is the name of your band.
#
# 2. www.quotationspage.com/random.php3
@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
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!"