Skip to content

Instantly share code, notes, and snippets.

View aya-eiya's full-sized avatar

ayabe hidetoshi aya-eiya

View GitHub Profile
@aya-eiya
aya-eiya / YahooToeicTestSummarize.user.js
Created January 24, 2012 03:52
YahooのTOEICデイリーミニテスト(リーディング)から20問のランダム出題でテスト用紙を作成します。
// ==UserScript==
// @name YahooToeicTestSummarize
// @namespace jp.aya.eiya
// @description YahooのTOEICデイリーミニテスト(リーディング)から20問のランダム出題でテスト用紙を作成します。最初の問題を表示したときに、Summarizeするか聞かれます。OKすると、問題用紙を作成します。
// @include http://stepup.yahoo.co.jp/english/toeictest/question.html?c=5&c1=1
// ==/UserScript==
(function (){
Array.prototype.shuffle = function(){
var l = this.length;
var tmp = this.concat();
@aya-eiya
aya-eiya / maze.hs
Created November 21, 2011 15:19
4doors Cells Maze Generator
import Data.List
import System.Random
randomInitNo :: Int
randomInitNo = 1
data Cell = Cell {
position::(Int,Int),
east,west,south,north::Bool
} deriving Eq
instance Show (Cell) where
@aya-eiya
aya-eiya / gist:1084542
Created July 15, 2011 11:46
GPARS Practice
/***************************
* GPARS Practice @aya_eiya *
****************************/
import static groovyx.gpars.actor.Actors.actor
def d1 = new Date()
def decryptor = actor {
loop {
react { message->
@aya-eiya
aya-eiya / LabyrinthMaker.scala
Created March 29, 2011 16:52
LabyrinthMaker
package personal.ayaeiya.minos
import scala.util.Random
import scala.xml._
import scala.collection.mutable.ListMap
/*****************
* Setting Object *
******************/
object Setting{
@aya-eiya
aya-eiya / KeyValue.html
Created March 21, 2011 12:19
JavaScript版KeyValueのアレ
<html>
<head>
<script>
WithAttributre = true;
//==================================
// Here is for non attributes xml =
//==================================
show = function (v){alert(v);return v;}
@aya-eiya
aya-eiya / ListingMap2xml.scala
Created March 19, 2011 16:56
Converting Map objects in List to XML
package personal.ayaeiya.scala.sample
import scala.xml._
case class ListEndDummy{}
case class MapEndDummy{}
object Main{
def main(args:Array[String]) = {
def toXml(list:List[Any]):Elem = {