Skip to content

Instantly share code, notes, and snippets.

View zorro2b's full-sized avatar

Andrew Zahra zorro2b

View GitHub Profile
@zorro2b
zorro2b / simpleui.fxml
Created May 21, 2017 02:37
BorderPane Layout
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="javafxapplication1.SimpleUIController">
<stylesheets>
<URL value="@/styles/demo.css" />
</stylesheets>
<top>
<MenuBar fx:id="menuBar" BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Preferences..." />
@zorro2b
zorro2b / ParseJson.java
Created May 31, 2013 00:48
Jackson 2.0 JSON Traversal Example
package parse;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;