Skip to content

Instantly share code, notes, and snippets.

@termat
termat / hatena_treemap.html
Created January 12, 2015 16:44
はてなブックマークのホットエントリをTreeMapで表示する。
<html lang="jp" class="ui-mobile landscape">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<base href=".">
<title>Hatemap</title>
<style type="text/css">
#toptitle{
width:600px;
@termat
termat / Shape2GeoJSON.java
Last active November 8, 2015 09:15
ShapeファイルをGeoJSONに変換する。 ref: http://qiita.com/t-mat/items/562d71e62102cc906152
package modules;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.charset.Charset;
@termat
termat / termat.delaunay.0.1.js
Last active November 8, 2015 18:16
JavaScriptでDelaunay三角形分割クラスを実装する。 ref: http://qiita.com/t-mat/items/1c571926ccaa7ef1577b
/* JavaScript Delaunay triangulation Class , version 0.1
*
* Copyright (c) 2015 t.matsuoka
* Released under the MIT license
* https://github.com/YukinobuKurata/YouTubeMagicBuyButton/blob/master/MIT-LICENSE.txt
*
* web site: http://termat.hatenablog.com/
*
/*--------------------------------------------------------------------------*/
var termat=termat||{};
@termat
termat / index.html
Created February 28, 2019 13:10
Voronoi
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<title>Voronoi.js</title>
</head>
<body>
<table border="1"><tr><td>
<canvas id="canvas" width="480" height="480"></canvas>
</td></tr></table>
</body>
</html>
@termat
termat / index.html
Created February 28, 2019 13:13
Missile Commander Modoki
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Missile Commander Modoki</title>
</head>
<body>
<meta name="viewport" content="width=480, user-scalable=no, maximum-scale=1.0">
<table border="0" width="200"><tr>
<td id="score">score=0</td>
@termat
termat / index.html
Created February 28, 2019 13:13
Inverse Kinematics Fiber
<html>
<head>
<meta charset="UTF-8" />
<title>Inverse Kinematics Fiber</title>
</head>
<body>
<meta name="viewport" content="width=460, user-scalable=no, maximum-scale=1.0">
<script id="processing-code" type="application/processing">
Tail tail;
@termat
termat / colorcanvas.markdown
Created February 28, 2019 13:13
ColorCanvas
@termat
termat / delaunay-diagram.markdown
Created February 28, 2019 13:14
Delaunay diagram
@termat
termat / index.html
Created February 28, 2019 13:14
liquid water
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<title>liquid water</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<script data-processing-target="app" type="application/processing">
int width=465;
float GRAVITY=0.025;
float RANGE=10.0;