This file contains hidden or 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
| // MD5cmd.js | |
| // (C) aya_eiya 2012 | |
| (function (){ | |
| function readBinaryFile(FileName){ | |
| var streamObj = new ActiveXObject("ADODB.Stream"); | |
| var resultObj = null; | |
| streamObj.Type = 1; | |
| streamObj.Open(); | |
| streamObj.LoadFromFile(FileName); |
This file contains hidden or 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 dependencies. | |
| */ | |
| var express = require('express') // express の機能を使う | |
| , routes = require('./routes'); // ルーティングのあとの処理 | |
| // express.createServer()で作成したオブジェクトをエクスポートする | |
| // エクスポートされたオブジェクトのメンバは、このファイルがrequireで | |
| // 参照を受けた際に公開される。 |
This file contains hidden or 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 <stdio.h> | |
| #import <objc/object.h> | |
| @interface Hello : Object | |
| -(void)sayHello; | |
| @end | |
| @implementation Hello | |
| -(id) init { | |
| self=[super init]; |
This file contains hidden or 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> | |
| <script> | |
| (function(glb,loc){ | |
| loc.onLoad = function(){ | |
| var cnv = loc.myCanvas = glb.document.getElementById('myCanvas'); | |
| var context = cnv.getContext("2d"); | |
| context.fillStyle = "#3411FF"; | |
| context.strokeStyle = "red"; | |
| context.moveTo(230.0,130.0);context.lineTo(230.0,130.0);context.lineTo(180.0,216.60254037844385);context.lineTo(80.00000000000003,216.60254037844388);context.lineTo(30.0,130.0);context.lineTo(79.99999999999996,43.39745962155615);context.lineTo(179.99999999999994,43.397459621556095);context.lineTo(230.0,129.99999999999997); | |
| context.stroke(); |
This file contains hidden or 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 java.util.concurrent.ExecutorService | |
| import java.util.concurrent.BlockingQueue | |
| import java.util.concurrent.LinkedBlockingQueue | |
| import java.util.concurrent.Executors | |
| import java.util.concurrent.Callable | |
| ExecutorService.metaClass.define { | |
| alter = { | |
| this.submit = {Closure closure -> | |
| return delegate.submit (new Callable(){ |
This file contains hidden or 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
| interface キャラ { | |
| public void 死ぬ() | |
| } | |
| abstract class Abs敵キャラ implements キャラ{ | |
| String _name = "名無しさん" | |
| public void 死ぬ(){ | |
| println "${_name}死亡" | |
| } | |
| } |
This file contains hidden or 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
| abstract class Abs敵キャラ{ | |
| String _name = "名無しさん" | |
| @Override | |
| public String toString(){ | |
| return _name | |
| } | |
| } | |
| interface Iマリオ行動 { | |
| public Iマリオ行動 アイテムとる(Eアイテム アイテム) |
This file contains hidden or 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
| class 俺のクラス{ | |
| public 俺のクラス(){ | |
| } | |
| public boolean 俺のメソッド(俺のクラス 俺の引数){ | |
| return false | |
| } | |
| } | |
| 俺のクラス 俺のインスタンス = new 俺のクラス() |
This file contains hidden or 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 jp.eiya.aya.gson | |
| public abstract class MyClass{ | |
| private String id=null | |
| private int value=0 | |
| public MyClass(String i,int v){ | |
| id=i | |
| value=v | |
| } | |
| public String getID(){return id} |
This file contains hidden or 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 java.io.OutputStream; | |
| import java.net.InetSocketAddress; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import static org.junit.Assert.*; | |
| import org.junit.Test; | |
| import com.sun.net.httpserver.*; |