This file contains hidden or 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
import spark.*; | |
public class Issue107 { | |
public static void main(String[] args) { | |
Spark.before(new Filter("/issue") { | |
@Override | |
public void handle(Request request, Response response) { | |
System.out.println("Filter sees sees body: '" + request.body() + "'"); | |
} |
This file contains hidden or 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
diff --git a/Makefile b/Makefile | |
index e84074c..3cd0a7d 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -33,7 +33,7 @@ HELPPATCHES = json-help.pd urlparams-help.pd rest-help.pd | |
# | |
#------------------------------------------------------------------------------# | |
-ALL_CFLAGS = -I"$(PD_INCLUDE)" -std=c99 | |
+ALL_CFLAGS = -I"/usr/include" -I"$(PD_INCLUDE)" -std=c99 |
This file contains hidden or 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
diff --git a/src/json-encode.c b/src/json-encode.c | |
index 9eff646..d166a1c 100644 | |
--- a/src/json-encode.c | |
+++ b/src/json-encode.c | |
@@ -33,7 +33,7 @@ THE SOFTWARE. | |
#include <stdio.h> | |
#include <math.h> | |
-#include "uthash/src/uthash.h" | |
+#include <uthash.h> |
This file contains hidden or 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 winston = require('winston'); | |
setInterval(function () { | |
console.log("Making new logger and writing 1 line"); | |
var logger = configure('FHTEST'); | |
logger.info("Any ordinary log message will do"); | |
logger.remove(winston.transports.DailyRotateFile); | |
logger.close(); | |
}, 2000); |
This file contains hidden or 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
# Source http://stackoverflow.com/a/15741856/1301753 | |
# Source https://gist.github.com/breedx2/60409d2179508dba28c4159b81f26fc2 | |
import copy | |
import sys | |
import math | |
import pypdf | |
def split_pages(src, dst): | |
src_f = open(src, 'r+b') |