Skip to content

Instantly share code, notes, and snippets.

View Fishrock123's full-sized avatar
💭
#freepalestine #blacklivesmatter #acab drop ICE you cowards

Jeremiah Senkpiel Fishrock123

💭
#freepalestine #blacklivesmatter #acab drop ICE you cowards
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fishrock123 on github.
  • I am fishrock (https://keybase.io/fishrock) on keybase.
  • I have a public key whose fingerprint is FD3A 5288 F042 B685 0C66 B31F 09FE 4473 4EB7 990E

To claim this, I am signing this object:

// Site 404
app.use(function(req, res, next) {
res.status(404)
if (req.accepts('html')) {
res.type('html')
res.render('404', {
url: req.get('host') + req.url,
user: req.user,
version: version
@Fishrock123
Fishrock123 / log.txt
Created December 28, 2013 03:20
node-core-audio compile errors.
/Users/Jeremiah/Documents/node-voicechat
Jeremiahs-MacBook-Pro:node-voicechat Jeremiah$ npm install node-core-audio-0.3.5.tgz
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/audio-streamer
npm http GET https://registry.npmjs.org/fft
npm http GET https://registry.npmjs.org/portfinder/0.2.1
npm http 200 https://registry.npmjs.org/portfinder/0.2.1
npm http 200 https://registry.npmjs.org/audio-streamer
npm http GET https://registry.npmjs.org/portfinder/-/portfinder-0.2.1.tgz
@Fishrock123
Fishrock123 / alphaSortJSON.js
Created December 23, 2013 17:51
Sorts a JSON Object file alphabetically.
var specs = require('./Your_Json_File_Here.json')
, out = {}
, fs = require('fs')
function iterateObjectAlphabetically(obj, callback) {
var arr = []
, i
for (i in obj) {
if (obj.hasOwnProperty(i)) {
function Other(args) {
Original.call(this, args);
};
inherits(Other, Original);
// Yes, I know they are not actually "classes"
Other.prototype.classMethod = function() {
// called like so:
// var other = New Other()
// other.classMethod()
@Fishrock123
Fishrock123 / nav-highlight.js
Created November 8, 2013 23:17
My site's header highlighting code.
// Ignore the preceding '/'.
page = [removed].pathname.slice(1);
// The landing page corresponds to the 'home' icon.
if (page === '') page = 'home';
// Test if the page is a nav link.
page = page.match(/home|about|projects|blog/);
// Check the result of the regex.
if (page && page.length > 0) {
// Style the corresponding nav link.
$('#' + page[0]).children().addClass('current-page');
@Fishrock123
Fishrock123 / pixi.hextomatrix.js
Last active December 26, 2015 00:19
UNFINISHED. WIP. ETC. Code by "graphxdziner" on board.flashkit.com translated to js for use with pixi.js
/*
* @author "graphxdziner" on board.flashkit.com
* Source: http://board.flashkit.com/board/showthread.php?728847-convert-hex-value-to-colormatrix-array&s=a432383a54d4eeed74bf800b22ee0f83&p=3854541&viewfull=1#post3854541
*/
function setColor(mc, r, g, b, a)
{
var matrix =
[ r, 0, 0, 0
, 0, g, 0, 0
@Fishrock123
Fishrock123 / alphainetabet.txt
Last active December 23, 2015 13:59
My internet alphabet (20 / 9 / 2013) - http://blog.audobox.com/your-internet-alphabet/
acko.net
biolitestove.com
cheezburger.com
dust514.com
expressjs.com
flickr.com
github.com
humblebundle.com
icloud.com
jquery.com
@Fishrock123
Fishrock123 / Content-Type-List.js
Last active December 23, 2015 10:59
All common Internet Media Types, in Javascript list form (for testing stuffs).
var content_types = [
'application/atom+xml',
'application/ecmascript',
'application/EDI-X12',
'application/EDIFACT',
'application/json',
'application/javascript',
'application/octet-stream',
'application/ogg',
'application/pdf',
@Fishrock123
Fishrock123 / genrun.js
Last active December 18, 2015 05:38 — forked from jlongster/testgen.js
basic generator async lib fleshed out to be slightly nicer
// based off of https://gist.github.com/creationix/5544019
// these could probably be condensed more, but I'm just doing this
// quickly
exports = module.exports = run;
exports.call = call;
exports.invoke = invoke;
exports.bind = bind;