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 express = require( 'express' ); | |
var server = express.createServer( | |
express.bodyParser(), | |
express.logger() | |
); | |
server.get( '/post-logger', function( request, response ) { | |
response.send( request ); | |
}); | |
server.listen(3001); |
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
require( 'assert' ); | |
require( 'request' ); | |
var options = { | |
uri:'http://www.postbin.org/1knazzd' | |
, body:"\n" | |
, method: 'POST' | |
}; | |
exports.testRequest = function(){ |
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
# ---------------------------------------------------------------------- | |
# LS AND DIRCOLORS | |
# ---------------------------------------------------------------------- | |
# we always pass these to ls(1) | |
LS_COMMON="-hBG" | |
# if the dircolors utility is available, set that up to | |
dircolors="$(type -P gdircolors dircolors | head -1)" | |
test -n "$dircolors" && { |
This file has been truncated, but you can view the full file.
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/Cellar/node/0.8.14/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'q' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose read json /Users/dmarr/Documents/Minion/package.json | |
5 verbose read json /Users/dmarr/Documents/Minion/node_modules/grunt/package.json | |
6 verbose read json /Users/dmarr/Documents/Minion/node_modules/grunt-jasmine-runner/package.json |
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
* | |
params - path to the directory where mod_python | |
should look for python metric modules | |
the "pyconf" files in the include directory below | |
will be scanned for configurations for those modules | |
*/ | |
modules { | |
module { | |
name = "python_module" |
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
[% MACRO outer BLOCK %] | |
<div class="outer"> | |
[% WRAPPER inner outerPrefix='0' %]a[% END %] | |
[% WRAPPER inner %]b[% END %] | |
</div> | |
[% END %] | |
[% BLOCK inner %] | |
<span>[% IF outerPrefix %][% outerPrefix %]:[% END %][% content %]</span> | |
[% END %] |
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
# Bind the up arrow to history search, instead of history step | |
"\e[A": history-search-backward | |
# And the reverse (down) | |
"\e[B": history-search-forward |
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
# two options: | |
# 1) put it into Ubic::Service::Starman::WithFileChangeDetection, and reuse it in multiple ubicservice configs; | |
# in this case, you'll have to add [package ...] line here | |
# 2) put it directly into service config; in this case, you don't need package line | |
use strict; | |
use warnings; | |
use parent qw(Ubic::Service::Starman); # or whatever you use | |
use Ubic::Result qw(result); |
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
"use strict"; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jshint: { | |
options: { | |
jshintrc: '.jshintrc' | |
}, | |
all: { | |
src: ['public/js/**/*.js'] |
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
# from https://metacpan.org/pod/release/XSAWYERX/Dancer2-0.11/lib/Dancer2/Cookbook.pod#Plack-middlewares | |
use Dancer2; | |
use MyWebApp; | |
use Plack::Builder; | |
builder { | |
enable 'Session', store => 'File'; | |
enable 'Debug', panels => [ qw<DBITrace Memory Timer Dancer::Version> ]; | |
dance; | |
}; |