Skip to content

Instantly share code, notes, and snippets.

Working from home

Jason Karns jasonkarns

Working from home
Block or report user

Report or block jasonkarns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View multiple_errors.rb
def matches?(page)
@audit = page, nil).aggregate do
@audit.results.violations.each {|v| ::RSpec::Expectations.fail_with v.failure_message }
jasonkarns /
Created Jan 29, 2014
Demonstrate Jasmine spies' odd behavior of verifying against argument references
munge = (operator) ->
data = x: 1
data.y = operator(data)
jasonkarns / npm-commands
Created Feb 28, 2014
Npm commands, with aliases grouped and organized by primary command
View npm-commands
adduser add-user login
bugs issues
config c
dedupe ddp find-dupes
docs home

Keybase proof

I hereby claim:

  • I am jasonkarns on github.
  • I am jasonkarns ( on keybase.
  • I have a public key whose fingerprint is A0E8 D7D1 099F 66C3 7347 3D66 E87D 122A A9B1 B726

To claim this, I am signing this object:

jasonkarns / .projections.json
Created Mar 13, 2014
vim-projectile file for Lineman projects
View .projections.json
"": {
"command": "readme"
"package.json": {
"command": "package"
"bower.json": {
"command": "bower"
jasonkarns /
Last active Aug 29, 2015
debug log for rbenv-update
$ RBENV_DEBUG=1 rbenv update | pbcopy
+ [rbenv:15] enable -f /Users/David/.rbenv/bin/../libexec/rbenv-realpath.dylib realpath
+ [rbenv:21] '[' -n '' ']'
++ [rbenv:25] type -p greadlink readlink
++ [rbenv:25] head -1
+ [rbenv:25] READLINK=/usr/bin/readlink
+ [rbenv:26] '[' -z /usr/bin/readlink ']'
+ [rbenv:50] '[' -z '' ']'
+ [rbenv:51] RBENV_ROOT=/Users/David/.rbenv
+ [rbenv:55] export RBENV_ROOT
jasonkarns / index.js
Created May 7, 2015
requirebin sketch
View index.js
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d = require('domready');
jasonkarns / kill-domcontentloaded.js
Created May 8, 2015
Kills DOMContentLoaded in Opera when executed prior to jquery
View kill-domcontentloaded.js
var DOMContentLoaded = function() {
document.removeEventListener('DOMContentLoaded', DOMContentLoaded);
document.addEventListener('DOMContentLoaded', DOMContentLoaded);
jasonkarns / capturing_matcher.rb
Created Jul 29, 2015
Custom Matcher that extends RSpec::Matchers::BuiltIn::Match to also enable specifying capture groups.
View capturing_matcher.rb
module CustomMatchers
class Match < RSpec::Matchers::BuiltIn::Match
def matches?(actual)
# first ensure the regex matched
return false unless result = super
# only continue if specifying captures
return result unless expected_captures = @captures
actual_captures = to_hash result
View RGBa-IE6-7.css
/* IE 7 and below: RGBa value in hex: aaRRGGBB */
* {
zoom: 1;
You can’t perform that action at this time.