Skip to content

Instantly share code, notes, and snippets.

View quxiaofeng's full-sized avatar
🎯
Focusing

Xiaofeng Qu quxiaofeng

🎯
Focusing
View GitHub Profile
#include <iostream>
using namespace std;
// .data - read-write data
int rwdata = 100;
// .rodata - read-only data
const char* rodata = "hello, world";
@quxiaofeng
quxiaofeng / gist:3000196
Created June 26, 2012 23:41 — forked from qiukun/gist:3000173
send mail to tumblr by coffeescript and nodemailer
nodemailer = require "nodemailer"
smtpTransport = nodemailer.createTransport "SMTP",
service: "Gmail"
auth:
user:
pass:
mail =
from: ""
@quxiaofeng
quxiaofeng / bottle_example.py
Created September 25, 2011 15:53 — forked from Arthraim/bottle_example.py
a python web framework bottle's example
#coding: utf-8
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template
@route('/')
@route('/index.html')
def index():
return '<a href="/hello">Go to Hello World page</a>'
@route('/hello')
def hello():