Skip to content

Instantly share code, notes, and snippets.

Andrew Kennedy L1fescape

View GitHub Profile
View gist:67f5a62536d1f4540395ddf4be0e7e33
### Keybase proof
I hereby claim:
* I am l1fescape on github.
* I am l1fescape ( on keybase.
* I have a public key ASBcSW3XOiau_sUzyiUc3KQmnena3Z753ZqU9sj7EqxYzwo
To claim this, I am signing this object:

Spotify Token

Generate authentication tokens for your Spotify application via node


$ SPOTIFY_CLIENT_ID=<clientID> npm start

Configure the Spotify Application

View keybindings.json
{ "key": "cmd+h", "when": "editorFocus", "command": "workbench.action.previousEditor" },
{ "key": "cmd+l", "when": "editorFocus", "command": "workbench.action.nextEditor" },
{ "key": "cmd+shift+h", "command": "workbench.action.terminal.focusPrevious" },
{ "key": "cmd+shift+l", "command": "workbench.action.terminal.focusNext" },
View parse-query.ts
// use query-string package?
type QueryMap = {[key: string]: string};
const parseQuery = (queryString: string, param: string): string => {
if (queryString.charAt(0) === '?') {
queryString = queryString.substr(1);
const parts = queryString.split('&');
const partsMap = parts.reduce((acc, part) => {
const splitIndex = part.indexOf('=');
if (splitIndex === -1) {
L1fescape /
Created May 13, 2018
and it still ain't a goddamn thing they could tell me

Glowed Up

Control LED pixels via Arduino in node


Downlaod and install the arduino library

$ npm i -g nodebots-interchange
$ interchange install git+ -a uno --firmata
$ wget
View FPSController.cs
using System;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
using UnityStandardAssets.Utility;
using UnityStandardAssets.Characters.FirstPerson;
using Random = UnityEngine.Random;
namespace Taraval.Characters.FirstPerson
[RequireComponent(typeof (CharacterController))]
L1fescape / server.js
Created Sep 4, 2017
`yarn add --dev express`
View server.js
var path = require('path');
var express = require('express');
var app = express();
var PORT = process.env.PORT || 3000;
var distRoot = './dist'
app.get('*', function(req, res) {
L1fescape /
Created Aug 15, 2017 — forked from chrisguttandin/
What else can we do with the Web Audio API?

What else can we do with the Web Audio API?

Of course the Web Audio API is meant for synthesizing and processing audio data. It is tailored for that use case. But at least in our digital world audio data is just a series of numbers, which are typically somewhere between +1 and -1. So why can't we use the Web Audio API for general computations?

Almost a year ago I had the pleasure to give a talk at the Web Audio Conference in Atlanta. The conference featured a lot of great talks, which I really appreciated as an attendee. However, as a speaker it was tough to reduce my own talk until it was short enough to fit into the schedule. I had the feeling that I had to rush through my slides. Since then I planned to write down my findings in a more detailed way, but I never got around to it. Luckily I was asked to repeat my talk at our local Web Audio Meetup here in

import RPi.GPIO as GPIO
import time
ledPin = 18
GPIO.setup(ledPin, GPIO.OUT)
GPIO.output(ledPin, GPIO.LOW)
You can’t perform that action at this time.