Skip to content

Instantly share code, notes, and snippets.

@kinjouj
kinjouj / client.js
Last active October 26, 2016 12:04
let Liftoff = require("liftoff");
let { jsVariants } = require("interpret");
new Liftoff(
{
name: "echo",
configName: "echo.config",
extensions: jsVariants
}
).launch({}, (env) => {
package sample;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import com.annimon.stream.Collectors;
import com.annimon.stream.Optional;
import com.annimon.stream.Stream;
import com.annimon.stream.function.Consumer;
import com.annimon.stream.function.Predicate;
@kinjouj
kinjouj / CompositeSubscriptionTest.java
Created July 14, 2015 11:45
CompositeSubscription test
import rx.subscriptions.BooleanSubscription;
import rx.subscriptions.CompositeSubscription;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.*;
public class CompositeSubscriptionTest {
@kinjouj
kinjouj / bar.svg
Created January 15, 2014 08:52
SVG Bar and Line Chart
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kinjouj
kinjouj / index.html
Created October 9, 2013 11:28
HTML5 <canvas> javascript rendering bar and line and point chart
<html>
<head>
<script type="text/javascript" src="underscore.js"></script>
</head>
<body>
<canvas id="canvas" width="700" height="600"></canvas>
<script type="text/javascript">
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
@kinjouj
kinjouj / AndroidManifest.xml
Last active May 22, 2021 20:01
android.service.dreams.DreamService(DayDream) Example 2013/02/27 update settingsActivity
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="sample.test"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" />
<application
android:icon="@drawable/ic_launcher"
@kinjouj
kinjouj / test.js
Created June 1, 2012 11:56
JavaScript typed array study demo1
(function() {
"use strict";
var text = 'abcdef';
var text_len = text.length;
var ar = new Array(text_len);
for (var i = 0;i < text_len;i++) {
ar[i] = text.charCodeAt(i);
@kinjouj
kinjouj / app.js
Created May 1, 2012 06:39
node.js+express+tes-tcp+QUnit
var express = require("express");
var app = express.createServer(express.logger());
app.get("/", function(req, res) {
res.send("hoge");
});
module.exports = app;
@kinjouj
kinjouj / Sample.java
Created April 27, 2012 09:16
PDF Extract Text Using Apache Tika
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.tika.exception.TikaException;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.parser.AutoDetectParser;
import org.apache.tika.parser.ParseContext;