Skip to content

Instantly share code, notes, and snippets.

View leppie's full-sized avatar
🤡

Llewellyn Pritchard leppie

🤡
  • Cape Town, South Africa
View GitHub Profile
#!/usr/bin/env ruby -wKU
require "pp"
require 'fileutils'
require "gruff"
require 'rmagick'
def read_cal(file)
data_segment = false
// why masking is a good habit
// the following fails are runtime
static byte[] ToByteArray(int i)
{
checked
{
var b = new byte[4];
b[0] = (byte)(i);
b[1] = (byte)((i >> 8));
b[2] = (byte)((i >> 16));