Skip to content

Instantly share code, notes, and snippets.

Greg Borenstein atduskgreg

Block or report user

Report or block atduskgreg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IRSendHexSpider_updated.ino
/*
* This class allows hand-sent signals to the Zibits IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
*
*
* http://arcfn.com
*/
#include <IRremote.h>
View today_in_history_output.txt
q: President of Turkey Urges Resistance as Military Attempts Coup
[0.212618401183559] 1974 – In Nicosia, Cyprus, Greek junta-sponsored nationalists launch a coup d'état, deposing President Makarios and installing Nikos Sampson as Cypriot president.
[0.12644356002222076] 2016 – Factions of the Turkish Armed Forces attempt a coup.
[0.09670597119181079] 1979 – U.S. President Jimmy Carter gives his so-called malaise speech, where he characterizes the greatest threat to the country as "this crisis in the growing doubt about the meaning of our own lives and in the loss of a unity of purpose for our nation" but in which he never uses the word malaise.
[0.027300707378938478] 1410 – Polish–Lithuanian–Teutonic War: Battle of Grunwald: The allied forces of the Kingdom of Poland and the Grand Duchy of Lithuania defeat the army of the Teutonic Order.
[0.025796141532889554] 484 BC – Dedication of the Temple of Castor and Pollux in ancient Rome.
...
View gist:184789ca5aabd8302dcbe4ed5f1a42ea
modified: .gitignore
deleted: Assets/3DModels/Islands/Island_Textured_Round_A.obj.meta
deleted: Assets/3DModels/Islands/Island_Textured_Square_A.obj.meta
deleted: Assets/3DModels/New folder.meta
modified: Assets/AllObjects.fbm.meta
deleted: Assets/MecanimControl/Demo/Model/Textures.meta
deleted: Assets/Mockups/Notecards.meta
deleted: Assets/ParticleScaler/Standard Assets.meta
deleted: Assets/Portal/Scenes.meta
deleted: Assets/Portal/Textures.meta
View diff.log
greg@gabc:~/Documents/games/Scale5x (master)* [1.9.3]
→ git st
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: Assets/3DModels/Islands/Island_Textured_Round_A.obj.meta
deleted: Assets/3DModels/Islands/Island_Textured_Square_A.obj.meta
View animals.txt
Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
View interactive_machine_learning.md

Interactive Machine Learning

Taught by Brad Knox at the MIT Media Lab in 2014. Course website. Lecture and visiting speaker notes.

View observe_completion_of_p5js.js
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if(mutation.addedNodes.length > 0 && mutation.addedNodes[0].nodeName == "CANVAS"){
// do stuff after the sketch loaded
}
});
});
var config = { attributes: false, childList: true, characterData: false }
target = document.getElementById("myDiv")
View defcon_status.json
{"origin":"DEFCON #defcon number# \\[#Exercise Term#\\] #Description#: #Force# #readiness action# #time modifier# #timeframe#.","defcon number":["1","2","3","4","5","6","7","8","9"],"Exercise Term":["COCKED PISTOL","FAST PACE","ROUND HOUSE","DOUBLE TAKE","FADE OUT","LIMP","FULLY LIMP","ENGORGED","AROUSED","DISINTERESTED","HOT TAKE","KEYNOTE","DRESS","LIMBER UP","STRETCH","WIPE","HARD CUT","SMASH CUT","FADE TO BLACK","PLUG IN","TURN ON","HARD RESET","SOFT RESET","COLD BOOT","COLD OPEN","PREAMBLE","AMBLE","PROLOGUE","EPILOGUE","DEEP CLEAN","SOCIAL ANXIETY","HAND MASSAGE","LIVE SHOW","MINIMUM VIABLE","JONY IVE","MICROSOFT BOB","NEW SHOES","GIL AMELIO","FRIENDS REBOOT","LIQUIDITY EVENT","SNAFU","DOWN ROUND","PREMIERE","ENCORE","PEEP SHOW","CURTAIN CALL","TULIP EFFECT","BLACK SWAN","RED SWAN","WHITE SWAN","APPLE PIPPIN","NEWTON","LISA","COURIER","HALF SHELL","SHORT ROUND","BLACK FACE","WHITE FACE","PILOT SHOW","NIGHTMARE GREEN"],"Description":["Nuclear war is imminent","Next step to nuclear war","Daydreaming of n
View ezra_klein_lead.md

There's also a fascinating, depressing, unhappy kind of long-term issue here. And something worth connecting it back to is that this isn't the first recent story that in some fundamental way had lead as a big part of it. If people remember the death of Freddy Gray in Baltimore which was a really big story in 2015. This was a young guy and he was arrested by police and then put in a police van and appears to have been unrestrained in that van and handcuffed and shackled. They drove the van in such a way that he ended up snapping his spine and dying and it was a really terrible story. But something that was a terrible part of the backstory was that Freddie Gray had had very high levels of lead poisoning as a child. So high in fact that his family had been in lawsuits with — I don't remember if it's the developers or the city — but there were lawsuits around the amount of lead that that family was exposed to. And one thing that high levels of early lead exposure will do, as Matt said, is lead to reduced IQ, high

You can’t perform that action at this time.