Skip to content

Instantly share code, notes, and snippets.

Steve Taylor steve-taylor

  • Sydney, Australia
Block or report user

Report or block steve-taylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
steve-taylor / theme-colors.html
Last active Apr 16, 2019
Theme color chooser
View theme-colors.html
<!doctype html>
html, body {
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, 'Segoe UI', sans-serif;
.color-grid {
display: grid;
steve-taylor / generate-mnemonic.js
Created Nov 4, 2018
Given a list of words, generate a list of random words that start with the same letter as the original words.
View generate-mnemonic.js
#!/usr/bin/env node
const fs = require('fs');
const util = require('util');
const readline = require('readline');
const crypto = require('crypto');
const readFile = util.promisify(fs.readFile);
const rl = readline.createInterface({
steve-taylor / rancheros-swap.yml
Created Mar 25, 2018
RancherOS cloud-config.yml options
View rancheros-swap.yml
# RancherOS cloud-config.yml options I find useful.
# Enable 4GB swap
- sudo dd if=/dev/zero of=/swapfile bs=4K count=1M
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- [ /swapfile, none, swap, sw, 0, 0 ]
steve-taylor / .bash_profile
Last active Mar 19, 2018
Private Docker registry with Let's Encrypt
View .bash_profile
#!/usr/bin/env bash
export REGISTRY_USER=docker
steve-taylor / lua-editor.html
Last active Mar 8, 2018
Simple Lua text editor using Hightlight.js
View lua-editor.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lua editor with Syntax highlighting</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
steve-taylor / sequence-generator.js
Created Jan 31, 2018
Create an Iterable over a sequence of numbers
View sequence-generator.js
function *sequence(...args) {
const start = args.length < 2 ? 0 : args[0];
const end = args[args.length < 2 ? 0 : 1] || 0;
const step = args.length < 3 ? 1 : args[2];
for (let i = start; i < end; i += step) {
yield i;
View parseBif.js
function *parseBif(buffer) {
const data = new DataView(buffer);
// Ensure this is a BIF v0.
if (data.getUint32(0, true) !== 0x46494289 || data.getUint32(4, true) !== 0x0a1a0a0d || data.getUint32(8, true) !== 0) {
const separation = data.getUint32(16, true) || 1000;
const start = 64;
steve-taylor /
Created Sep 24, 2017
Version bump and publish Maven+Git project
# Version bump and publish this Git+Maven repo.
# Usage: ./ {major|minor|patch}
# For example, to bump the version from 1.5.9 to 1.6.0:
# ./ minor
steve-taylor / react-bacon-connect.html
Created Sep 1, 2017
Example of connecting a React component to Bacon streams and buses
View react-bacon-connect.html
<!doctype html>
<meta charset="utf-8">
<title>bacon.js and baconjs-router POC</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
steve-taylor / react-bacon.js
Last active Sep 1, 2017
Connect a React component to Bacon.js streams and buses
View react-bacon.js
import React from 'react';
import Bacon from 'baconjs';
* Create a factory of higher order components that render the specified inner
* component using the specified mapping of property names to the streams that
* feed them values and the specified mapping of callback property names to
* the buses onto which the callbacks' first parameter is pushed when called.
* This is similar in concept to react-redux's connect() function, but for
You can’t perform that action at this time.