See the section in each example labelled as MAGIC for how to get the route pattern which matched the url path for each router.
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
### | |
This is chopped down from a multi-kloc app, which explains why Connect is involved | |
and why I would even care to do a riak.get and ignore its result. The issue here is | |
that if RUN_TEST is 1, doing the riak.get frequently causes the file upload to stall, | |
while when RUN_TEST is 0 and riak.get is skipped, the file upload works reliably. | |
### | |
connect = require 'connect' | |
fs = require 'fs' | |
riak = require('riak-js').getClient() |
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
package ch.prodema.misc | |
class PhpSerializedParser { | |
private enum ObjectType { | |
ARRAY('a'), STRING('s'), INTEGER('i') | |
ObjectType(String typeChar) { this.typeChar = typeChar } | |
private final String typeChar | |
private static final Map<String,ObjectType> lookup | |
static { |
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
package main | |
import ( | |
"log" | |
"os" | |
"fmt" | |
"bufio" | |
"flag" |
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 alpine:3.3 | |
RUN apk update && apk upgrade && apk add bash iptables inotify-tools | |
ADD /start.sh / | |
CMD ["/start.sh"] |
I hereby claim:
- I am jharlap on github.
- I am jharlap (https://keybase.io/jharlap) on keybase.
- I have a public key ASBAYti-CKqmj4mWc4ZiNhgUSzCv54FX6301Wj_7rC5n3wo
To claim this, I am signing this object: