I hereby claim:
- I am ryanttb on github.
- I am ryanttb (https://keybase.io/ryanttb) on keybase.
- I have a public key ASCRNQ4JXIt3D6GbMUtFuaaQENLVbpYSZrIsHkIbMmj2pwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# this script requires root | |
# be sure to run the following before running this: | |
# $ sudo su | |
# since there's an issue piping the curl response to bash | |
# just download the install script | |
curl -sL https://deb.nodesource.com/setup_6.x > install_node.sh |
# GC.start does not help here, the heap keeps growing | |
class Foo < ActiveRecord::Base | |
def self.process_all! | |
all.each { |record| | |
puts "Processing #{ record.id }" | |
record.high_mem_process | |
record.save! | |
GC.start |
function toWebMercator(googLatLng) { | |
// you'll have to put your conversion code here (not included in this gist) | |
return { x: googLatLng.lng(), y: googLatLng.lat() }; | |
} | |
geocoder.geocode({ address: "somewhere" }, function (result, status) { | |
if (status == google.maps.GeocoderStatus.OK && result.length > 0) { | |
var | |
first = result[0], |