Skip to content

Instantly share code, notes, and snippets.

View martindale's full-sized avatar
🚀
relentless maker.

Eric Martindale martindale

🚀
relentless maker.
View GitHub Profile
@martindale
martindale / BlockPropagation.md
Last active September 21, 2015 17:52 — forked from gavinandresen/BlockPropagation.md
O(1) block propagation

O(1) Block Propagation

The problem

Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."

@martindale
martindale / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@martindale
martindale / links.txt
Last active August 29, 2015 14:24 — forked from maraoz/links.txt

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter

* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform

Extensible Scalable Coopetitive High Availability Trade Optimization Network: ESCHATON

I am the Eschaton; I am not your God.

I am descended from you, and exist in your future.

Thou shalt not violate causality within my historic light cone. Or else.

Singularity Sky by Charles Stross

var singleString = 'Some Artist - Some Title';
var duration = 600; // length in seconds (required!)
// ideally, you have an object with the artist and title separate (and maybe credits!)
// you can use soundtrack.trackFromSource('object', ... , ...) for this
// see https://github.com/martindale/soundtrack.io/blob/soundtrack.io/lib/soundtrack.js#L326-L352
// however...
// if you only have a single string (like youtube), you can do this...
var parts = util.parseTitleString( singleString , function(parts) {

(That's my attempt to understand what problem Impulse solves and how. I am not a designer/developer of this scheme.)

Problem

Regular Bitcoin transactions are not guaranteed until mined sufficiently deep in the blockchain. Unconfirmed transactions can be observed nearly instantly, but they cannot be trusted (could drop out because of insufficient fees, or double-spent).

Impulse Overview

@martindale
martindale / bio.md
Created January 22, 2015 03:57
soundtrack bio

test awesome sauce plug.dj

16:49:08 martindale: oh, you forced that guy to take his video down because you weren‘t making money on the plays? no problem, we’ll just automatically roll everyone‘s playlists over to this other audio source, and your artist’s fans can continue to enjoy the music of the person you're exploiting for commercial benefit.
16:50:13 martindale: and hey, while we‘re at it, we’ll give everyone access to all the different formats and videos for that song… increasing the engagement of that artist and probably getting him more fans.

soundtrack.io Fitness Challenges

Each day into the challenge, complete as many burpees as you are days into the challenge, until you reach 100 burpees in a go. Day 1 was 8/16/2013.