Usage: in your ~/.bash_profile, include these two lines:
export CHEATS=~/path/to/cheats
. $CHEATS/load
custom |
Usage: in your ~/.bash_profile, include these two lines:
export CHEATS=~/path/to/cheats
. $CHEATS/load
url_safe_64_chars = ( 0..9 ).to_a + ( 'a'..'z' ).to_a + ( 'A'..'Z' ).to_a + %w[ - _ ] | |
random_hashcodes = 100.times.map{ |i| url_safe_64_chars[ rand * ( 64 + 1 ) ] }.join.scan( /.{10}/ ) | |
# Returns (e.g.) => ["D6sccOU_tN", "jjwXK3_zxd", "395npb8lPg", "uYPpDkyIBE", "PBbiprpK7w", "KihPOuTTEu", "ztW8GAKRuG", "0Abw9T6-CG", "wlrPjnLUHf"] | |
# More info on base 64 encoding: http://en.wikipedia.org/wiki/Base64 |
git grep Person $(git rev-list --all) |
rb(main):057:0> sha512 = Digest::SHA512.hexdigest( "The quick brown fox jumps over the lazy dog" ) | |
=> "07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6" | |
irb(main):058:0> location = 'nodemap.org/' + sha512 | |
=> "nodemap.org/07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6" | |
irb(main):059:0> location.size | |
=> 140 |
puts Node.all.map{|m| "#{m.id}: #{m.errors.inspect}" unless m.valid?}.compact |
.idea | |
Cakefile.js | |
tmp/ | |
.idea | |
Cakefile.js | |
tmp/ | |
.idea | |
Cakefile.js | |
tmp/ | |