Skip to content

Instantly share code, notes, and snippets.

https://www.dropbox.com/s/lpayv3u5rotvo8r/tc-123-braden-anderson.pdf?dl=0
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
preferred_name,email
Bob Ross,bross@example.com
Tim "the tool man" Taylor,ttaylor@example.com
Carl Sagan,csagan@example.com
uid manager uid
1
2
3
4
5
1.1 1
1.2 1
1.3 1
1.4 1
def reload
super
@dependent_cache = {}
end
def dependent_cache(property, key)
@dependent_cache ||= {}
cached = @dependent_cache[property]
return cached[:value] if cached && cached[:key] == key
yield.tap do |value|
var headers = $('th.group0.valignmenttop');
var getCity = function(header) {
var rate_row = $(header.parentNode).nextAll().slice(0, header.getAttribute('rowSpan')-1).last();
return {name: header.textContent.trim(), violent: parseCell($(rate_row).find('.group3')), property: parseCell($(rate_row).find('.group8'))};
}
var parseCell = function(cell) {
return parseFloat(cell.text().replace(/[^\d.]/g, ''));
}
var cities = headers.toArray().map(getCity);
cities = cities.filter(function(city) {return !!city.violent && !!city.property;});
'use strict';
function putComposite(composites, value, delta) {
let next = value + delta;
let deltas = composites[next] || (composites[next] = []);
deltas.push(delta);
}
function scanComposites(composites, value) {
if (!composites[value]) {
@bluej100
bluej100 / keybase.md
Created June 3, 2015 15:30
keybase.md

Keybase proof

I hereby claim:

  • I am bluej100 on github.
  • I am bluej100 (https://keybase.io/bluej100) on keybase.
  • I have a public key whose fingerprint is 1434 3064 AD74 400C 9502 BBAA 723B 9508 D3B5 7C88

To claim this, I am signing this object:

@bluej100
bluej100 / dataJul-22-2014-small.csv
Created September 28, 2014 04:21
dataJul-22-2014-small.csv
First Name Last Name Email Birth Date Hire Date Department Manager
Grant Dyer Donec.elementum@orciluctuset.ca 2013-11-23T02:30:31-08:00 2014-05-31T01:06:56-07:00 Magna Ut Associates ljenkins
Cherokee Shields Nulla.Semper.Tellus@duinec.edu 2014-11-22T16:43:51-08:00 2013-09-26T11:47:15-07:00 Pede Corporation Donec.elementum@orciluctuset.ca
Catherine Parrish lorem@feugiatnon.ca 2015-02-11T12:01:10-08:00 2015-02-26T00:29:40-08:00 Phasellus Fermentum Convallis PC Donec.elementum@orciluctuset.ca
Destiny Shannon libero@Aenean.ca 2015-07-14T09:38:11-07:00 2014-01-11T14:53:04-08:00 Pretium Et Inc. Donec.elementum@orciluctuset.ca
Callum Underwood Phasellus@Quisquetincidunt.org 2013-09-13T18:49:35-07:00 2014-12-04T23:04:19-08:00 Sed Turpis Nec LLP ljenkins
Elliott Wright cursus@nibh.org 2015-04-20T14:35:19-07:00 2015-03-05T12:56:46-08:00 Dolor Associate Phasellus@Quisquetincidunt.org
Galvin Foley nisi.Aenean.eget@atauctorullamcorper.com 2014-03-20T23:20:15-07:00 2014-06-11T15:00:23-07:00 Adipiscing Industrie Phasellus@Q
@bluej100
bluej100 / gist:9418376
Created March 7, 2014 19:40
git superpull
alias superpull='git checkout master; git pull; for branch in $(git branch --no-merged); do git rebase -q master $branch; done; git checkout master; for branch in $(git branch --merged | grep -v master); do git branch -d $branch; done; echo "Done."'
@bluej100
bluej100 / .vimrc
Last active December 20, 2015 20:18
" necessary for system-wide vimrcs (http://stackoverflow.com/questions/5845557/in-a-vimrc-is-set-nocompatible-completely-useless)
set nocompatible
" enable plugin manager
" http://stackoverflow.com/questions/14642956/why-vundle-requires-filetype-off
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'