Skip to content

Instantly share code, notes, and snippets.

@zhangnew
zhangnew / 0_reuse_code.js
Created October 12, 2016 11:56
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
@zhangnew
zhangnew / SDLInstall.sh
Created May 2, 2017 07:45 — forked from JPEGtheDev/SDLInstall.sh
Auto install SDL2 on a CentOS System
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cd /tmp
hg clone https://hg.libsdl.org/SDL SDL;
cd SDL;
mkdir build;
cd build;