Skip to content

Instantly share code, notes, and snippets.

View boj's full-sized avatar

Brian Jones boj

View GitHub Profile
{ config, pkgs, ... }:
let
hostname = "luz3";
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# I use VirtualBox to connect to Windows and Linux guests
@boj
boj / simplexC.cs
Created February 8, 2012 03:21 — forked from qpfiffer/simplexC.cs
Carmody's implementation of Simplex noise in C#
public class simplexCarmody
{
int[] T;
private static int i, j, k;
private static int[] A = new int[3]{0, 0, 0};
private static float u, v, w, s;
private static float onethird = 0.333333333f;
private static float onesixth = 0.166666667f;
public simplexCarmody(Random randObj)
class Watch
# Instance property
location: 'here'
# Class property
@location: 'over there'
locate: ->
alert "I am #{@location}."
#
# Created by Eric Lindvall <eric@sevenscale.com>
#
# WHAT: Provides a simple overview of memory allocation occuring during a
# require.
#
# NOTE: The numbers provided are of self + children, meaning the same will
# be attributed to multiple files at once.
#
# Also, memory that is no longer referenced (and would be freed) is still