Skip to content

Instantly share code, notes, and snippets.

View new299's full-sized avatar

Nava Whiteford new299

View GitHub Profile
@new299
new299 / sixel.py
Created November 20, 2012 12:13 — forked from saitoha/sixel.py
convert an image into VT320 sixel color graphics (depends on PIL)
#!/usr/bin/env python
import sys, termios, StringIO
import Image # PIL
class SixelConverter:
def __init__(self, image, f8bit = False):
if f8bit: # 8bit mode
@new299
new299 / test.c
Created September 5, 2012 07:46 — forked from nsf/clean.bash
Perlin noise benchmark
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#define M_PI 3.1415926535f
typedef struct {
float x, y;
} Vec2;