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
'use strict'; | |
angular.module('ModuleName') | |
.directive('fixParsingInconsistencies', function () { | |
return { | |
require: '?ngModel', | |
priority: (angular.version.full.indexOf('1.2.') === 0 && | |
angular.version.full !== '1.2.0rc1' && | |
angular.version.full !== '1.2.0-rc.2') ? 1 : 0, | |
restrict: 'A', |
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
# GistID: 10715991 | |
StringLiterals: | |
EnforcedStyle: double_quotes | |
Enabled: true | |
Style/ClassLength: | |
CountComments: false # count full line comments? | |
Max: 150 | |
Documentation: | |
Enabled: false |
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
#!/bin/sh | |
echo $* | |
vimdiff "$1" "$2" |
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
Show hidden characters
{ | |
"node" : true, | |
"browser" : true, | |
"es5" : false, | |
"esnext" : true, | |
"bitwise" : true, | |
"camelcase": true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"immed" : true, |
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
#GistID: 9818509 | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. |
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
#GistID:9531777 | |
[user] | |
name = Alexander Jeurissen | |
email = alexanderjeurissen@gmail.com | |
[diff] | |
external = git_diff_wrapper | |
[pager] | |
diff = | |
[color] | |
ui = auto |
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
#GistID:9526183 | |
# javascript | |
node_modules | |
coverage | |
dist | |
.tmp | |
npm-debug.log | |
app/bower_components | |
*.tern.project |
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
" E 888 888 d88b | |
" d8b 888 e88~~8e Y88b / /~~~8e 888-~88e e88~\888 e88~~8e 888-~\ Y88P d88~\ | |
" /Y88b 888 d888 88b Y88b/ 88b 888 888 d888 888 d888 88b 888 __/ C888 | |
" / Y88b 888 8888__888 Y88b e88~-888 888 888 8888 888 8888__888 888 Y88b | |
" /____Y88b 888 Y888 , /Y88b C888 888 888 888 Y888 888 Y888 , 888 888D | |
" / Y88b 888 '88___/ / Y88b `88_-888 888 888 '88_/888 "88___/ 888 \_88P | |
" Y88b / ,e, | |
" Y88b / " 888-~88e-~88e 888-~\ e88~~\ |
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
//coffescript version | |
String::toBinary = -> | |
@split("").reduce (result, char) -> | |
bin = char.charCodeAt(0).toString(2) | |
result += "00000000".slice(0, 8 - bin.length) + bin | |
, "" |
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
String::charCodes = -> | |
@split("").reduce (previousValue, currentValue, index, array) -> | |
array[index] = currentValue.charCodeAt 0 | |
array | |
, 0 |