Skip to content

Instantly share code, notes, and snippets.

View jherdman's full-sized avatar

James Herdman jherdman

View GitHub Profile
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.1.8'
gem 'pg'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
diff --git a/db/structure.sql b/db/structure.sql
index 81578f2..7c67a5c 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -638,7 +638,7 @@ CREATE VIEW completion_rate AS
SELECT activity_state_count.membership_id,
sum(activity_state_count.count) AS completed
FROM activity_state_count
- WHERE ((activity_state_count.state)::text = ANY ((ARRAY['completed'::character varying, 'reviewed'::character varying])::text[]))
+ WHERE ((activity_state_count.state)::text = ANY (ARRAY[('completed'::character varying)::text, ('reviewed'::character varying)::text]))
# Don't forget to manually enter GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL
# in your .zshrc file.
[alias]
co = checkout
pr = pull --rebase --prune
ci = commit -v
rollback = reset --soft HEAD^
st = status -sb
br = branch
(defn HAS-ALL-THE-AWARDS? [book awards]
(every? (fn [award] (has-award? book award)) awards))
This file has been truncated, but you can view the full file.
18009 info postinstall concat-map@0.0.1
18010 verbose linkBins wrappy@1.0.1
18011 verbose linkMans wrappy@1.0.1
18012 verbose rebuildBundles wrappy@1.0.1
18013 silly gentlyRm /Users/james/Projects/ember-simple-auth/node_modules/grunt-contrib-jshint/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion is being purged from base /Users/james/Projects/ember-simple-auth
18014 verbose gentlyRm don't care about contents; nuking /Users/james/Projects/ember-simple-auth/node_modules/grunt-contrib-jshint/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
18015 info install wrappy@1.0.1
18016 verbose readDependencies loading dependencies from /Users/james/Projects/ember-simple-auth/node_modules/grunt-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/tough-cookie/package.json
18017 verbose tar unpack /Users/james/.npm/brace-expansion/1.1.0/package.tgz
18018 verbose tar
## Note to self...
include Benchmark
number = 2
year = 2008
bmbm(6) do |x|
x.report 'joining' do
10_000.times do
# This is lifted from TextMate's Ruby snippets. It's kind of handy and comes up now and then.
module
module ClassMethods
end
module InstanceMethods
end
// By Oliver Saunders. http://wiki.github.com/schapin/gospel/textmate-language-file
{ scopeName = 'source.gospel';
fileTypes = ( 'gs' );
foldingStartMarker = '/\*\*|\{\s*$';
foldingStopMarker = '\*\*/|^\s*\}';
patterns = (
{ name = 'keyword.constant.gospel';
match = '\b(recurse|namespace)\b';
},
{ name = 'meta.heading.text';
/*
* Extends Date to return the 24-hour clock time using 15 minute intervals for the
* minutes portion. E.x. If it is 11:04PM, this function returns 2300.
*/
Date.prototype.getInterval = function() {
var now = new Date();
var intervals = ["00", "15", "30", "45", "60"];
for(var i = 0; i < intervals.length; i++) {
var mins = now.getMinutes();
if(parseInt(intervals[i], 10) <= mins && mins <= parseInt(intervals[i + 1], 10)) {
(~)→ sudo port install screen
---> Fetching screen
---> Verifying checksum(s) for screen
---> Extracting screen
---> Applying patches to screen
---> Configuring screen
---> Building screen
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_screen/work/screen-4.0.3" && make all " returned error 2
Command output: vproc_priv.h:101: warning: parameter names (without types) in function declaration
vproc_priv.h:101: warning: data definition has no type or storage class