This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2024, Dominic Szablewski - https://phoboslab.org | |
SPDX-License-Identifier: MIT | |
Compile with: | |
gcc l555.c -lm -O3 -o l555 | |
PCM WAV to L555 MWV: | |
./l555 in.wav out.mwv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
// ----------------------------------------------------------------------------- | |
// Cross platform high resolution timer | |
// From https://gist.github.com/ForeverZer0/0a4f80fc02b96e19380ebb7a3debbee5 | |
#include <stdint.h> | |
#include <stdbool.h> | |
#if defined(__linux) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import win32api | |
if (len(sys.argv) < 4): | |
print "Usage: python mousemove.py dx dy speed" | |
sys.exit() | |
current = win32api.GetCursorPos() | |
cx = sx = current[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rAF polyfill based on https://gist.github.com/1579671 | |
(function(w) { | |
"use strict"; | |
// Find vendor prefix, if any | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for( var i = 0; i < vendors.length && !w.requestAnimationFrame; i++ ) { | |
w.requestAnimationFrame = w[vendors[i]+'RequestAnimationFrame']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
let http = require('http'), | |
url = require('url'), | |
querystring = require('querystring'), | |
fs = require('fs'), | |
editorIndex = 'editor/editor.html', | |
port = parseInt(process.argv[2] || 8080, 10); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ig.module( | |
'plugins.gamepad' | |
) | |
.requires( | |
'impact.input', | |
'impact.game' | |
) | |
.defines(function(){ | |
// Assign some values to the Gamepad buttons. We use an offset of 256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ig.module( | |
'plugins.analog-stick' | |
) | |
.requires( | |
'impact.system' | |
) | |
.defines(function(){ | |
ig.AnalogStick = ig.Class.extend({ | |
stickSize: 30, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
THREE.OBJLoader = function () { | |
THREE.EventDispatcher.call( this ); | |
}; |
NewerOlder