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 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 = { |
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
<html> | |
<head> | |
<script> | |
WithAttributre = true; | |
//================================== | |
// Here is for non attributes xml = | |
//================================== | |
show = function (v){alert(v);return v;} |
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 personal.ayaeiya.minos | |
import scala.util.Random | |
import scala.xml._ | |
import scala.collection.mutable.ListMap | |
/***************** | |
* Setting Object * | |
******************/ | |
object Setting{ |
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
/*************************** | |
* GPARS Practice @aya_eiya * | |
****************************/ | |
import static groovyx.gpars.actor.Actors.actor | |
def d1 = new Date() | |
def decryptor = actor { | |
loop { | |
react { message-> |
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
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 |
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
// ==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(); |
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
<!doctype html /> | |
<html> | |
<head> | |
<title>1_howToPutCharToCanvas.html</title> | |
<style> | |
canvas#vwrMain{ | |
border:1px solid black; | |
} | |
div#main{ | |
margin:5px; |
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
module Main where | |
import Directory | |
import Data.List | |
import System | |
main = do [ root ] <- getArgs | |
cnt <- getTerminals [] root | |
getTerminals root path | |
= do b <- doesDirectoryExist pth |
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
module Main where | |
import Data.List | |
import Data.Char | |
main | |
= print "ABCD" | |
getAllUpperLowerPattern str = f3 | |
where | |
f1 = sequence $ replicate (length str) "01" | |
f2 = map (\(fs,str)->zip fs str) $ zip f1 (replicate (length f1) str) |
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
<scriptlet> | |
<!-- Diff Class files with jad plugin for WinMerge . (C) aya_eiya 2012 --> | |
<implements type="Automation" id="dispatcher"> | |
<property name="PluginEvent"> | |
<get/> | |
</property> | |
<property name="PluginDescription"> | |
<get/> | |
</property> | |
<property name="PluginFileFilters"> |
OlderNewer