Skip to content

Instantly share code, notes, and snippets.

@c3h3
c3h3 / matplotlibrc
Created January 25, 2014 15:10 — forked from huyng/matplotlibrc
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2013 Soumyajit De
*/
#include <shogun/lib/common.h>
@c3h3
c3h3 / fib.sql
Created September 6, 2017 19:11 — forked from hden/fib.sql
Fibonacci numbers with SQLite
-- http://www.sqlite.org/lang_with.html --
WITH RECURSIVE
fib(current, next) AS (
SELECT 0 current, 1 next
UNION ALL
SELECT fib.next current, fib.current + fib.next next
FROM fib
LIMIT 20
)
SELECT current FROM fib
@c3h3
c3h3 / gist:71a413de75efd40726e9e6e567bdb33c
Created January 3, 2018 16:24 — forked from allex/gist:11203573
Ubuntu 安装中文字体

环境 (Environment)

版本:Ubuntu 14.04 LTS 默认语言:English(United States)

安装 (Setup)

Debian 和 Ubuntu 下对中文支持比较好的字体有: fonts-droid、ttf-wqy-zenhei 和 ttf-wqy-microhei 等,除了文泉驿系列字体外,比较流行的免费中文字体还有文鼎提供的楷体和上海宋,包名分别是: fonts-arphic-ukai 和 fonts-arphic-uming。