Skip to content

Instantly share code, notes, and snippets.

@baoqiang
baoqiang / ghost.txt
Created December 7, 2016 12:04
ghost text
_______________________________
< Is your server (N)jinxed ? ;o >
-------------------------------
\
\ __---__
_- /--______
__--( / \ )XXXXXXXXXXX\v.
.-XXX( O O )XXXXXXXXXXXXXXX-
/XXX( U ) XXXXXXX\
/XXXXX( )--_ XXXXXXXXXXX\
@baoqiang
baoqiang / postgresql-postgis.json
Created August 7, 2016 14:06 — forked from bfs/postgresql-postgis.json
postgresql with postgis on marathon
{
"id": "my-postgis-app",
"container": {
"type": "DOCKER",
"docker": {
"image": "boritzio/docker-postgis",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 5432, "hostPort": 0, "servicePort": 31113, "protocol": "tcp" }
],
@baoqiang
baoqiang / .gitignore
Created March 16, 2016 15:29 — forked from bergie/.gitignore
Node.js email handling examples
config.json
reading-image.png
@baoqiang
baoqiang / forEach.js
Created January 4, 2016 03:21 — forked from koba04/forEach.js
配列でもオブジェクトでも繰り返ししてくれるforEach ref: http://qiita.com/items/604c308e1b18642da771
var forEach = function(list, callback) {
if ( list instanceof Array ) {
var len = list.length;
for (var i=0; i<len; i++) {
callback.call(list[i], i, list[i]);
}
} else {
for (var key in list ) if ( list.hasOwnProperty(key) ) {
callback.call(list[key], key, list[key]);
}