Skip to content

Instantly share code, notes, and snippets.

View greyfade's full-sized avatar

Charles Banas greyfade

View GitHub Profile
@staltz
staltz / introrx.md
Last active July 15, 2024 15:43
The introduction to Reactive Programming you've been missing
#define debugreg(reg) printf(#reg ": %08x\n", psxRegs.GPR.n.reg)
// interpreter execution
static inline void execI() {
u32 *code = Read_ICache(psxRegs.pc, FALSE);
if(code != NULL && SWAP32(*code) == 0xDEADBEEF) {
printf("===== DEBUG =====\n");
printf("pc: %08x\n", psxRegs.pc);
debugreg(r0);
debugreg(at);
@KirinDave
KirinDave / .zshrc-excerpt
Created October 31, 2011 20:21
More ZSH rprompt help
export PAGER=less
export MANPAGER="less -r"
alias lesr='less -r'
# Git commands
alias gb='git branch -a --color -v'
alias gr="gitk --all --since='last week' &"
# Helpful
alias pu=pushd
@vwood
vwood / ecldemo.c
Created November 4, 2010 03:49
Example of ECL in a C program.
/*
Example of a C program embedding ECL with callbacks to C functions.
Compiled via: gcc ecldemo.c -lecl
*/
#include <stdio.h>
#include <stdlib.h>
#include "ecl/ecl.h"
#define DEFUN(name,fun,args) \
cl_def_c_function(c_string_to_object(name), \