Skip to content

Instantly share code, notes, and snippets.

View keithcollins's full-sized avatar

Keith Collins keithcollins

View GitHub Profile
# 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
@keithcollins
keithcollins / AStarSearch.cs
Created August 30, 2016 23:45
A* pathfinding implementation for Unity 5, C#
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
@keithcollins
keithcollins / btcrawl.js
Last active July 19, 2017 15:39
Recursively crawl outgoing transactions from an origin bitcoin address
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 / cloudSettings
Created May 10, 2018 16:55
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-10T16:55:16.150Z","extensionVersion":"v2.9.2"}
@keithcollins
keithcollins / index.html
Created September 14, 2019 17:10
blobs
<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 / test
Created December 22, 2019 05:45
vscode sync
test