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 / 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 / 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;