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
error: Error: spawn ENOMEM | |
error: at errnoException (child_process.js:855:11) | |
error: at ChildProcess.spawn (child_process.js:802:11) | |
error: at exports.spawn (child_process.js:626:9) | |
error: at tailLog (/opt/local/lib/node_modules/solenoid/lib/solenoid.js:473:18) | |
error: at /opt/local/lib/node_modules/solenoid/lib/solenoid.js:468:15 | |
error: at delay (/opt/local/lib/node_modules/solenoid/node_modules/back/index.js:39:5) | |
error: at Timer.list.ontimeout (timers.js:101:19) |
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
setTimeout(function () { | |
// do something. | |
}, 1000) |
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
root 22872 0.0 0.0 140208 568 ? S Apr14 0:00 CROND | |
root 22876 0.0 0.0 106056 516 ? Ss Apr14 0:00 /bin/bash -c /usr/bin/php -q /etc/zpanel/panel/bin/daemon.php >> /dev/null 2>&1 | |
root 22880 0.0 0.1 342820 2748 ? S Apr14 0:00 /usr/bin/php -q /etc/zpanel/panel/bin/daemon.php |
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
apply plugin: 'groovy' | |
apply plugin: 'maven' | |
group = 'com.gimmie' | |
version = '1.0' | |
repositories { | |
mavenCentral() | |
} |
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
wget -q https://ftp-master.debian.org/keys/archive-key-7.0.asc -O- | sudo apt-key add - |
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
docker_get_name_from_image() { | |
echo $@ | sed "s/\//./" | |
} | |
docker_remove_exists_name() { | |
local name=`docker_get_name_from_image $2` | |
local exists=`sudo docker ps -a | grep $name | awk '{ print $1 }'` | |
if [ -n "$exists" ]; then | |
sudo docker rm $name > /dev/null 2>&1 | |
fi |
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 toc = ''; | |
for (var i = 0; i < contents.length; i++) { var link = contents[i].querySelector('a').getAttribute('href'); var text = contents[i].textContent.replace(/^\s+|\s+$/,''); toc += '- [' + text + '](' + link + ')\n' } | |
console.log (toc); |
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
let obj = [1, 2, 3] | |
for (let val of obj) { | |
console.log (val) | |
} |
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
Ember.Handlebars.registerHelper('helperName', function(param1, param2, options) { | |
return "HTML output for this helper" | |
}) |
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 gulp = require('gulp') | |
, jasmine = require('gulp-jasmine') | |
gulp.task('default', function() { | |
require('babel/register'); | |
return gulp.src('test.js').pipe(jasmine()) | |
}); |
OlderNewer