Skip to content

Instantly share code, notes, and snippets.

View jaspertravers's full-sized avatar

Jasper Travers jaspertravers

View GitHub Profile
@jaspertravers
jaspertravers / chordEventController.js
Created December 11, 2020 19:28
A simple key chord event controller in javascript.
window.addEventListener("load", onLoad);
function onLoad() {
let ec = new EventController();
//chords for 1-10 number keys on four keys
//hardware limited to two number keys
//hardware limited to four number keys per "hand" side on keyboard keys
ec.addControl(['1'], () => console.log('1'))
ec.addControl(['2'], () => console.log('2'))
ec.addControl(['3'], () => console.log('3'))
@jaspertravers
jaspertravers / eventController.js
Last active December 11, 2020 22:08
A simple sequence of keys event controller in javascript.
window.addEventListener("load", onLoad);
function onLoad() {
let ec = new EventController();
ec.addControl(['a', 'b'], () => console.log('a, b'))
ec.addControl(['a', 'd', 'c'], () => console.log('a, d, c'))
ec.addControl(['a', 'd', 'd'], () => console.log('a, d, d'))
ec.addControl(['a', 's', 'd', 'f'], () => console.log('asdf'))
ec.addControl(['Control', 'b'], () => console.log('C-b'))
ec.addControl(['Meta', 'c'], () => console.log('M-c'))
@jaspertravers
jaspertravers / typing.js
Last active May 30, 2020 19:13
Typing frustrations
/* I'm describing a few buttons in JS, I want to programatically edit css classes,
but that kind of operation isn't supported out of the box.
I found a good example I'll follow through at a later date, but for now, pressing forward.
https://web.archive.org/web/20080828162848/http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
So here I am, I know it's poor programming style,
but It's a containable situation and all together to be refactored later.
Anyway. I want multiple buttons, I've created a helper funciton, createElement,
which makes me an hmtl node with the following subset of specifications.
Here's the first button: */
@jaspertravers
jaspertravers / humane_representation_of_thought_transcript.md
Created September 27, 2019 23:12
Bret Victor Humane Representation of Thought Auto-Generated Transcript

so since is splash this is a programming conference I want to start by reassuring you that this talk is in fact about trading programs okay I want to start with that because it might not seem like that's what I'm talking about I'm not going to be talking about writing code I'm not gonna be talking about building software and we normally think about it but this is very deeply about creating programs and kind of in the same way that we create sounds when we talk we create letters no you're right this is about creating programs as a means of or person-to-person communication as a means of representing thought this is this is kind of a personal talk in certain ways and so I wanted to start out just with a little bit of personal background food so you can kind of see where I'm coming from I got my start like you know many people you know making games and apps and whatnot I think I kind of found my stride designing creative tools made a number of musical instruments visual design tools that sort of thing that start

@jaspertravers
jaspertravers / lisp_eval.md
Created May 20, 2019 21:00
Notes from pg's On the Roots of Lisp

{ in conjunction with lisp_eval_notes.md reading of "The Roots of Lisp" by Paul Graham Draft, January 18, 2002 }

my file lisp_eval_notes.md is listed under the next top level header in this file, I keep them as separate files to read them alongside eachother.

lisp eval

@jaspertravers
jaspertravers / randfind.c
Created May 14, 2019 18:59
Find srand seed to output a short message
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int SIZE = 27;
int * msg_to_code (char msg[], int length) {
int * code = malloc (sizeof (int) * length);
for (int index = 0; index < length; index++) {

Round 3

Feedback:

  • comment examples are not worthwhile
  • quite a bit to be reworded, more to be reworded
  • clarity of big ideas is much more important than fluff
  • realtime piece of paper
  • since I can't have the paper right now, maybe I can have my computer be like paper

I've been thinking about about medium sized groups and how they might like to use digital systems. So I've been thinking about the group of guides at Outback Adventures at UCSD and how we are a group of ~40 active members. In the past I floated the idea of some sort of collective google maps account combined with a wiki where we could put together a list of secret spots to share just amongst ourselves, but that didn't catch on and I don't think it really was the greatest idea. Required too much buy-in maybe.

My next idea struck me as a lot more fun. Thinking about the strengths of our group and our shared love of person-to-person interaction, it seems there is a space for some kind of digital augmentied conversation starter.

What if we had a shared map (think d3 geo visualizations), which had highlights on it indicating areas where people within the group had been as a way of indicating where someone within our outback group had first hand experience going. It's then also easy to think of adding in another

@jaspertravers
jaspertravers / lisp15.md
Created March 19, 2019 17:49
Lisp 1.5 Manual Code and Formatting
@jaspertravers
jaspertravers / .spacemacs
Created November 30, 2018 04:43
spacemacs config after first couple customization sessions. Nowhere near done
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory