I hereby claim:
- I am jimfinnis on github.
- I am jimfinnis (https://keybase.io/jimfinnis) on keybase.
- I have a public key ASA9c-OHMfFtiCUK2jIZN958JncMTZXfEJ3tDjtjKpKLHgo
To claim this, I am signing this object:
#!/usr/bin/python3 | |
# Used as part of 'up' to move up complex directory trees: | |
# With no args, prints '..' | |
# With a numeric argument, prints '../../' up as many levels as the arg. | |
# With a string argument, looks for a string in the path, and prints '../' | |
# enough times to go up to that directory. | |
# | |
# You also need to add to your .bash (I use .bash_aliases): | |
# |
double prevtime = now(); | |
for(;;){ | |
render(); | |
double t = now() - prevtime; | |
prevtime = now(); | |
while(t>MINUPDATETIME){ | |
update(MINUPDATETIME); | |
t-=MINUPDATETIME; | |
} | |
update(t); |
#include <stdio.h> | |
#include <time.h> | |
// calculate time in seconds between two timespecs | |
inline double time_diff(timespec start, timespec end) | |
{ | |
timespec temp; | |
if ((end.tv_nsec-start.tv_nsec)<0) { |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @file advent.cpp | |
* @brief Brief description of file. | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <angort/angort.h> |
f = open('jokes.txt','r') | |
jokes = [x.strip() for x in f.read().split('%%')] | |
... | |
j = random.choice(jokes) |
#include <stdio.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
#include <strings.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <stdlib.h> |