This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var db = mongoose.createConnection('127.0.0.1', 'test'); | |
// Make schema | |
var schema = mongoose.Schema({ name: String }); | |
// Create subscribers collection | |
var subscribers = []; | |
// Hook `save` post method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -ef | grep UWA | grep -v grep | awk '{print $2}' | xargs kill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _default_options = { | |
freezeTableName: true | |
, underscored: true | |
, charset: 'utf8' | |
, collate: 'utf8_general_ci' | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"====================================================================================== | |
"General settings | |
"====================================================================================== | |
syntax on | |
set expandtab | |
set guifont=Courier\ New\ 12 | |
set guifontwide=STXihei:h14 | |
"set guifont=Bitstream\ Vera\ Sans\ Mono:h14 | |
"set nomacatsui | |
"set termencoding=macroman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ NAME: Cross-browser TextStorage | |
* @ DESC: text storage solution for your pages | |
* @ COPY: sofish, http://sofish.de | |
*/ | |
typeof window.localStorage == 'undefined' && ~function () { | |
var localStorage = window.localStorage = {}, | |
prefix = 'data-userdata', | |
doc = document, |
NewerOlder