Skip to content

Instantly share code, notes, and snippets.

View bryangingechen's full-sized avatar

Bryan Gin-ge Chen bryangingechen

View GitHub Profile
@sleepygarden
sleepygarden / deobfuscate.js
Created April 6, 2016 19:17
Partially deobfuscated hexasphere.js april fools day joke - http://pub.ist.ac.at/~edels/hexasphere/
function canvasApp() {
if (!canvasSupport()) {
return;
}
var canvas = document.getElementById('canvasOne');
var ctx = canvas.getContext('2d');
setup();
@cswiercz
cswiercz / CreatingExternalSagePackages.md
Last active June 7, 2018 00:34
A guide to creating a Sage package outside of Sage itself.
@mbostock
mbostock / .block
Last active December 26, 2023 07:21
Force-Directed Lattice
license: gpl-3.0
height: 960
@pdanford
pdanford / README.md
Last active April 13, 2024 18:19
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@mbostock
mbostock / .block
Last active December 26, 2018 04:04
Constrained Zoom
license: gpl-3.0
@ericsoco
ericsoco / .block
Last active November 22, 2018 19:53
cluster force
license: mit
@ericsoco
ericsoco / README.md
Last active November 22, 2018 19:52
d3-force-cluster I

Example illustrating the use d3-force-cluster.

@mootari
mootari / .block
Created November 19, 2016 14:37
Squaring the circle, part 1
license: mit
height: 500
scrolling: yes
@lwthatcher
lwthatcher / .block
Last active July 7, 2019 15:37
Fixed-Radius Near Neighbors II
license: mit
@nybblr
nybblr / 1-easy.js
Last active July 13, 2022 03:40
3 examples of using Async Generators and Async Iteration in JavaScript!
// Create a Promise that resolves after ms time
var timer = function(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
};
// Repeatedly generate a number starting
// from 0 after a random amount of time
var source = async function*() {