Skip to content

Instantly share code, notes, and snippets.

Avatar

Keith Collins keithcollins

View GitHub Profile
View index.html
<style>
#chart {
max-width:940px;
margin: 0 auto;
}
</style>
<div id="chart"></div>
<script src="https://d3js.org/d3.v4.min.js"></script>
@keithcollins
keithcollins / cloudSettings
Created May 10, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-05-10T16:55:16.150Z","extensionVersion":"v2.9.2"}
@keithcollins
keithcollins / btcrawl.js
Last active Jul 19, 2017
Recursively crawl outgoing transactions from an origin bitcoin address
View btcrawl.js
const fs = require('fs');
const request = require('request');
const rp = require('request-promise');
const sb = require('satoshi-bitcoin');
const d3 = Object.assign({},require('d3-array'));
// the address to start crawling outgoing transactions from
const START_ADDRESS = '1Ftixp78FjTWFi3ssJjBw5NqKf5ZPQjXBb';
// the starting timestamp to compare transactions against
const START_DATE = new Date(1499413652000);
@keithcollins
keithcollins / AStarSearch.cs
Created Aug 30, 2016
A* pathfinding implementation for Unity 5, C#
View AStarSearch.cs
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
// This script is adapted from these,
// but has been heavily modified in some areas:
// http://www.redblobgames.com/pathfinding/a-star/implementation.html#csharp
// https://gist.github.com/DanBrooker/1f8855367ae4add40792
// I'm continuing to optimize and change things here. I would not use this
View PINBALL_GAME_BUTTONS_AND_LIGHTS--SNIPPET.s
# THE FOLLOWING QUOTATION IS PROVIDED THROUGH THE COURTESY OF THE AUTHORS.
#
# "IT WILL BE PROVED TO THY FACE THAT THOU HAST MEN ABOUT THEE THAT
# USUALLY TALK OF A NOUN AND A VERB, AND SUCH ABOMINABLE WORDS AS NO
# CHRISTIAN EAR CAN ENDURE TO HEAR."
# HENRY 6, ACT 2, SCENE 4
View LUNAR_LANDING_GUIDANCE_EQUATIONS--SNIPPET.s
CAF CODE500 # ASTRONAUT: PLEASE CRANK THE
TC BANKCALL # SILLY THING AROUND
CADR GOPERF1
TCF GOTOP00H # TERMINATE
TCF P63SPOT3 # PROCEED SEE IF HE'S LYING
P63SPOT4 TC BANKCALL # ENTER INITIALIZE LANDING RADAR
CADR SETPOS1
View BURN_BABY_BURN--SNIPPET2.s
P40AUTO TC MAKECADR # HELLO THERE.
TS TEMPR60 # FOR GENERALIZED RETURN TO OTHER BANKS.
P40A/P TC BANKCALL # SUBROUTINE TO CHECK PGNCS CONTROL
CADR G+N,AUTO # AND AUTO STABILIZATION MODES
CCS A # +0 INDICATES IN PGNCS, IN AUTO
TCF TURNITON # + INDICATES NOT IN PGNCS AND/OR AUTO
CAF APSFLBIT # ARE WE ON THE DESCENT STAGE?
MASK FLGWRD10
CCS A
TCF GOBACK # RETURN
View BURN_BABY_BURN--SNIPPET.s
## At the get-together of the AGC developers celebrating the 40th anniversary
## of the first moonwalk, Don Eyles (one of the authors of this routine along
## with Peter Adler) has related to us a little interesting history behind the
## naming of the routine.
##
## It traces back to 1965 and the Los Angeles riots, and was inspired
## by disc jockey extraordinaire and radio station owner Magnificent Montague.
## Magnificent Montague used the phrase "Burn, baby! BURN!" when spinning the
## hottest new records. Magnificent Montague was the charismatic voice of
## soul music in Chicago, New York, and Los Angeles from the mid-1950s to
You can’t perform that action at this time.