GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Batch convert *.docx to *.pdf file using Word application */ | |
function args() { | |
var ret = []; | |
for (var i = 0; i < WScript.Arguments.length; i++) | |
ret[i] = WScript.Arguments(i); | |
return ret; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <climits> | |
#include <cctype> | |
#include <cmath> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import hashlib | |
import sqlite3 | |
import os | |
from functools import reduce | |
import requests | |
class DbCache: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 使用 ssh 连接到虚拟机内的 ArchLinux 系统 | |
@echo off | |
: archlinux 是 .ssh/config 里为虚拟机设置的别名 | |
set vm=ArchLinux | |
if "%1" == "stop" ( | |
echo Save state of %vm% ... | |
VBoxManage controlvm %vm% savestate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- try to implement a naive macro in Lua | |
-- TODO complete it | |
function syntax(name) | |
assert(type(name) == "string") | |
local name, args = name:match("([%w_]+)%(?([%w_,]+)%)?") | |
return function(body) | |
assert(type(body) == "string") | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_gcide-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_wn-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-moby-thesaurus-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-web1913-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_elements-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-vera-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-jargon-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_foldoc-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-easton-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_hitchcock-2.4.2.tar.bz2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var userid = getQueryString("userid"); | |
var course = [["48507", "http://wkzy.mycourse.cn/course/A09023/index.html"], | |
["48506", "http://wkzy.mycourse.cn/course/A09022/index.html"], | |
["48503", "http://wkzy.mycourse.cn/course/A09019/index.html"], | |
["48505", "http://wkzy.mycourse.cn/course/A09021/index.html"], | |
["48504", "http://wkzy.mycourse.cn/course/A09020/index.html"], | |
["48502", "http://wkzy.mycourse.cn/course/A09018/index.html"], | |
["48501", "http://wkzy.mycourse.cn/course/A09017/index.html"], | |
["48500", "http://wkzy.mycourse.cn/course/A09016/index.html"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 注释嵌套测试 | |
*/ | |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int i; | |
i = /*/*/0*/**/1; |
NewerOlder