Skip to content

Instantly share code, notes, and snippets.

@plonk
plonk / 2015-07-19-a.js
Last active August 29, 2015 14:25
便利に使えそうなイコール関数
function generic_equal(a, b) {
// 同じ own プロパティの集合を持っている
function object_equal(a, b) {
if (typeof(a) != 'object' || typeof(b) != 'object')
throw new Error('object');
var aKeys = Object.keys(a);
var bKeys = Object.keys(b);
if (aKeys.length != bKeys.length)
@Restar9
Restar9 / agh2.js
Last active June 21, 2017 04:19
天鳳牌譜解析用コード
///////////////////////////////////////////////////////////////////
// TENHOU.NET (C)C-EGG http://tenhou.net/
//-----------------------------------------------------------------
////////////////////////////////////////////////////
//ノー和了ノー放銃の順位分布を求める//
///////////////////////////////////////////////
var we=window.external;
///////////////////////////////////////////////////////////////////
@daveray
daveray / seesaw-repl-tutorial.clj
Created December 7, 2011 04:55
Seesaw REPL Tutorial
; A REPL-based, annotated Seesaw tutorial
; Please visit https://github.com/daveray/seesaw for more info
;
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
;
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.