Skip to content

Instantly share code, notes, and snippets.

View theJian's full-sized avatar
👾
Fighting space invaders

Tan Kian theJian

👾
Fighting space invaders
  • Anaemia Studios
  • The place where there is no darkness.
View GitHub Profile
@theJian
theJian / .md
Created September 23, 2015 17:24
Traversing the DOM use jquery

Here is our DOM

body
|
|-h1
| |
| |-"Traversing the ..."
|
|-h2
| |
@theJian
theJian / Nodejs.md
Created September 15, 2015 07:13
NodeJs 模块

当模块的文件名是index.js,加载模块时可以使用模块所在目录的路径代替模块文件路径,以下两条语句等价。

var cat = require('/home/user/lib/cat');
var cat = require('/home/user/lib/cat/index');
@theJian
theJian / gist:e62426c0e33a0659f007
Last active September 15, 2015 01:26 — forked from technoweenie/gist:1072829
.netrc file so you can push/pull to https git repos without entering your creds all the time
machine github.com
login technoweenie
password SECRET
machine api.github.com
login technoweenie
password SECRET
@theJian
theJian / 0_reuse_code.js
Last active August 30, 2015 18:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console