How to use Pelican on GitHub Pages 
Author: Josef Jezek
sudo apt-get install python-setuptools
#!/usr/bin/env python | |
#encoding: utf-8 | |
import urllib2 | |
import re | |
from base64 import b64decode | |
LIST_URL = 'https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt' | |
DECODE_FILE = 'decode.txt' | |
BLACK_FILE = 'gfw.url_regex.lst' |
#!/usr/bin/env bash | |
#Build and install neovim for Debian | |
#See: https://neovim.io/ | |
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
#See: https://gist.github.com/darcyparker/153124662b05c679c417 | |
#Save current dir | |
pushd . >/dev/null || exit |
#include <iterator> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <fstream> | |
#include <regex> | |
/** | |
* Use namespace std | |
*/ |
Author: Josef Jezek
sudo apt-get install python-setuptools
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
# you can use something like this if read_html fails to find a table | |
# if you have bs4 >= 4.2.1, you can skip the lxml stuff, the tables | |
# are scraped automatically. 4.2.0 won't work. | |
import pandas as pd | |
from lxml import html | |
url = "http://www.uesp.net/wiki/Skyrim:No_Stone_Unturned" | |
xpath = "//*[@id=\"mw-content-text\"]/table[3]" |
import matplotlib.pyplot as plt | |
from pandasql import * | |
import pandas as pd | |
pysqldf = lambda q: sqldf(q, globals()) | |
q = """ | |
SELECT | |
m.date | |
, m.beef |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |