Skip to content

Instantly share code, notes, and snippets.

@zodiac1111
zodiac1111 / main.c
Last active August 29, 2015 14:05 — forked from brendanashworth/main.c
Basic example multithreading in C
#import <stdio.h>
#import <pthread.h>
void *threadFunction(void *arg) {
// To be executed when called...
}
int main(void) {
pthread_t *thread;
@zodiac1111
zodiac1111 / jsonio.js
Created August 22, 2014 05:28 — forked from thekarel/jsonio.js
JSON I/O
// From JSON
var jsObject = JSON.parse(jsonString);
// To JSON
var jsonString = JSON.stringify(foo);
@zodiac1111
zodiac1111 / 0_reuse_code.js
Created August 22, 2014 03:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console