Skip to content

Instantly share code, notes, and snippets.

View andyrudoff's full-sized avatar

Andy Rudoff andyrudoff

  • Intel
  • Boulder, CO
View GitHub Profile
#
# Makefile for force_4k example
#
PROGS = force_4k
CFLAGS = -g -Wall -Werror -std=gnu99
all: $(PROGS)
force_4k: force_4k.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
@andyrudoff
andyrudoff / .gitignore
Last active May 14, 2022 03:02
interpose on libc syscalls by code patching
*.o
tester
elmo.so
@andyrudoff
andyrudoff / range.js
Last active March 2, 2023 14:28
javascript range() generator modeled after python
//
// range -- generator similar to python's range()
//
// range() will generate 0..MAX_SAFE_INTEGER
// range(end) will generate 0..(end-1)
// range(start, end) will generate start..(end-1)
// range(start, end, step) will step by step instead of 1
// start can be larger than end if step is negative:
// for example range(10, 2, -1)
//