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
<meta charset="utf-8"> | |
<title>keydownのテスト</title> | |
<p id="label"></p> | |
<script> | |
document.onkeydown = function(e) { | |
var elem = document.getElementById("label"); | |
if(elem.innerHTML == "") { | |
elem.innerHTML = "aaa"; | |
} else { | |
elem.innerHTML = ""; |
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
def combination[T](set: Set[T], size: Int): Set[Set[T]] = { | |
def solve[T](list: List[T], size: Int): Set[Set[T]] = { | |
if(list.size < size) { | |
Set.empty[Set[T]] | |
} else { | |
if(size == 1) { | |
list.map(item => Set(item)).toSet | |
} else { | |
def loop(remain: List[T], set: Set[Set[T]] = Set.empty[Set[T]]): Set[Set[T]] = { | |
remain match { |
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
mogenerator --template-var arc=true -m XXX.xcdatamodeld -O ./TARGET_DIR/ --swift |
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
-- oauth2_token table query | |
CREATE TABLE OAUTH2_TOKEN | |
( | |
TOKEN_ID INTEGER NOT NULL, | |
USER_ID VARCHAR(255) NOT NULL, | |
TOKEN VARCHAR(255) NOT NULL, | |
CREATE_DATE TIMESTAMP NOT NULL, | |
EXPIRE_TIME TIMESTAMP NOT NULL, | |
SCOPE VARCHAR(255), |
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
# set in aipo-opensocial dir | |
# aipo is set in same dir | |
echo 'full build start!' | |
cd ../aipo | |
mvn clean | |
cd ../aipo-opensocial | |
mvn clean | |
mvn install | |
cd ../aipo | |
mvn install |