I hereby claim:
- I am eoy on github.
- I am eoy (https://keybase.io/eoy) on keybase.
- I have a public key ASCI5tQ_5TM2p4HIx2zRDSSs1UQykg6AOUrhtLDd6WRaWgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# http://stackoverflow.com/a/8936202 | |
# | |
# ActiveAdmin already includes the necessary jquery in active_admin/base, | |
# so just add this to javascripts/active_admin.js after //= require active_admin/base | |
# | |
# | |
# Serialize and Sort | |
# | |
# model_name - you guessed it, the name of the model we are calling sort on. | |
# This is the actual variable name, no need to change it. |
require 'dalli/client' | |
require 'yaml' | |
class GeocoderDalliClient | |
def initialize | |
@keys = 'GeocoderDalliClientKeys' | |
# setup for Heroku using the memcachier gem. | |
# On other setups you'll have to specify the Memcached server | |
@dalli_client = Dalli::Client.new | |
end |
Comments are refreshed every time you post a comment or click a page in the navigation, without refreshing the rest of the article. This is what happened. If someone would be cheating we'd be sure to catch them.
const PHANTOM_FUNCTION_PREFIX = '/* PHANTOM_FUNCTION */'; | |
var page = require('webpage').create(), | |
system = require('system'), | |
t, | |
address, | |
url = system.args[1], | |
t = Date.now(), | |
length; | |
page.onInitialized = function() { |
const PHANTOM_FUNCTION_PREFIX = '/* PHANTOM_FUNCTION */'; | |
var page = require('webpage').create(), | |
system = require('system'), | |
t, | |
address, | |
url = system.args[1], | |
t = Date.now(), | |
length; | |
page.onInitialized = function() { |
Options (choose one)
In shell:
require "bundler/capistrano" | |
set :whenever_command, "bundle exec whenever" | |
require 'whenever/capistrano' | |
server "123.456.789.10", :web, :app, :db, primary: true | |
set :application, "app_name" | |
set :user, "deployer" |