Skip to content

Instantly share code, notes, and snippets.

( ´ ▽ ` )ノ

Lequn Chen abcdabcd987

( ´ ▽ ` )ノ
View GitHub Profile
VictorLaskin / listcompr.cpp
Created Feb 16, 2015
C++11: Implementation of list comprehension in SQL-like form
View listcompr.cpp
// List comprehension in C++11 in form of SQL-like syntax
// Example code from
// Written by Victor Laskin (
#include <iostream>
#include <functional>
#include <vector>
#include <future>
#include <algorithm>
using namespace std;
mitliagkas / ipyMatplotlib
Created Sep 2, 2014
iPython Inline Vector Graphics Plotting with Matplotlib
View ipyMatplotlib
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format = 'svg'
willurd /
Last active Apr 14, 2021
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
jimbojsb / gist:1630790
Created Jan 18, 2012
Code highlighting for Keynote presentations
View gist:1630790

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: