useradd -m USERNAME
passwd USERNAME
| /** | |
| * Simple event dispatcher | |
| * | |
| * Example | |
| * | |
| * var MyConstructor = function () { | |
| * var self = this | |
| * var count = 0 | |
| * setInterval(function () { | |
| * self.emit('tick', {count: count}) |
| # requires active_support | |
| list = [:foo, :bar, :baz] | |
| # Today: | |
| seed = Time.find_zone!('America/Los_Angeles').today.at_beginning_of_day.to_i | |
| list.shuffle(random: Random.new(seed)) # => [:bar, :baz, :foo] | |
| list.shuffle(random: Random.new(seed)) # => [:bar, :baz, :foo] | |
| # Tomorrow: |
| var debounce = function(fn) { | |
| var timeout; | |
| var debouncedFn = function() { | |
| clearTimeout(timeout); | |
| timeout = setTimeout(fn.apply.bind(fn, this, arguments), 500); | |
| }; | |
| return debouncedFn; | |
| }; |
The Mercator projection is available as d3.geo.mercator.
| var width = 960, | |
| height = 500; | |
| var projection = interpolatedProjection( | |
| d3.geo.orthographic() | |
| .rotate([10, -10]) | |
| .center([-10, 10]) | |
| .scale(240) | |
| .translate([width / 2, height / 2]), | |
| d3.geo.equirectangular() |
| let g:whippet_path = '/path/to/whippet' | |
| let g:ctrlp_use_caching = 0 | |
| let g:whippet_exclude_paths = ".git,.svn,tmp,log,.bundle" | |
| let g:ctrlp_user_command = g:whippet_path." --exclude=".g:whippet_exclude_paths | |
| let g:ctrlp_match_func = { 'match': 'Whippet' } | |
| function Whippet(items, str, limit, mmode, ispath, crfile, regex) | |
| let cmd = g:whippet_path.' --exclude='.g:whippet_exclude_paths |
| ruby -rbase64 -e "File.open(ARGV[0], 'r') {|file| puts Base64.encode64(file.read) }" <file> |