Skip to content

Instantly share code, notes, and snippets.

View csrgxtu's full-sized avatar

Archer Reilly csrgxtu

View GitHub Profile
@csrgxtu
csrgxtu / gisttut
Created July 20, 2013 16:04
What Is Gist?
According to the description of the notes on github, they said that Gist is a simple way to share snippets and pastes with others. all Gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
[如果你用GitHub,可以这样提高效率](fsaf)
@csrgxtu
csrgxtu / Docker
Created March 17, 2015 09:57
Resource About Docker
InfoQ Head First Docker: http://www.infoq.com/cn/articles/docker-core-technology-preview [here](http://www.infoq.com/cn/articles/docker-core-technology-preview)
@csrgxtu
csrgxtu / resume-resource
Created March 16, 2015 15:09
My Resume Resources
http://www.vaikan.com/how-to-write-a-killer-resume-for-software-engineers/
http://coolshell.cn/articles/1695.html
https://github.com/geekcompany/ResumeSample
http://www.zhihu.com/question/25002833
@csrgxtu
csrgxtu / cb.js
Created September 30, 2017 08:09
node cb access parent's var
fs = require('fs')
fs.readFile('/etc/hosts', 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
console.log(data);
});

有个人叫做奈美良智,一个日本的屁民家庭孩子,just like us, 1987年读武藏野美术学院,居然被强行劝退了,小伙子不服气,上了另一所差点儿的美术学院。然后突然在八九十年代到香港,遇见一位大眼、额高、可爱而邪恶的小女孩(俗话说的熊孩子,小屁孩),开始创作自己的风格作品,如下:

image

image

image

从该作品中可以看出,奈美主要是通过将人物缩小失调,突出脑袋五官而表现出一种fuck off 的情绪。其实吸引我的是作品本身和作者的经历。想想,武藏野美术学院的那个劝退奈美的教授现在可以骄傲的说奈美当年就是他的学生。

@csrgxtu
csrgxtu / SimpleTemplateEngine.py
Created July 3, 2017 07:00
a very simple template engine based on string.format
import string
class SuperFormatter(string.Formatter):
"""World's simplest Template engine."""
def format_field(self, value, spec):
if spec.startswith('repeat'):
template = spec.partition(':')[-1]
if type(value) is dict:

How to install itdb in ubuntu?

first, install apache2+

sudo apt-get update
sudo apt-get install apache2

second, install php and related modules

package main
import (
"github.com/kiktomo/goqr"
"image/png"
"os"
)
func main() {