I hereby claim:
- I am johnliu on github.
- I am johnliu (https://keybase.io/johnliu) on keybase.
- I have a public key whose fingerprint is E446 324F 473C DE0C 8BC0 D112 7E47 91EA 88F2 7679
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
struct dev_orientation { | |
int azimuth; /* angle between the magnetic north and the Y axis, | |
around the Z axis (0 <= azimuth < 360) | |
0 = north, 90 = east, 180 = south, 270 = west */ | |
int pitch; /* rotation around the X-axis: -180 <= pitch <= 180 */ | |
int roll; /* rotation around the Y-axis: +Y == -roll, |
#include <stdio.h> | |
#include <stdlib.h> | |
struct node { | |
struct node *next; | |
struct node *prev; // Used if we assumble doubly linked list. | |
int val; | |
}; | |
void print_list(struct node *list) { |
#!/usr/bin/python | |
import os | |
import sys | |
import math | |
from random import random | |
DISTANCE = 10000 | |
#include <stdlib.h> | |
#include <stdio.h> | |
int a = 5; | |
void f(int **x) { | |
*x = &a; | |
printf(" %d ", **x); | |
} |
#!/usr/bin/python | |
import inspect | |
import os | |
import subprocess as sp | |
import sys | |
""" | |
A simple testing framework for this shell. |