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
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
<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 <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
/** | |
* 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
// 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
<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"> |
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 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 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 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 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
<!doctype html /> | |
<html> | |
<head> | |
<title>1_howToPutCharToCanvas.html</title> | |
<style> | |
canvas#vwrMain{ | |
border:1px solid black; | |
} | |
div#main{ | |
margin:5px; |