Windows上で快適な開発環境をセットアップするためのメモです。
| 更新日 | 更新内容 |
|---|---|
| 2014-02-23 | Sleipnir4の部分を修正 |
| <?php | |
| /** | |
| * Created by IntelliJ IDEA. | |
| * User: okabayashi | |
| * Date: 13/07/09 | |
| * Time: 10:47 | |
| */ | |
| class APIRequestProxy | |
| { |
| use scripting additions | |
| set AppleScript's text item delimiters to {", "} | |
| -- | |
| -- バイナリサーチ | |
| -- | |
| on binarySearch:aValue withValues:values | |
| set res to false |
| (* | |
| AppleScriptでJavaのアノテーションのようなことをやるスクリプト。 | |
| # 使い方 | |
| コピペして~/Library/Script Libraries/以下にAnnotationContainer.scptとして保存(保存時にコンパイルしておくこと) | |
| 後は使いたい場所で | |
| use AnnotationContainer : script "AnnotationContainer" | |
| すれば使えます。 | |
| AnnotationContainerのメソッド |
| /****************************************************************************** | |
| Usage : comma [+<n>h][-4] <f1> <f2> ... <file> | |
| : comma -d[4] <string> | |
| Version : Thu Dec 15 13:46:38 JST 2011 | |
| ******************************************************************************/ | |
| #include <unistd.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> |
| import Debug (log) | |
| import Keyboard | |
| import Array | |
| import Maybe | |
| import Window | |
| {-- | |
| rader game | |
| WORK IN PROGRESS | |
| --} |
| import Http (..) | |
| import Graphics.Input (Input, input, button) | |
| import Graphics.Input.Field (Content, noContent, field, defaultStyle) | |
| import Json | |
| import Dict | |
| import Text (centered, toText) | |
| {-- | |
| ElmでのHttpリクエスト(Jsonを投げる)の例 |
| import List (..) | |
| import Graphics.Collage (..) | |
| import Window | |
| import Random | |
| import Debug (log) | |
| import Array | |
| {- | |
| N-Queenっぽいの | |
| なんちゃってバックトラック法でとく |
| {-- | |
| グリッドを描く例 | |
| --} | |
| import List (..) | |
| data Cell a = Blank a | Filled a | Outlined a | Other a | Nothing | |
| type CellInfo = { width : Float | |
| , height : Float |