Skip to content

Instantly share code, notes, and snippets.

View dribnet's full-sized avatar

tom white dribnet

View GitHub Profile
@dribnet
dribnet / README.md
Last active December 22, 2015 00:08
blade / mapbox

In answer to blade's first github issue: can blade be used with mapbox and markercluster? Sure, the mrhyde library underenath should work with almost any js library. Here's my port of the example code.

@dribnet
dribnet / README.md
Last active December 22, 2015 10:48
boids skeleton

This is the beginning of a boids simulation. This minimal skeleton just shows how to have multiple objects updated and drawn using d3 + strokes.

@dribnet
dribnet / README.md
Last active December 22, 2015 10:48
boids

Example of a boids simulation using strokes + d3. This version adapted from the boids example in Sean Luke's excellent java based mason simulation library.

@dribnet
dribnet / README.md
Last active December 23, 2015 01:59
experimental async boids with controls

A messy experiment. There will be bugs.

@dribnet
dribnet / README.md
Last active November 8, 2015 21:27
p5.js sketch

p5.js block

Port of desgin sketch from 1997 to p5.js and viewable via bl.ocks.org

@dribnet
dribnet / py_cudart_memory.py
Created January 18, 2016 17:35 — forked from udibr/py_cudart_memory.py
Get memory usage of CUDA GPU, using ctypes and libcudart
import ctypes
# Path to location of libcudart
_CUDA = "/usr/local/cuda/lib/libcudart.dylib"
cuda = ctypes.cdll.LoadLibrary(_CUDA)
cuda.cudaMemGetInfo.restype = int
cuda.cudaMemGetInfo.argtypes = [ctypes.c_void_p, ctypes.c_void_p]
cuda.cudaGetErrorString.restype = ctypes.c_char_p
@dribnet
dribnet / .block
Last active March 12, 2021 15:55
p5.js hello world
license: mit
@dribnet
dribnet / .block
Last active July 18, 2016 12:32
p5.js sketch with history
license: mit
@dribnet
dribnet / .block
Last active July 12, 2016 01:21
example p5.js sketch
license: mit
@dribnet
dribnet / .block
Last active May 7, 2019 07:00
Parametric Faces
license: mit