I hereby claim:
- I am drydevelopment on github.
- I am dyoder (https://keybase.io/dyoder) on keybase.
- I have a public key whose fingerprint is 5E4A F507 C554 9FEF 68C4 0224 62D3 5EC7 847F E4C3
To claim this, I am signing this object:
module LogModelUpdates | |
def self.included(base) | |
base.send :include, InstanceMethods | |
end | |
module InstanceMethods | |
attr_accessor :current_user | |
attr_accessor :row_updates | |
def before_save |
[user] | |
name = [First and Last Name] | |
email = [Email] | |
[apply] | |
whitespace = nowarn | |
[diff] | |
color = auto | |
[status] | |
color = auto | |
[push] |
Using RSpec | |
Preloading Rails environment | |
Loading Spork.prefork block... | |
No server is running | |
Running specs locally: | |
Spork is ready and listening on 8989! |
install_everything(){ | |
install_homebrew | |
install_git | |
install_imagemagick | |
install_memcached | |
install_sphinx | |
install_rvm | |
# install_mysql # Install from http://dev.mysql.com/downloads/mysql/5.1.html | |
# install_passenger | |
install_big_red |
module Within3 | |
module Setup | |
module RVM | |
def self.install | |
puts "Installing RVM..." | |
exec "curl -s https://rvm.beginrescueend.com/install/rvm | bash" | |
puts "RVM installed!" | |
end | |
end | |
end |
jasmine.ConsoleReporter = function(showColors) | |
{ | |
if (!showColors) | |
showColors = true | |
var ansi = { | |
green: '\033[32m', | |
red: '\033[31m', | |
yellow: '\033[33m', |
/** | |
* Override window.setInterval to auto-call the function argument | |
* and bypass the delay to keep tests snappy. | |
*/ | |
window.setInterval = function(func, delay) { | |
func.call(); | |
}; |
# The resque-scheduler process would not respond to `kill -s QUIT [pid]`, and | |
# after a long time diagnosing the problem I found that the source of the problem | |
# was Newrelic. YAY! Disabling newrelic | |
task :disable_newrelic do | |
set :bundle_cmd, "NEWRELIC_ENABLE=false #{bundle_cmd}" | |
end | |
before "resque:start", "disable_newrelic" | |
before "resque:scheduler:start", "disable_newrelic" |
I hereby claim:
To claim this, I am signing this object:
/* Tested on PostgreSQL 9.6 */ | |
CREATE OR REPLACE FUNCTION iso_8601_timestamp(datetime TIMESTAMP WITH TIME ZONE) | |
RETURNS VARCHAR AS $$ | |
BEGIN | |
RETURN to_char(datetime::TIMESTAMPTZ AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"'); | |
END; | |
$$ | |
LANGUAGE PLPGSQL; |