Skip to content

Instantly share code, notes, and snippets.

Greg Borenstein atduskgreg

View GitHub Profile
View leftovers_tracery.json
{"origin":"#preserveMethod.capitalize# #entree# that I #cookingAction#, covered with #foodAddition#, and made into a #foodFormat#.","preserveMethod":["cold","frozen","canned","leftover"],"entree":["chicken","mapo tofu","lasagna","peanut butter and jelly sandwich","udon","mac and cheese"],"cookingAction":["microwaved","left out over night","cooked in a pan","boiled"],"foodAddition":["siracha","ketchup","spicy mayo","nutritional yeast","melted cheese"],"foodFormat":["taco","sandwich","pasta","bowl"]}
View a_letter_on_chief_moore.txt
Dear Governor Newsom,
I’ve been disappointed, outraged, and saddened by the response of city and state government to the protests of the last week. People all across the state are calling for desperately needed reforms to eliminate police murder of black and brown Californians. These calls have been met with callous disregard and shocking displays of violence by local police departments.
That disregard found a face and a voice in Los Angeles police Chief Michael Moore this week. Chief Moore’s nonsensical statement that the protestors were somehow responsible for George Floyd’s death added insult to the enormous injury caused by his department’s incompetent and inflammatory response to the protests.
I ask you to call for Chief Moore’s resignation. Show us that California’s leaders care about the black and brown Californians they are sworn to represent and protect and that you can hear the voices of the thousands of people from all over the state who stand in solidarity with them.
California can be better
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")
You can’t perform that action at this time.