$ cd ~/project/oke-ya
$ cocos new -l cpp -p witch.oke-ya.com witch
$ cd witch
$ git init
$ curl -O https://gist.githubusercontent.com/yalab/c7f9e5158ef49e260fb9/raw/82126b290f15529cfdc9fecec1d9a500fddfa77e/.gitignore
$ rm -rf cocos2d
$ rm Resources/fonts/*
This file contains hidden or 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
| # config/initializers/puma_worker_killer.rb | |
| module QuietPumaWorkerKillerLog | |
| def log(str) | |
| if !ENV["ENABLE_PUMA_WORKER_KILLER_LOG"] && str.split(/\s/)[0] == "PumaWorkerKiller:" | |
| # Nothing to do | |
| else | |
| super | |
| end | |
| end | |
| end |
This file contains hidden or 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
| *.udf | |
| *.apk | |
| *.o | |
| *.a | |
| *.xcodeproj/* | |
| !*.xcodeproj/project.pbxproj | |
| !*.xcworkspace/contents.xcworkspacedata | |
| **/*.xcodeproj/* | |
| !**/*.xcodeproj/project.pbxproj | |
| .DS_Store |
This file contains hidden or 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
| #!/bin/bash | |
| COUNT="3" | |
| HOST="google.com" | |
| PING="/sbin/ping" | |
| while true ;do | |
| $PING -c $COUNT $HOST > /dev/null | |
| if [ "$?" = "68" ];then | |
| networksetup -setairportpower en0 on |
This file contains hidden or 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
| test=> SELECT sid, lid, COUNT(id) FROM attend GROUP BY sid, lid HAVING COUNT(id) > 1; | |
| sid | lid | count | |
| -----+---------+------- | |
| 336 | ACB0030 | 2 | |
| 325 | ABF0030 | 2 | |
| (2 rows) | |
| test=> SELECT id FROM attend WHERE sid = 336 AND lid = 'ACB0030'; | |
| id | |
| ------- |
This file contains hidden or 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
| private void clearPurchases() { | |
| mHelper = new IabHelper(getContext(), "GOOGLE_TOKEN"); | |
| mHelper.enableDebugLogging(true); | |
| Log.v(TAG, "mHelper.startSetup"); | |
| mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { | |
| public void onIabSetupFinished(IabResult result) { | |
| if (!result.isSuccess()) { | |
| // 失敗した時の処理 | |
| } | |
| List additionalSkuList = new ArrayList(); |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.12.2' | |
| } | |
| } | |
| apply plugin: 'android' |
This file contains hidden or 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
| TARGET = serializer | |
| CXX = clang++ | |
| CC = clang | |
| LDLIB_DIR = -I../../../zeron/cocos2d/cocos \ | |
| -I../../../zeron/cocos2d/cocos/2d \ | |
| -I../../../zeron/cocos2d/cocos/editor-support \ | |
| -I../../../zeron/cocos2d/external/glfw3/include/mac \ | |
| -I../../../zeron/cocos2d/extensions \ | |
| -I../../../zeron/cocos2d/external \ |
This file contains hidden or 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 QuestsCleanupJob < ActiveJob::Base | |
| queue_as :default | |
| def perform(*args) | |
| # Do something later | |
| end | |
| end |
This file contains hidden or 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
| jQuery ($) -> | |
| new Vue( | |
| el: '#app', | |
| data: | |
| msg: 'Hello Vue.js!' | |
| ) |