Skip to content

Instantly share code, notes, and snippets.

View dtran320's full-sized avatar
🌊
Come co-work with us virtually! https://www.flow.club

David Tran dtran320

🌊
Come co-work with us virtually! https://www.flow.club
View GitHub Profile
@dtran320
dtran320 / gist:1106059
Created July 26, 2011 05:45
Extract referrer domain name in javascript
function getReferrerDomain() {
var url = document.createElement('a');
url.href = document.referrer;
return url.hostname;
}
@dtran320
dtran320 / CIM_training_log.md
Last active December 11, 2019 04:41
CIM Training Log
Week Miles
Nov 25 - Dec 1 52.2
Nov 18 - 24 70.5
Nov 11 - 17 74.7
Nov 4 - 10 58.8
Oct 28 - Nov 3 57.7
Oct 21 - 27 25.1*
Oct 14 - 20 19.8*
Oct 7 - 13 58.1
@dtran320
dtran320 / keybase.md
Last active September 10, 2019 18:58
Keybase verification

Keybase proof

I hereby claim:

  • I am dtran320 on github.
  • I am dtran320 (https://keybase.io/dtran320) on keybase.
  • I have a public key ASDk3rpPCkXgMkhxGvBGH3QdRBiNH8atXGFvcmkd-YXAngo

To claim this, I am signing this object:

@dtran320
dtran320 / Marathon Majors Qualifying Times for Women.md
Last active November 18, 2018 22:28
Marathon Majors Qualifying Times for Women
@dtran320
dtran320 / Marathon Majors Qualifying Times for Men.md
Last active November 18, 2018 22:28
Marathon Majors Qualifying Times for Men
@dtran320
dtran320 / Marathon Majors Qualifying Age Ranges.md
Last active November 18, 2018 22:28
Marathon Majors Qualifying Age Ranges
Marathon Range of Qualifying times for Men as you get older Range of Qualifying times for Women as you get older
New York 2 hours, 2 minutes (2:53 to 4:55) 3 hours, 23 minutes (3:13 to 6:35)
Chicago 2, 20 minutes hours (3:05 to 5:25) 2 hours, 35 minutes (3:35 to 6:10)
Boston 1 hour, 50 minutes (3:00 to 4:50) 1 hour, 50 minutes (3:30 to 5:20)
Berlin 40 minutes (2:45 to 3:25) 1 hour, 10 minutes (3:00 to 4:10)
@dtran320
dtran320 / error.js
Created October 24, 2018 21:37 — forked from nuevoalex/error.js
Error connecting to Rinkeby node
[ethrpc] http-transport unexpected status code IncomingMessage {
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
@dtran320
dtran320 / Marathon Majors Upcoming Important Dates for 2019 & 2020.md
Last active October 15, 2018 03:13
Marathon Majors Upcoming Important Dates for 2019 & 2020
@dtran320
dtran320 / startup.py
Last active December 20, 2016 20:42
startup.py
def build_startup(team, product, market, cash):
while team and cash > 0:
while not fits(product, market):
apply_breadth_first_search() # Apply with heuristics
apply_depth_first_search()
@dtran320
dtran320 / circle.yml
Last active October 13, 2016 00:15
Yarn on CircleCI
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
override:
- yarn
post: # At least for me, it doesn't seem like `scripts` in `package.json` are being run, so you need to add them explicitly
- yarn run postinstall