Skip to content

Instantly share code, notes, and snippets.

View longbowlu's full-sized avatar

Lu Zhang longbowlu

  • San Francisco Bay Area
View GitHub Profile
@longbowlu
longbowlu / .gitignore
Created January 25, 2016 07:54 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@longbowlu
longbowlu / tcp_server.c
Created January 23, 2016 19:10
Simple socket server in C using threads (pthread library) Compiles on linux
/*
C socket server example, handles multiple clients using threads
Compile
gcc server.c -lpthread -o server
*/
#include<stdio.h>
#include<string.h> //strlen
#include<stdlib.h> //strlen
#include<sys/socket.h>
@longbowlu
longbowlu / 0_reuse_code.js
Created November 13, 2015 05:30
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