This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL list from Tuesday, Jan. 13 2015 23:57 PM | |
To copy this list, type [Ctrl] A, then type [Ctrl] C. | |
oop - How is almost everything in Javascript an object? - Stack Overflow | |
http://stackoverflow.com/questions/9108925/how-is-almost-everything-in-javascript-an-object | |
javascript - Everything is an object? - Stack Overflow | |
http://stackoverflow.com/questions/19165021/everything-is-an-object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs='git status' | |
alias gc='git commit -m' | |
alias gb='git branch' | |
alias gaa='git add --all' | |
alias gco='git checkout' | |
alias gpom='git push origin master' | |
alias gplom='git pull --rebase origin master' | |
alias ga='git add' | |
alias gd='git diff' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node = Struct.new(:value, :next) | |
class LinkedList | |
def initialize(*values) | |
@head = Node.new(values.shift, nil) | |
values.each { |v| add(v) } | |
end | |
def add(value) | |
current = @head |
NewerOlder