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 example.jaxrs; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
@Path("/") | |
public class HelloResource { | |
@GET | |
public String index() { | |
return "Hello World"; |
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
#!/usr/bin/python3 | |
# -*- coding: utf8 -*- | |
import sys | |
from logging import getLogger, StreamHandler, DEBUG | |
handler = StreamHandler() | |
logger = getLogger(__name__) |
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
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var App = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
<label>value a</label> | |
<input type="radio" name="aradio" value="A" checked="checked" /> <br /> | |
<label>value b</label> |
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 example.xml; | |
import org.w3c.dom.Document; | |
import org.xml.sax.SAXException; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBElement; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Unmarshaller; | |
import javax.xml.bind.annotation.*; |
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 example.xml; | |
import org.w3c.dom.Document; | |
import org.xml.sax.SAXException; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBElement; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Unmarshaller; | |
import javax.xml.bind.annotation.XmlElement; |
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 example.xml; | |
import org.joox.Match; | |
import org.jsoup.Jsoup; | |
import org.w3c.dom.Document; | |
import org.w3c.dom.Element; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.xpath.XPath; |
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 org.example.javalabo; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonParser; | |
public class GsonJsonPP { | |
public static void main(String[] args) { | |
System.out.println(new GsonBuilder().setPrettyPrinting().create() | |
.toJson(new JsonParser() | |
.parse("{\"aaa\":0, \"bbb\": [\"ddd\", \"eee\"], \"fff\":{\"ggg\":\"hhh\"}}"))); |
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 org.media_as.takaki.jfshogiban.gui; | |
import javafx.application.Application; | |
import javafx.application.Platform; | |
import javafx.concurrent.Service; | |
import javafx.concurrent.Task; | |
import javafx.event.EventHandler; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.input.MouseEvent; |
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
\documentclass{jsarticle} | |
\usepackage{ifthen} | |
\pagestyle{empty} | |
\addtolength{\textwidth}{15mm} | |
\setlength{\oddsidemargin}{-15mm} | |
\setlength{\topmargin}{-30mm} | |
\addtolength{\textheight}{55mm} |