Skip to content

Instantly share code, notes, and snippets.

View L1fescape's full-sized avatar

Andrew Kennedy L1fescape

View GitHub Profile
@L1fescape
L1fescape / package.json
Last active May 30, 2022 08:38
simple saml decoder
{
"name": "saml-decode",
"version": "1.0.0",
"description": "",
"main": "saml-decode.js",
"scripts": {
"start": "node saml-decode.js"
},
"author": "",
"license": "ISC",
@L1fescape
L1fescape / .markdown
Created March 31, 2020 09:48
◕‿‿◕
### Keybase proof
I hereby claim:
* I am l1fescape on github.
* I am l1fescape (https://keybase.io/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

Usage

$ SPOTIFY_CLIENT_ID=<clientID> npm start

Configure the Spotify Application

@L1fescape
L1fescape / keybindings.json
Last active May 18, 2022 17:14
vscode settings
// Place your key bindings in this file to override the defaults
[
{ "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" },
{ "key": "cmd+t", "when": "terminalFocus", "command": "workbench.action.terminal.new" },
{ "key": "cmd+w", "when": "terminalFocus", "command": "workbench.action.terminal.kill" },
{ "key": "cmd+h", "when": "terminalFocus", "command": "workbench.action.terminal.focusPrevious" },
{ "key": "cmd+l", "when": "terminalFocus", "command": "workbench.action.terminal.focusNext" },
// 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
L1fescape / README.md
Created May 13, 2018 00:07
and it still ain't a goddamn thing they could tell me

Glowed Up

Control LED pixels via Arduino in node

Installation

Downlaod and install the arduino library

$ npm i -g nodebots-interchange
$ interchange install git+https://github.com/ajfisher/node-pixel -a uno --firmata
$ wget https://raw.githubusercontent.com/firmata/arduino/master/examples/StandardFirmataPlus/StandardFirmataPlus.ino
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
L1fescape / server.js
Created September 4, 2017 02:00
`yarn add --dev express`
var path = require('path');
var express = require('express');
var app = express();
var PORT = process.env.PORT || 3000;
var distRoot = './dist'
app.use(express.static(distRoot));
app.get('*', function(req, res) {
@L1fescape
L1fescape / post.md
Created August 15, 2017 21:06 — forked from chrisguttandin/post.md
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