Skip to content

Instantly share code, notes, and snippets.

View csrgxtu's full-sized avatar

Archer Reilly csrgxtu

View GitHub Profile
@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);
});

How to install itdb in ubuntu?

first, install apache2+

sudo apt-get update
sudo apt-get install apache2

second, install php and related modules

@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:

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

image

image

image

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

package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
package main
import (
"github.com/kiktomo/goqr"
"image/png"
"os"
)
func main() {
[如果你用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 / MEMM
Last active May 22, 2018 15:46
A Gist For get myself understand the MEMM -- Maximum Entropy Markov Model
An introduction from wiki: http://en.wikipedia.org/wiki/Maximum-entropy_Markov_model
An Chinese blog summerize the three: MaxEnt, HMM, MEMM, and CRF: http://www.cnblogs.com/549294286/archive/2013/06/06/3121761.html
An very intuative instroduction to NLP segmentation: http://www.isnowfy.com/introduction-to-chinese-segmentation/
Steve's Explanation to MEMM: http://www.cs.toronto.edu/~sengels/tutorials/MEMM.html
MIT 6.863J/9.611J Natural Language Processing: Fall 2012: http://web.mit.edu/6.863/www/fall2012/
MIT 6.881 2004秋季课程:自然语言处理(Natural Language Processing, Fall 2004): http://www.myoops.org/cocw/mit/Electrical-Engineering-and-Computer-Science/6-881Fall-2004/CourseHome/index.htm
@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