Skip to content

Instantly share code, notes, and snippets.

flags = [
'-Wall',
'-Wextra',
'-Werror',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
'-DUSE_CLANG_COMPLETER',
'-lboost_system',
a:link, a:visited, a:active {
color: #8e8d93;
-webkit-transition: all .15s;
-moz-transition: all .15s;
-ms-transition: all .15s;
-o-transition: all .15s;
transition: all .15s;
}
a.top:link, a.top:visited, a.top:active {
color: #000;
@keliwang
keliwang / wallpaper.go
Created October 5, 2013 09:26
Get pictures from bing.com and set it as wallpaper
package main
import (
"io/ioutil"
"log"
"net/http"
"os/exec"
"regexp"
)
@keliwang
keliwang / ensure.hpp
Last active February 6, 2020 02:29
ENSURE macro
#ifndef __SIMPLE_LIBS_ENSURE_HPP__
#define __SIMPLE_LIBS_ENSURE_HPP__
/* ENSURE is a better assert that can provide more useful information.
* Example: ENSURE(index >= 0 && index < v.size())(index)(v.size());
*/
#include <stdexcept>
#include <string>
#include <sstream>

Keybase proof

I hereby claim:

  • I am keliwang on github.
  • I am keliwang (https://keybase.io/keliwang) on keybase.
  • I have a public key whose fingerprint is 03C3 2B9E 9EB2 26A4 5CE1 F727 E104 1227 FEE5 9D0D

To claim this, I am signing this object: