Skip to content
{{ message }}

Instantly share code, notes, and snippets.

👨‍👩‍👧‍👦
being a dad

# Jeff Larson thejefflarson

👨‍👩‍👧‍👦
being a dad
Created Apr 16, 2011
View skeletonize.cpp
 #include #include #include #include #include #include #include typedef CGAL::Exact_predicates_inexact_constructions_kernel K ;
Created Mar 1, 2012
View table.js
 // Table.js is a small library for manipulating NxN arrays. // It takes an NxN array and a list of type formatters by column headers so: // var table = new Table([['one', 'two', 'three'], ["1","jeff larson","3px"]], { // one : function(it) { return +it; }, // two : function(it) { return it.toUpperCase(); }, // three : function(it) { return +it.replace("px", ''); } // }); // var Table = function(data, types){ this.data = data;
Created Dec 12, 2012
View map.js
 \$(function(){ \$("#article-big-image").replaceWith(\$("
").attr({"id": "map-cont"}).html([ '' , '' , '' , '' , '' , '' , '' , ''
Created Apr 4, 2020
Captcha solver
View train.py
 from tensorflow.keras import Input, Model from tensorflow.keras.models import load_model from tensorflow.keras.layers import ( Conv2D, Activation, MaxPooling2D, Dropout, Flatten, Dense, )
Created Jan 30, 2012
View stepper.js
 /* USAGE: \$(function(){ var steps = new Stepper("#steps"); steps.addSlide(1, function(){ this.canvas.text("slide 1"); }); steps.addSlide(2, function(){ this.canvas.text("slide 2"); }); steps.go(); }); */
Created Aug 7, 2019
View keybase.md

### Keybase proof

I hereby claim:

• I am thejefflarson on github.
• I am thejefflarson (https://keybase.io/thejefflarson) on keybase.
• I have a public key ASAOCcrYOEybgCz32LXRx9GKWVql6FI2-BVOfali5Qf_Ago

To claim this, I am signing this object:

Created Jul 9, 2018
Clam API
View api.js
 createEngine((err, engine) => { if (err) throw err; engine.scan(buffer, (err, result) => { if (err) throw err; console.log(result); }); });
Last active May 23, 2018
View result.js
 class Thing { val = null; constructor(val) { this.val = val; } unwrap() { throw "unimplemented!"; } is_ok() {
Created Mar 10, 2018
View nicar.R
 library("readr") data <-read_csv("https://raw.githubusercontent.com/propublica/compas-analysis/master/compas-scores-two-years.csv") library("dplyr") data <- filter(data, type_of_assessment=="Risk of Recidivism") library("ggplot2") ggplot(data=filter(data, race =="African-American"), aes(ordered(decile_score))) + geom_bar() ggplot(data=filter(data, race =="Caucasian"), aes(ordered(decile_score))) + geom_bar() ggplot(data, aes(race, decile_score)) + geom_boxplot(notch=TRUE) means <- filter(data, race == "Caucasian" | race == "African-American") means <- mutate(data, white = race == "Caucasian")
Created Apr 15, 2016
View init.el
 ;;; jeffs-init --- various bits and boops to make emacs a nicer place ;;; Commentary: ;; Too many late nights copying and pasting from the internet, ;; but hey I'm proud of it. ;;; Code: ;; Configuration (setq gc-cons-threshold 100000000)