Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
set -x
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_DIR="$SCRIPT_DIR/../"
pushd $PROJECT_DIR
rm -rf ./LibNoosphere.xcframework
@jsantell
jsantell / allow-unverified-plugins.sh
Created September 22, 2020 16:09
Logic Pro X scripts
#!/bin/sh
# Disables system policy, validates audio plugins, and re-enables system policy
# to allow unverified audio plugins in OS X 10.15 Catalina
sudo spctl --master-disable
auval -a
sudo spctl --master-enable
@jsantell
jsantell / init.sh
Created January 28, 2020 00:29
install
#!/bin/sh
# Update system
sudo apt-get update
sudo apt-get upgrade
# Add software
sudo apt-get install \
git vim xclip curl snap \
gnome-tweaks \
@jsantell
jsantell / keybase.md
Created December 4, 2019 06:48
keybase.md

Keybase proof

I hereby claim:

  • I am jsantell on github.
  • I am jsantell (https://keybase.io/jsantell) on keybase.
  • I have a public key ASAL7z_P6rtcIoBMzwjU8Khsf4LLPOZ8oiLz4UpfbSEJIAo

To claim this, I am signing this object:

@jsantell
jsantell / midi2osc.js
Created June 28, 2019 16:24
MIDI to OSC
const midi = require('midi');
const { Client } = require('node-osc');
const MIDI_INPUT = 1;
const ADDRESS = 'localhost';
const PORT = 8886;
class MIDI2OSC {
constructor(midiInput=MIDI_INPUT, address=ADDRESS, port=PORT) {
this.client = new Client(address, port);
<!DOCTYPE html>
<html lang="en">
<head>
<title>threejs webgl - materials - equirectangular exr image based lighting</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
color: #fff;
font-family:Monospace;
@jsantell
jsantell / transition-raf.html
Last active October 16, 2018 20:49
Why is there (usually) two rAF callbacks before the next frame? This happens when triggering a transition from a timer (setTimeout) and does not occur when triggering from a rAF
<html><head>
<style>
div {
height: 100px;
width: 100px;
background-color: #35baf6;
transition: width 0.5s;
}
</style>
</head><body>
/**
* @author takahiro / https://github.com/takahirox
*
* CCD Algorithm
* https://sites.google.com/site/auraliusproject/ccd-algorithm
*
* mesh.geometry needs to have iks array.
*
* // ik parameter example
* //
@jsantell
jsantell / web-ar-projects.md
Last active June 29, 2019 03:01
Projects for WebARonARKit and WebARonARCore

Projects for WebARonARKit and WebARonARCore

New Projects

Leave a comment to add a project you've created or found!

Browsers

@jsantell
jsantell / segmentation.js
Created June 29, 2016 18:49
segmentation.js
{
from: Date,
to: Date,
experiments: [
// Some experiments may not need to update, but just set some local flags
{
name: 'no-tabs',
// Some segmentation groups may need a specific runtime (platform, screen dimensions, memory, location)
requirements: {
platform: platform => platform === 'darwin',