Skip to content

Instantly share code, notes, and snippets.

@fge
fge / Test.java
Created December 16, 2011 18:12
Example code
package net.sf.jpam;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.io.Reader;
import java.nio.ByteBuffer;
@fge
fge / RepeatJoin.java
Created December 27, 2011 23:15
Repeat() and Join()
package org.parboiled.examples.css;
import org.parboiled.BaseParser;
import org.parboiled.Rule;
import org.parboiled.annotations.BuildParseTree;
import java.util.ArrayList;
import java.util.List;
@BuildParseTree
@fge
fge / gist:3231325
Created August 1, 2012 22:37
draftv4 candidate, unfit for release
Internet Engineering Task Force K. Zyp, Ed.
Internet-Draft SitePen (USA)
Intended status: Informational G. Court
Expires: February 3, 2013 August 2, 2012
A JSON Media Type for Describing the Structure and Meaning of JSON
@fge
fge / json-schema-core.txt
Created September 11, 2012 19:46
Proposal: JSON Schema core specification
Internet Engineering Task Force fge. Galiegue, Ed.
Internet-Draft September 11, 2012
Intended status: Informational
Expires: March 15, 2013
JSON Schema: core definitions and purposes
@fge
fge / AsargentoTestCase.java
Created December 27, 2012 23:29
Declaring "indexed"
package org.eel.kitchen.jsonschema;
import com.fasterxml.jackson.databind.JsonNode;
import org.eel.kitchen.jsonschema.main.JsonSchema;
import org.eel.kitchen.jsonschema.main.JsonSchemaFactory;
import org.eel.kitchen.jsonschema.main.Keyword;
import org.eel.kitchen.jsonschema.metaschema.KeywordRegistries;
import org.eel.kitchen.jsonschema.metaschema.KeywordRegistry;
import org.eel.kitchen.jsonschema.metaschema.SchemaURIs;
import org.eel.kitchen.jsonschema.ref.JsonRef;
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object"
}
@fge
fge / gist:4461657
Last active December 10, 2015 16:28
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
}
@fge
fge / gist:4461659
Last active December 10, 2015 16:28
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
},
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
},
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
},