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
#if PRODUCTION | |
let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-pro", ofType: "plist") | |
#elseif STAGING | |
let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-stg", ofType: "plist") | |
#else | |
let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-dev", ofType: "plist") | |
#endif | |
let firebaseOption = FIROptions(contentsOfFile: filePath) | |
FIRApp.configureWithOptions(firebaseOption) |
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
gvm install go1.4 | |
gvm use go1.4 | |
gvm install go1.5 |
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
mysql> desc shop; | |
+---------+--------------+------+-----+---------+-------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+---------+--------------+------+-----+---------+-------+ | |
| name | varchar(100) | NO | | NULL | | | |
| address | varchar(100) | NO | | NULL | | | |
| lnglat | geometry | NO | MUL | NULL | | | |
+---------+--------------+------+-----+---------+-------+ | |
3 rows in set (0.04 sec) |
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 scala.collection.mutable | |
/** | |
* Created by okayayohei on 2017/03/11. | |
*/ | |
object Main { | |
trait Fib { | |
def fib(n: Long): Long | |
} |
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
language: objective-c | |
sudo: true | |
cache: | |
directories: | |
- $HOME/Library/Caches/Homebrew | |
before_install: | |
- brew update | |
- brew tap caskroom/cask | |
- brew install caskroom/cask/android-sdk caskroom/cask/android-ndk | |
- export ANDROID_HOME=/usr/local/share/android-sdk |
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
Do While True | |
Dim excelApp : Set excelApp = CreateObject("Excel.Application") | |
' Excelを非表示にする | |
excelApp.Visible = False | |
Dim targetFile : targetFile = "[ファイル名]" | |
Dim targetMacro : targetMacro = "[マクロ名]" | |
' Excelファイルを開く | |
excelApp.Workbooks.Open targetFile | |
' マクロの実行 |
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/01_prepare_authorized_keys": | |
mode: "000777" | |
content: | | |
ARRAY=( | |
https://github.com/akehoyayoi.keys # アクセスできるようにしたいアカウントを列挙しておく | |
) | |
echo 'ssh-rsa 元々あったauthorized_keyを書いておく' > authorized_keys | |
for item in ${ARRAY[@]}; do |
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
$ npm install -g vue-cli | |
$ vue init OnsenUI/vue-cordova-webpack my-project | |
$ cd my-project | |
$ npm install | |
$ cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="1234567890" --variable APP_NAME="your_app_name" | |
$ cordova platform add ios | |
$ cordova platform add android | |
$ npm run build | |
$ cordova prepare |
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
{ | |
"network-config": { | |
"org1": { | |
"name": "peerOrg1", | |
"mspid": "Org1MSP", | |
"peer1": { | |
"requests": "grpc://127.0.0.1:7051", | |
"events": "grpc://127.0.0.1:7053", | |
"server-hostname": "peer0.org1.example.com", | |
"tls_cacerts": "<fabric-samples-PATH>/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" |
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
class TreeControl[T] { | |
// これらのIFを使いたい | |
dataNodes: T[]; | |
def getLevel(node: T): Int = {} | |
} | |
class NestedTreeControl[T] extends TreeControl[T] {} | |
class FlatTreeControl[T] extends TreeControl[T] {} | |
trait TreeControlEnhancer[T] { |