Skip to content

Instantly share code, notes, and snippets.

@gmcinnes
gmcinnes / gist:9789694
Created March 26, 2014 18:12
keybase.md
### Keybase proof
I hereby claim:
* I am gmcinnes on github.
* I am grantmcinnes (https://keybase.io/grantmcinnes) on keybase.
* I have a public key whose fingerprint is 90E6 0156 C033 384A 66CB F69D 369C 9851 4810 801C
To claim this, I am signing this object:
*** Sampled system activity (Fri May 9 11:31:29 2014 -0400) (5039.33ms elapsed) ***
*** Running tasks ***
Name PID CPU ms/s User% Deadlines (<2 ms, 2-5 ms) Wakeups (Intr, Pkg idle)
kernel_task 0 2521.27 0.00 0.00 0.20 357.19 143.47
WindowServer 2994 84.54 66.56 7.34 4.56 22.03 13.10
iTerm 40970 68.84 85.52 0.00 0.00 6.15 4.17
Dock 3051 37.93 73.54 0.00 0.00 0.00 0.00
Google Chrome He 23088 27.51 63.77 0.00 0.00 31.95 5.95
# Ok, we have this situation where there's a tree with duplicate file entries. Look:
± |master ✗| → git fsck
Checking object directories: 100% (256/256), done.
error in tree 8f40c81aa8c7698e3888e74c06c9d0ca5d0e71c9: contains duplicate file entries
Checking objects: 100% (89603/89603), done.
# Unfortunately git gc --aggressive --prune won't get rid of it.
# So lets see where that sha gets referenced in the repo:
class Car
def init(type_of_car)
@engine = EngineFactory.new(type_of_car)
end
def start
@engine.start
end
def stop
results = []
xlsx = Roo::Spreadsheet.open('./fund_composition.xlsx')
xlsx.each_with_pagename do |name, sheet|
sheet.each do |row|
row.each do |cell|
results << cell unless results.include? cell
end
end
end
require File.dirname(__FILE__) + '/../spec_helper'
# But uh oh, now all the tests look the same.
# We've factored it to the point where the code is hiding
# what the real intention is. Lets move the should_receive(:create_breadcrumb_list)
# stuff back into the it blocks so we can see the difference, and we
# should be done.
describe BreadcrumbsHelper do
# http://www.mikeperham.com/2009/01/21/testing-multipart-upload-with-sinatra/
module FiveRuns
module Multipart
class FileUpload
BOUNDARY_ROOT = 'B0UND~F0R~UPL0AD'
attr_reader :file, :params, :rack_opts
def initialize(params={}, rack_opts = {})
1 environment: development
2 chdir: /Users/gmcinnes/Documents/projects/Background
3 address: 0.0.0.0
4 user: gmcinnes
5 group: staff
6 port: 8099
7 max_conns: 1024
8 timeout: 30
9 max_persistent_conns: 512
10 daemonize: false
package org.ehealthinnovation.chartDataProviders
{
import mx.charts.series.*;
public interface ChartDataProvider
{
function initialize(result:Object):AbstractChartDataProvider