Skip to content

Instantly share code, notes, and snippets.

View gleitz's full-sized avatar

Benjamin Gleitzman gleitz

View GitHub Profile
@gleitz
gleitz / binary_numbers.txt
Created June 24, 2020 04:07
Binary Numbers from 1 to 100 for http://www.a-counting.us
one
one zero
one one
one zero zero
one zero one
one one zero
one one one
one zero zero zero
one zero zero one
one zero one zero
from karel.stanfordkarel import *
"""
File: MidpointKarel.py
----------------------
When you finish writing it, MidpointKarel should
leave a beeper on the corner closest to the center of 1st Street
(or either of the two central corners if 1st Street has an even
number of corners). Karel can put down additional beepers as it
looks for the midpoint, but must pick them up again before it
### Keybase proof
I hereby claim:
* I am gleitz on github.
* I am gleitz (https://keybase.io/gleitz) on keybase.
* I have a public key whose fingerprint is F028 DAA4 C579 8221 1AED 5FFB C6D9 D29D 77AC C7E3
To claim this, I am signing this object:
@gleitz
gleitz / stories_to_copy.js
Created February 22, 2019 03:35
Stories to Copy
// editions is one of:
// edition-algo
// edition-algo-test
// edition-algocollection
// edition-meditationstudio
// edition-milan
// edition-mon-aims
// edition-mon-trails
// edition-smilenexus
// edition-tdma
{
"extends": ["tslint:recommended"],
"rules": {
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
@gleitz
gleitz / tslint.json
Created April 10, 2018 17:04
Replicant TSLint
{
"extends": ["tslint:recommended"],
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
{
"homeId": "t2gL5t597etyfgk6n",
"isAutoArrange": false,
"isParticles": true,
"createSmallSpherePhrase": "Algo",
"createLargeSpherePhrase": "Corona",
"keywordMap": [{
"keyword": "Dali's Nerd",
"url": "http://d1iledcq9v5bid.cloudfront.net/spheres/lg_IMG_8583.JPG"
}, {
[
"https://dl.dropboxusercontent.com/u/101688/delete/2016-07-03T19.04.55.jpg?dl=1",
"https://dl.dropboxusercontent.com/u/101688/delete/2016-07-02T03.05.33.jpg?dl=1",
"https://dl.dropboxusercontent.com/u/101688/delete/2016-07-06T20.08.56.jpg?dl=1"
]
<!DOCTYPE html>
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- polyfill -->
<script src="../inc/shim/Base64.js" type="text/javascript"></script>
<script src="../inc/shim/Base64binary.js" type="text/javascript"></script>
<script src="../inc/shim/WebAudioAPI.js" type="text/javascript"></script>
<!-- midi.js package -->
<script src="../js/midi/audioDetect.js" type="text/javascript"></script>
using UnityEngine;
using System.Collections;
using Meteor;
using Extensions;
public class MeteorUpdate : MonoBehaviour {
public string meteorURL = "wss://calder.meteor.com/websocket";
void Start () {
Debug.Log ("starting!");