Skip to content

Instantly share code, notes, and snippets.

View bnjbvr's full-sized avatar

Benjamin Bouvier bnjbvr

View GitHub Profile
@bnjbvr
bnjbvr / gist:e268b2eba1f6dc32b4ec
Last active August 29, 2015 14:13 — forked from padenot/gist:64d001ee1e396794331c
SIMD example for padenot
if (window.SIMD) {
// yay, SIMD available, let's do a little stereo mixdown routine
for (var i = 0; i < bufsize; i+=4) {
var lhs = SIMD.float32x4(left[i+0], left[i+1],
left[i+2], left[i+3]),
rhs = SIMD.float32x4(right[i+0], right[i+1],
right[i+2], right[i+3]);
var mixdown = SIMD.float32x4.add(lhs, rhs);
SIMD.float32x4.store(center, i, mixdown);
}
@bnjbvr
bnjbvr / gist:5344958
Last active December 16, 2015 00:09 — forked from seanmonstar/gist:5286698
rss-2-tent-bridge

Tent <-> RSS Bridge

Needs a name (smoke-signals?)

This is an open source, hosted, bi-directional bridge of Tent and RSS. It would be hosted somewhere, and installed as an app against your tent server.

Using Python, because it doesn't make us claw our eyes out. Likely with the Flask framework.

Register as an app

@bnjbvr
bnjbvr / pr.md
Created March 25, 2013 10:40 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: