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
pragma solidity ^0.4.18; | |
import "zeppelin-solidity/contracts/token/StandardToken.sol"; | |
contract KasajeiToken is StandardToken { | |
string public name = "KasajeiToken"; | |
string public symbol = "KSJT"; | |
uint public decimals = 18; | |
function KasajeiToken(uint initialSupply) public { | |
totalSupply = initialSupply; |
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
-- ノートブックの指定 | |
property nb : "日誌" | |
property _newNote : missing value | |
on alfred_script(q) | |
set _memo to q | |
-- Evernote | |
tell application "Evernote" | |
if not (exists of notebook nb) then |
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
for file in ckpt/*; do python evaluate.py --checkpoint $file --in-path img/ --out-path out/ --allow-different-dimensions; done |
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
aws iam update-server-certificate --server-certificate-name <server-certificate_name> --new-path /cloudfront/ |
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
# -*- coding: utf-8 -*- | |
# 数字 | |
num = 1 | |
print num | |
num = 1.12 | |
print num | |
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
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew install python --framework | |
brew install zmq | |
pip install pyzmq tornado jinja2 ipython |
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
# encoding:utf-8 | |
require "csv" | |
require "kconv" | |
# please set defaults language folder | |
localizedFolderName = "ja.lproj" | |
File::open(localizedFolderName + "/Localizable.strings") do |f| | |
CSV.open("localizable.csv","w") do |csv| | |
csv << ["key","ja","en","for system →",'=""""&$A1&""""&"="&""""&B1&""";"'] | |
keyAry = [] |
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
double photoSize = 640; | |
// フィルターの設定 | |
//// まずフィルターグループを作る。フィルターを一つにまとめることで、あとで画像をつくるときに全部のフィルターがかかった画像が得られる | |
self.filterGroup = [[GPUImageFilterGroup alloc] init]; | |
//// 最初のフィルター便宜的に | |
GPUImageFilter *firstFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0, 0.125f, 1.0f, 0.75f)]; | |
[self.filterGroup addFilter:firstFilter]; | |
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
CCDictionary *dictionary = CCDictionary::create(); | |
dictionary->setObject(CCString::create("testObject1"),"testKey1"); | |
dictionary->setObject(CCString::create("testObject2"),"testKey2"); | |
CCArray *keys = dictionary->allKeys(); | |
CCObject *key; | |
CCARRAY_FOREACH(keys, key){ | |
CCString *keyString = (CCString *)key; | |
CCLOG("key -> %s" , keyString -> getCString() ); | |
CCString *objectString = (CCString *)dictionary -> objectForKey(keyString->getCString()); |
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
{"alert":"test","badge":"21","sound":"","action":"1"} |
NewerOlder