Skip to content

Instantly share code, notes, and snippets.

View meta-meta's full-sized avatar

Paul M. Christian meta-meta

View GitHub Profile
@meta-meta
meta-meta / gist:f331dc60ea5f100985bd6b79290d3e18
Last active July 13, 2023 17:02
Set key color on Lumatone
<pre><code>
----------begin_max5_patcher----------
1264.3oc2Z1saaaCE.9ZGf7NPnK1UtFjT7GocQAF1kauACCAz1rYrwRxPhJK
oE6ceTjRMxoNzzUTNFEAvFlhRG9c9imCU95s2rHYc0SxlDvuB9KvhEe0LxB6
XcirXXfEIEhm1rSzXmXxlphBYoNYY+E0xmz1KzH0+g74euZWU82t39ZYiYxB
spp7tcpR4lp1R6zwCS4SUk5F0WjcClsBiHLJGgoYHHEyGlTYagpbmTaWBnQi
V0pGFFNLrZqc8Ts9ye.8xJQn27Opx6uqVtQ6HFigqfKAXt8KFp6SDaED7216
4+t8ltuMesb5Jm+rsPnqJk.iVB7f7YvlCzSiUBX5JHgh377TRNEgf3opEx7q
FRcjifqHYXLKmBSoDFLGazMLd20RoyiVoSYnq.6FTNFNRlLrPevlxIqnKAzr
LKyTmG.bdvyXmmLN7bu1NCGzu4BmlOmzrtRTuc57j4iGDKeEuCH3k.nZo3Av
----------begin_max5_patcher----------
2748.3oc6bs0iaaiE94I.4+ff59Tg6DwqRpusn.6aKPA1GCJFHaK6nTYIuRx
SR11M+1WxC0cKSQWQ6Is6LCfsGYIdtvykOd3gyu8127f657OGW557iNu24gG
9MwUd.tl7JOzbgGbOD84MoQkvM5ljkFW4tp9qxNc.t.7cd8tZ9oplKiZtbxV
XDxW+wevucDNFUs4CIY6epHdSkhUPA9O5sxg4Iekz9pyuz7LpAu5KGiUOfqa
22sI+vg3LXjbaIRR11XPp7fK7ee6ajuKdakwxcV7mDLd6HVE+YEM1GUEOs5.
at5.oUePBYRc.mxA0BATHj4THVWRqbVK+cZgEMsvRlPXY5jUpevibOwObjGg
gXbLakCBAFA9LCj70QY6cWM58EnMZrmNSc7tNwnHtTbKQUI4Y8DELGlovLj7
MJo40NleWdVUYx+AXcvNWqlsOYznx8lRky0oyCH.Gxnfamu2irFF09ZsioQe
Yczle0oP327iyoB47Gky+XFWxSnZSeTecn80UzAb8GOUVkrKYS6Pg0nI4XUj
@meta-meta
meta-meta / HapticTest.cs
Created June 20, 2018 04:11 — forked from mzandvliet/HapticTest.cs
OVR Haptics Example
using UnityEngine;
/*
* Haptics internal update (Process()) is triggered by OVRManager, which
* you need to have in your scene.
*/
public class HapticTest : MonoBehaviour {
private OVRHapticsClip _clip;

Here are my attempts to script an IntelliJ-based IDE.

IDE Scripting Console is backed by JSR-223 (javax.script.*) API.

Groovy, Clojure, JavaScript and other scripting languages may be used.

Open IDE Scripting Console, type a statement, hit Ctrl-Enter to execute the current line or selection.

.profile.language-extension file in the same directory will be executed along with it if present.

@meta-meta
meta-meta / idea
Created June 14, 2017 17:41 — forked from grocky/idea
Open IDEA applications based on project type from the command line!
#!/usr/bin/env bash
IDEA=''
PROJECT_DIR=''
function main() {
openIdea "$@"
}
function openIdea() {
@meta-meta
meta-meta / atomEditorChaosNotespace.js
Created April 23, 2017 21:38
Atom chaos nullspace
// var str = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890~!@#$%^*()-_=+,./<>?;:\'"[]{}|`&';
var str = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';
var randChar = () => str.substr(Math.floor(Math.random() * str.length), 1)
// this one works better. I think maybe the random chars are being parsed to some degree so they don't fill the space??
var randStr = len => new Array(len)
.fill('')
.map(randChar)
@meta-meta
meta-meta / destructuring.js
Created December 13, 2016 01:22 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@meta-meta
meta-meta / SDKSwap.cs
Created December 11, 2016 19:22 — forked from flarb/SDKSwap.cs
Swap between Unity3D Google Cardboard and Gear VR / OVR Mobile SDKs. It swaps out the Android manifest files when you switch platforms--pretty much all you need (aside from wrapping the APIs) to switch platforms.
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
public class SDKSwap : EditorWindow {
static string _cardboardPath;
static string _OVRPath;
[
{
"keys": ["ctrl+y"],
"command": "run_macro_file", "args": {"file": "Packages/Default/Delete line.sublime-macro"}
}
]