Skip to content

Instantly share code, notes, and snippets.

View statico's full-sized avatar

Ian Langworth ☠ statico

View GitHub Profile
@statico
statico / find.coffee
Created May 1, 2014 00:28
Multi-threaded CoffeeScript syntactical grep
#!/usr/bin/env coffee
# {{{1 Cluster fun!
{walk} = require 'walk'
cs = require 'coffee-script'
pathlib = require 'path'
fs = require 'fs'
cluster = require 'cluster'
@statico
statico / 0.sh
Last active August 29, 2015 14:01
wget https://gist.githubusercontent.com/statico/ffaa81e9eb71951ccede/raw/fce0350b2bd25eb03cbe789dc0015a3990cfe15a/wrtbwmon -O /tmp/wrtbwmon && chmod +x /tmp/wrtbwmon
#ifdef GL_ES
precision highp float;
#endif
#define GLGE_FRAGMENT
uniform float distance;
uniform bool shadowtype;
varying vec3 lightvec0;
varying float lightdist0;
varying vec3 n;
varying vec3 t;
@statico
statico / track.js
Created August 14, 2014 01:33
TrackJS script beautified
// COPYRIGHT (c) 2014 TrackJS LLC ALL RIGHTS RESERVED
(function(h, n) {
"use awesome";
if (h.trackJs) h.console && h.console.warn && h.console.warn("TrackJS global conflict");
else {
var k = function(a, b, c, d, e) {
this.util = a;
this.onError = b;
this.onFault = c;
this.options = e;
@statico
statico / keybase.md
Created September 28, 2014 01:31
keybase.md

Keybase proof

I hereby claim:

  • I am statico on github.
  • I am statico (https://keybase.io/statico) on keybase.
  • I have a public key whose fingerprint is 0205 9844 0471 D12C 43B2 387A 2F77 BFF0 E680 7C7E

To claim this, I am signing this object:

@statico
statico / perforce-setup.sh
Last active August 29, 2015 14:08
perforce-setup.sh
#!/usr/bin/env bash
set -e
get_p4_url() {
local os=$(uname -s)
if [[ "$os" =~ Linux ]]; then
echo "http://cdist2.perforce.com/perforce/r14.2/bin.linux26x86_64/p4"
else
echo "http://cdist2.perforce.com/perforce/r14.2/bin.macosx105x86/p4"
@statico
statico / angular-directive-reloading.html
Last active August 29, 2015 14:15
angular-directive-reloading
<!doctype html>
<html>
<head>
<title>angular test</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.js"></script>
</head>
<body>
<h3>demo of reloading/replacing angularjs directives</h3>
@statico
statico / JSON.lua
Created June 19, 2015 15:41
Modified JSON.lua to set a JSON global for use with lua.vm.js -- see line 30 and https://github.com/kripken/lua.vm.js/pull/26
-- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:

Keybase proof

I hereby claim:

  • I am statico on github.
  • I am statico (https://keybase.io/statico) on keybase.
  • I have a public key whose fingerprint is B84E 0DE5 E4C2 5128 5B0B 39C0 6704 627B C76D BFA8

To claim this, I am signing this object:

Assume the following history exists and the current branch is "topic":
A---B---C topic
/
D---E---F---G master
From this point, the result of either of the following commands: