Skip to content

Instantly share code, notes, and snippets.

@hayyp
hayyp / main.c
Last active January 1, 2021 07:04
An example for higan-emu's libco
#include <stdio.h>
#include <unistd.h>
#include "libco.h"
#include "libco.c"
void cothr_a_job();
void main_cothr_job();
cothread_t main_cothr;
@hayyp
hayyp / gitreader.sh
Last active October 30, 2020 13:55
Read git commits
#!/usr/bin/env bash
# Consider creating a soft link for the script under /usr/local/bin
# ln -s ~/path/to/script /usr/local/bin/gitreader
# And perhaps give it a better name
if [[ -z $1 || $1 == "help" ]]
then
echo "
gitreader first to checkout the first commit