brew install redis
gem install sidekiq
go get -u github.com/jrallison/go-workers
redis-server /usr/local/etc/redis.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
# gem 'activerecord', '4.0.9' # works | |
gem 'activerecord', '4.0.10.rc1' | |
# gem 'activerecord', '4.1.5' # works | |
# gem 'activerecord', '4.1.6.rc1' | |
gem 'pg' | |
require 'active_record' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'comment': 'Based on work from github.com/frou/GoFeather and github.com/DisposaBoy/GoSublime' | |
'fileTypes': [ | |
'go' | |
] | |
'firstLineMatch': '-[*]-( Mode:)? Go -[*]-' | |
'name': 'GoSublime-next' | |
'patterns': [ | |
{ | |
'begin': '/\\*' | |
'end': '\\*/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select PT.FacID, f1.FacName, [1] as QtyAlloc, [-1] as QtyUsed, [1] + [-1] as QtyRemain | |
from | |
( | |
select f1.FacID, sign(f1.Quantity) as Sgn, f1.Quantity | |
from FacCredits f1 | |
) as q1 | |
pivot | |
( | |
sum(q1.Quantity) | |
for q1.Sgn in ([1], [-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pure CSS tool tips from CSS Mastery, originally by Eric Meyer? With fix for IE, see below */ | |
a.tooltip { | |
position: relative; | |
} | |
a.tooltip span { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; reference to a set (unique) visitors | |
(def visitors (ref #{})) | |
(defn hello | |
"Writes hello message to *out*. Calls you by username. | |
Knows if you have been here before." | |
([] (hello "world")) ; with no arguments | |
([username] | |
(dosync | |
;; deref visitors, call username to see if it's there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
Domains = %w{gemsmith vogsphere youngman seraph intercessory cyaonline significantwhitespace 14159265358979} | |
DefaultDomain = 'default' | |
# what domain does the host contain? | |
# put this here because helpers are a pain to test! | |
def view_for_domain(host) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shows the [branch], and an * if there are uncommitted changes. Example: | |
# ~/projects/my_project[master*]: | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- javascript_tag do | |
= after_ready do | |
= add_ckeditor_plugins(:snippet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.connection.instance_variable_set :@logger, Logger.new(STDOUT) |
OlderNewer