Skip to content

Instantly share code, notes, and snippets.

View karlsander's full-sized avatar

Karl Sander karlsander

View GitHub Profile
@karlsander
karlsander / Hi.js
Created January 22, 2020 12:23
theme-ui sx for className
import React from "react"
import { csx } from "csx"
export const Hi = () => <div className={csx({m: 4, color: "primary")}>Hi</div>
var x = 4;
@karlsander
karlsander / build.sh
Created April 16, 2019 17:26
compiling Hemisphere
platformio ci --project-conf="platformio.ini" --build-dir="build" --keep-build-dir O_C-HemisphereSuite/software/o_c_REV/
Put the cat in education
Put the cat in location
Put the cat in categories
Put the cat in category
Put the cat in application
Put the cat in applications
Put the cat in located
Put the cat in communications
Put the cat in communication
Put the cat in publications
@karlsander
karlsander / trill.js
Created February 17, 2017 12:08
MIDI FX Trill Script
//-----------------------------------------------------------------------------
// Trill script adapted from Simple Arpeggiator
//-----------------------------------------------------------------------------
var NeedsTimingInfo = true;
var activeNotes = [];
function HandleMIDI(event) {
if (event instanceof NoteOn) {
// add note to array
Process: Chocolat [26659]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: 3.0rc3 (3.0rc3)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Chocolat [26659]
User ID: 501
Date/Time: 2014-10-05 01:22:31.994 +0200
@karlsander
karlsander / userstyle.css
Last active August 29, 2015 13:58
sticky-wikitable
body.mediawiki table.wikitable > thead, body.mediawiki table.wikitable > tbody > tr > th {
position: -webkit-sticky;
position: sticky;
top: 0;
}
// Setting Padding
timerlistFront.setPadding(0,0,0,0);
// Setting Margins
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT
);
@karlsander
karlsander / _grid.scss
Last active August 29, 2015 13:57
responsive grid
@include add-grid(3);
@include add-grid(6 at 500px);
@include add-grid(12 at 700px);
@include add-grid(2 8 2 at 900px);
@include add-grid(1 3 5 7 9 at 1100px);