This file contains 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 modelCleanCyclic = require('./modelCleanCyclic'); | |
var Example = new keystone.List('Example', {}); | |
Example.schema.set('toJSON', { | |
virtuals: true, | |
transform: modelCleanCyclic.transformer | |
}); |
This file contains 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
<?php | |
/** | |
* @Author: Django Wong | |
* @Date: 2017-05-03 13:00:26 | |
* @Last Modified by: django-wong | |
* @Last Modified time: 2017-07-06 17:01:40 | |
*/ | |
if(!function_exists('git_commit_hash')){ | |
/** |
This file contains 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
module.exports = [ | |
[ 'sterm.bluelogicteam.com', 8881 ], | |
[ /^(www\.)?bluelogicteam.com$/, 8882 ], | |
[ /^(www\.)?toggleswitch.tv$/, 8883 ] | |
]; |
This file contains 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 Mixer = function(){ | |
"use strict"; | |
//Audio buffer | |
this.buffer = {}; | |
//source delay | |
this.delay = []; | |
//when the play will start. | |
this.when = []; | |
//where the playback will start. |
This file contains 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 MD5 = function(data) { | |
// convert number to (unsigned) 32 bit hex, zero filled string | |
function to_zerofilled_hex(n) { | |
var t1 = (n >>> 0).toString(16); | |
return "00000000".substr(0, 8 - t1.length) + t1; | |
} | |
// convert array of chars to array of bytes | |
function chars_to_bytes(ac) { |
This file contains 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
/** | |
* Common websocket connecter, only compliant with rapAthorus | |
* #events | |
* online | |
* offline | |
* onmessage | |
* connect_failed | |
* get_token_failed | |
* other custom events... |
This file contains 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 $1 |grep -v "grep" |wc -l | |
$1 = 进程名 |