Skip to content

Instantly share code, notes, and snippets.

View bnolan's full-sized avatar

Ben Nolan bnolan

View GitHub Profile
0xf93f8c99b6367D0a7E46A5d743C6427DbA4e3ED8 | 1500
0xf3860788D1597cecF938424bAABe976FaC87dC26 | 1400
0xF7B52b961833381bE422174e8e45C7b47b3E4c9A | 1300
0x91276fd2525976A1D0383636B31b274f38f90871 | 1200
0x3DCA25D72528249a844E64a762CC3bFD12DA514e | 1200
0xb06a16Ca3b2c01bd7DcC6814f8dF0886EB15240f | 900
0xDbB59151b18Dd72E9AC092706e93De5b5d7a9325 | 900
0xe8161aB952e064AD0E3Ef44B29CE8D2dCE39D60D | 800
0xB13C38273E001F0427C26f15B79b57DB90606a91 | 500
0x76ac6B8EEDBB634261e9FA4BF25152a09E1eb90E | 400
@bnolan
bnolan / dashing.json
Created March 16, 2018 05:34
Docset generator for babylonjs
// Requires the github version of dashing
//
// https://github.com/technosophos/dashing
{
"name": "Babylon.js",
"package": "babylonjs",
"index": "classes/3.1.html",
"selectors": {
"#classTitle > h1": {
function getMethodName (string) {
return 'on' + string.charAt(0).toUpperCase() + string.slice(1)
}
this.ws.on('message', (message) => {
// console.log('received: %s', message)
try {
const packet = JSON.parse(message)
assert(typeof packet.type === 'string')
float lerp(float a, float b, float f)
{
return a + f * (b - a);
}
class Envelope {
public:
float attack, decay, sustain, release, start;
int period;
import * as THREE from 'three';
import StyleMap from './style-map';
import parseUrl from './parse-url';
const textureLoader = new THREE.TextureLoader();
textureLoader.crossOrigin = ''; // Enable cross origin requests
export default function parseMaterial (baseUrl, node) {
const styles = new StyleMap(node.getAttribute('material'));
/* globals fetch, DOMParser */
import * as THREE from 'three';
import parseVector from './parse-vector';
import parseEuler from './parse-euler';
import createObjModel from './create-obj-model';
import createGltfModel from './create-gltf-model';
import createBillboard from './create-billboard';
function createCube (node) {
0x00cd87a162B5489702faEC89969Aa9FB4cBb23C5
Echt is a photo sharing app.
Contact [email protected] for support.
@bnolan
bnolan / sdl_and_libopus.cpp
Created April 26, 2017 07:09
Using the SDL microphone and libopus in loopback
#include <SDL2/SDL.h>
#include <opus.h>
#include <opus_types.h>
#include <stdlib.h>
static SDL_Window *window = NULL;
static SDL_Renderer *renderer = NULL;
static SDL_AudioSpec spec;
static SDL_AudioDeviceID devid_in = 0;
static SDL_AudioDeviceID devid_out = 0;
@bnolan
bnolan / gist:bce24855f49b52a62fded8af483eec60
Created April 26, 2017 07:08
Using the SDL microphone with libopus in loopback
#include <SDL2/SDL.h>
#include <opus.h>
#include <opus_types.h>
#include <stdlib.h>
static SDL_Window *window = NULL;
static SDL_Renderer *renderer = NULL;
static SDL_AudioSpec spec;
static SDL_AudioDeviceID devid_in = 0;
static SDL_AudioDeviceID devid_out = 0;