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 / checklist.md
Last active August 29, 2015 14:08
Website Launch Checklist
  • Content consumable without Javascript
    • appropriate <title>
    • appropriate <meta> (yes, this still matters)
    • appropriate og:graph tags
  • Outbound Communications are Extensible
Verifying that +martindale is my Bitcoin username. You can send me #bitcoin here: https://onename.io/martindale
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@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.

(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

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) {

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

#!/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
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}

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