Skip to content

Instantly share code, notes, and snippets.

{
"targets": [
{
"target_name": "keypress",
"conditions": [
['OS == "mac"', {
'include_dirs': [
'System/Library/Frameworks/CoreFoundation.Framework/Headers',
'System/Library/Frameworks/Carbon.Framework/Headers',
],
@billautomata
billautomata / gist:ee3054dd768028e127a7
Created September 20, 2014 05:57
c64 development toolkit
MacBook Pro, TextMate, cc65, MacVICE, and 1541 Ultimate for testing. To transfer actual disks, use RR-Net and WarpCopy.
@billautomata
billautomata / gist:6452daac265f06f17ed2
Created October 3, 2014 05:36
glsl 32 bit unpack and pack
vec4 pack (float depth)
{
const vec4 bitSh = vec4(256 * 256 * 256,
256 * 256,
256,
1.0);
const vec4 bitMsk = vec4(0,
1.0 / 256.0,
1.0 / 256.0,
1.0 / 256.0);
@billautomata
billautomata / example.js
Created October 25, 2014 20:54
example code
// javascript
var sum = 0
for(var i = 0; i < 100; i++){
sum += 1
}
sum = sum / 100
console.log('average is :'+sum)
@billautomata
billautomata / index.js
Created October 28, 2014 00:22
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@billautomata
billautomata / iologo.svg
Last active January 30, 2021 07:48 — forked from fhinson/iologo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import bpy
from bpy_extras.view3d_utils import location_3d_to_region_2d as loc3d2d
import os
def write_svg(edge_list, region):
width, height = region.width, region.height

Keybase proof

I hereby claim:

  • I am billautomata on github.
  • I am billautomata (https://keybase.io/billautomata) on keybase.
  • I have a public key whose fingerprint is 849D B268 42A1 971F 9B21 7774 0CA7 73DB EC89 3EE8

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am billautomata on github.
  • I am billautomata (https://keybase.io/billautomata) on keybase.
  • I have a public key whose fingerprint is B87F F111 CD3B A2F9 5DF2 AE15 7A22 907F 5478 6F8D

To claim this, I am signing this object: