Skip to content

Instantly share code, notes, and snippets.

View shairontoledo's full-sized avatar
🕺

Shairon (hashcode) shairontoledo

🕺
  • Central Florida
View GitHub Profile
<repository>
<id>repository-netty.forge.cloudbees.com</id>
<url>http://repository-netty.forge.cloudbees.com/snapshot</url>
</repository>
...
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
diff --git a/src/main/java/org/jboss/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java b/src/main/java/org/jboss/netty/handler/codec/http/multipart/HttpPo
index 83887ab..1efbf94 100644
--- a/src/main/java/org/jboss/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java
+++ b/src/main/java/org/jboss/netty/handler/codec/http/multipart/HttpPostRequestDecoder.java
@@ -1187,7 +1187,7 @@ public class HttpPostRequestDecoder {
/**
* Clean all HttpDatas (on Disk) for the current request.
- */
+ */
$ ->
contacts = [
{ name: "Contact 1", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "family" }
{ name: "Contact 2", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "family" }
{ name: "Contact 3", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "friend" }
{ name: "Contact 4", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "colleague" }
{ name: "Contact 5", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "family" }
{ name: "Contact 6", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "colleague" }
{ name: "Contact 7", address: "1, a street, a town, a city, AB12 3CD", tel: "0123456789", email: "anemail@me.com", type: "friend" }
{ name: "Contact 8", address: "1, a street
@shairontoledo
shairontoledo / curl.sh
Created October 18, 2012 16:30
Scala/Play jerkson parse to model
curl -v -XPOST -H "Content-Type: text/json" http://localhost:9000/invoices -d '
{
"name": "hashcode",
"other": "here",
"person": {
"name": "maria"
},
"documents": [
{
"name": "foobar.pdf",
export SERVER=localhost
curl -XPUT --silent "http://$SERVER:9200/documents" -d '
{
"settings" : {
"index" : {
"analysis": {
"analyzer": {
"en": {
"tokenizer": "pattern",
"filter": [
export SERVER=localhost
curl -XPUT --silent "http://$SERVER:9200/documents" -d '
{
"settings" : {
"index" : {
"analysis": {
"analyzer": {
"default": {
"tokenizer": "pattern",
<document>
<class-name>document</class-name>
<content-type>text/plain</content-type>
<created-at>2011-06-24T19:25:30Z</created-at>
<download>http://localhost:3000/ze/api/documents/10550/download</download>
<favorite>false</favorite>
<highlighting> primitive settlements in far and hard to reach places &lt;em&gt;after&lt;/em&gt; its humble start some quilombos would develop</highlighting>
<id>10550</id>
<name>capoeira2.txt</name>
<original>http://localhost:3000/ze/api/documents/10550/original</original>
<fields>
<field name="id" type="string" indexed="true" stored="true"/>
<field name="storage_id" type="string" indexed="true" stored="true"/>
<field name="storage_path" type="string" indexed="true" stored="true"/>
<field name="object_type" type="string" indexed="true" stored="true"/>
<field name="object_id" type="string" indexed="true" stored="true"/>
<field name="related_id" type="string" indexed="true" stored="true"/>
<field name="related_type" type="string" indexed="true" stored="true"/>
The following characters are invalid in a path:
Char Hex Value
", 0022
<, 003C
>, 003E
|, 007C
, 0000
☺, 0001
☻, 0002
♥, 0003