Skip to content

Instantly share code, notes, and snippets.

Dato Simó dato

Block or report user

Report or block dato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dato
dato / Makefile
Last active May 27, 2017
lab-sched
View Makefile
QEMU := qemu-system-i386 -serial mon:stdio -d guest_errors
CFLAGS := -std=c99 -m32 -O1 -ggdb3 -gdwarf-4 -Wall -fasm -nostdinc
CFLAGS += -fno-pic -fno-inline -fno-omit-frame-pointer -ffreestanding
ASFLAGS := $(CFLAGS)
SOURCES := $(wildcard *.c)
OBJECTS := $(SOURCES:%.c=%.o)
kernel: entry.o swtch.o $(OBJECTS)
@dato
dato / gale_shapley.c
Last active Mar 10, 2017
Array-only implementation of Gale-Shapley
View gale_shapley.c
#include <stdlib.h>
int *gale_shapley(int **P, int **R, int n) {
/*
* proposers[propidx] is the next proposer without
* assigned reviwer. Loop ends when propidx hits -1.
*/
int propidx = n - 1; // proposers acts as a stack.
int *proposers = malloc(n * sizeof(*proposers));
@dato
dato / initial-alpine.log
Last active May 21, 2016
alpine caching in vagga (with Alpine as distribution)
View initial-alpine.log
% ls -A
vagga.yaml
% cat vagga.yaml
containers:
test:
setup:
- !Depends rebuild.txt
- !Alpine v3.2
- !Install [gcc]
@dato
dato / initial.log
Last active May 21, 2016
alpine caching in vagga (with Ubuntu)
View initial.log
% ls -A
vagga.yaml
% cat vagga.yaml
containers:
test:
setup:
- !Depends rebuild.txt
- !Ubuntu trusty
- !Install [gcc]
@dato
dato / keybase.md
Created Dec 4, 2014
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am dato on github.
  • I am dato (https://keybase.io/dato) on keybase.
  • I have a public key whose fingerprint is 8ED5 FF85 EB6D 58F5 0164 0246 CE7C 4AAD EA63 7685

To claim this, I am signing this object:

View gist:95345
use Irssi;
use Irssi::TextUI;
use strict;
our %IRSSI = (
authors => 'Decklin Foster',
contact => 'decklin@red-bean.com',
name => 'tweetlen',
description => 'Update length of tweet in statusbar',
license => 'ISC',
You can’t perform that action at this time.