コレクションのcollectメソッドについて考えてみる。
case class User(id: Int, name: String, isAdmin: Boolean)
val users: List[User] = List(| #!/bin/bash | |
| LANG=ja_JP.utf8 | |
| pid=$$ | |
| date=`date '+%Y-%m-%d-%H_%M'` | |
| outdir="." | |
| if [ $# -le 1 ]; then |
| # coding: utf-8 | |
| import oauth2 as oauth | |
| import json | |
| CONSUMER_KEY = "yT577ApRtZw51q4NPMPPOQ" | |
| CONSUMER_SECRET = "3neq3XqN5fO3obqwZoajavGFCUrC42ZfbrLXy5sCv8" | |
| ACCESS_KEY = "" | |
| ACCESS_SECRET = "" | |
| consumer = oauth.Consumer(key=CONSUMER_KEY, secret=CONSUMER_SECRET) |
| using UnityEngine; | |
| using System.Collections; | |
| // クラス名が被っているといけないので、namespaceで囲む | |
| namespace TAK_CameraController | |
| { | |
| // マウスのボタンをあらわす番号がわかりにくかったので名前を付けた | |
| enum MouseButtonDown | |
| { | |
| MBD_LEFT = 0, |
| :: | |
| :: WINDOWS SETTINGS | |
| :: | |
| :: キーボードの配列を英語配列にする | |
| %SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /v "LayerDriver JPN" /t REG_SZ /d kbd101.dll /f | |
| %SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /v "OverrideKeyboardIdentifier" /t REG_SZ /d PCAT_101KEY /f | |
| %SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /v "OverrideKeyboardSubtype" /t REG_DWORD /d 0 /f | |
| %SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters /v "OverrideKeyboardType" /t REG_DWORD /d 7 /f |
| #=============================================================================== | |
| # Filename: boost.sh | |
| # Author: Pete Goodliffe | |
| # Copyright: (c) Copyright 2009 Pete Goodliffe | |
| # Licence: Please feel free to use this, with attribution | |
| # Modified version | |
| #=============================================================================== | |
| # | |
| # Builds a Boost framework for iOS, iOS Simulator, and OSX. | |
| # Creates a set of universal libraries that can be used on an iOS and in the |
前提: インストール先をC:\SPTKとする。
SPTK-3.8.tar.gz)をダウンロード、任意の場所に展開し、ソースコードのフォルダを開く(例: C:\SPTK-3.8)。Makefile.makの1行目を編集し、C:\SPTK\bin を C:\SPTK 変更する(\binを削除する)。あるいは、任意のパスを指定すると、そのフォルダにインストールされる。x86 Native Tools コマンドプロンプト を管理者権限で起動し、C:\SPTK-3.8 に移動する。x64版ではコンパイルできなかった。unistd.h が無いため、どこかから拾ってきて C:\SPTK-3.8\include\unistd.h を作成する。例えば、Win7 64bit, MSVS2013なら このリンク先からコピペする のでもコンパイルできた。nmake /f Makefile.makOne of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
Help wanted! :-)
Xamarin.Android binds the Android Java API, which means that all Java language features need to be "bound" to corresponding C# language features. For many language constructs, this binding is simple, e.g. type names are (usually) unchanged and identical, while other language features are changed in subtle