Skip to content

Instantly share code, notes, and snippets.

View chrismanderson's full-sized avatar

Chris Anderson chrismanderson

View GitHub Profile
/Applications/Xcode.app/Contents/MacOS/Xcode </dev/null &>/dev/null &
{
"swagger": "2.0",
"info": {
"version": "v2",
"title": "Wheniwork"
},
"host": "api.wheniwork.com",
"basePath": "/2",
"schemes": [
"https"

Keybase proof

I hereby claim:

  • I am chrismanderson on github.
  • I am chrisanderson (https://keybase.io/chrisanderson) on keybase.
  • I have a public key ASDXPJfKo7uHPZ6p87PQto-y8eNTZmXgmmF3SGlIK69oAgo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrismanderson
chrismanderson / test_helper.rb
Last active February 1, 2018 21:43
test_helper
require 'simplecov'
SimpleCov::SourceFile.class_eval do
def project_filename
h = {}
4.times{ # maximum 4 times
GC.stat(h)
live_slots = h[:heap_live_slots] || h[:heap_live_slot]
old_objects = h[:old_objects] || h[:old_object]
remwb_unprotects = h[:remembered_wb_unprotected_objects] || h[:remembered_shady_object]