Skip to content

Instantly share code, notes, and snippets.

View gschorkopf's full-sized avatar

Geoffrey Schorkopf gschorkopf

View GitHub Profile
Updated Sept 10, 2019
LPs:
Alt+J (∆) - An Awesome Wave
Amadou & Mariam - Welcome to Mali
Anais Mitchell - Hadestown
Anderson Paak - Malibu
Andrew Bird - Armchair Apocrypha
Andrew Bird - The Mysterious Production of Eggs

July

07-07

Jay-Z: Magna Carta Holy Grail

07-09

AraabMUZIK: The Remixes, Vol. 1

Daughn Gibson: Me Moan

07-16

@gschorkopf
gschorkopf / JSTaskerSolution.js
Last active December 18, 2015 23:29
An less functional solution to JS tasker, with namespacing and object constructors. Could use some bits of refactoring. Big thanks to one Franklin Webber for being awesome.
// jQuery "on page load"
$(function(){
// Focus on the main field
$('input#task_text').focus();
// Object constructor for task list
var TaskList = function(element) {
// Assigning 'this.element' property from input (a selector). 'this.element' could be called anything.
this.element = $(element);
function getNext() {
scan = badgeScans[index];
console.log("got scan " + scan);
if (scan) {
var scanAction = svgContainer.selectAll("g")
.data([scan], function(d){return d.scan_time});
scanAction.exit().remove();
@gschorkopf
gschorkopf / sum_of_multiples_solution
Last active December 16, 2015 20:59
SumOfMultiples warmup solution
class SumOfMultiples
def initialize(*ints)
@numbers = ints.to_a
end
def self.to(max)
new(3, 5).to(max)
end
def to(max)