Skip to content

Instantly share code, notes, and snippets.

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);
require( 'assert' );
require( 'request' );
var options = {
uri:'http://www.postbin.org/1knazzd'
, body:"\n"
, method: 'POST'
};
exports.testRequest = function(){
# ----------------------------------------------------------------------
# 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.
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 npm@1.1.65
3 info using node@v0.8.14
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
*
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"
@marr
marr / gist:7126290
Last active December 26, 2015 08:59
[% 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 %]
@marr
marr / .inputrc
Created November 14, 2013 23:12
Make up and down arrows search through history of partially typed commands
# 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
# 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);
"use strict";
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: {
src: ['public/js/**/*.js']
# 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;
};