Skip to content

Instantly share code, notes, and snippets.

View Rupt's full-sized avatar

Rupert Tombs Rupt

View GitHub Profile
@gmarkall
gmarkall / inspect.py
Created April 15, 2015 12:02
inspect types, llvm, and asm in Numba
import numpy as np
from numba import njit
@njit
def f(arr1, arr2):
for i in range(len(arr1)):
arr1[i] += arr2[i]
a = np.arange(10)
b = np.arange(10)
@fogus
fogus / 0 - UNIX Fifth Edition
Created July 20, 2011 00:15
UNIX V5, OpenBSD, Plan 9, FreeBSD, and GNU coreutils implementations of echo.c
main(argc, argv)
int argc;
char *argv[];
{
int i;
argc--;
for(i=1; i<=argc; i++)
printf("%s%c", argv[i], i==argc? '\n': ' ');
}