Skip to content

Instantly share code, notes, and snippets.

View cutmail's full-sized avatar
🏠
Working from home

Tatsuya Arai cutmail

🏠
Working from home
View GitHub Profile
@masuidrive
masuidrive / main.js
Last active May 5, 2023 17:54
Google SpreadsheetからBigQueryを呼び出すスクリプト
/**
* Google Spreadsheet向けBigQuery取り込みスクリプト
* http://toreta.blog.jp/archives/20649904.html
* License: MIT 2014- Toreta, Inc.
*
* runAllQueries() をトリガーで毎日実行してください
* Queries, Single row queries, Dataの三つのシートを作って下さい
* Queries, Single row queriesのシートには実行するクエリを書きます
* A列にクエリ名、B列にクエリです。
* conuntなどの集約関数で1行しか返らないクエリは「Single row queries」、それ以外は「Queries」に書いて下さい
@JakeWharton
JakeWharton / README.md
Last active April 17, 2023 14:07
A JUnit @rule which launches an activity when your test starts. Stop extending gross ActivityInstrumentationBarfCase2!
@nulltask
nulltask / api-server.md
Last active July 7, 2024 23:02
ネイティブアプリ向け API サーバを作った時の経験談
http://qiita.com/advent-calendar/2014/adobe/feed
http://qiita.com/advent-calendar/2014/agile_casual/feed
http://qiita.com/advent-calendar/2014/android/feed
http://qiita.com/advent-calendar/2014/angularjs/feed
http://qiita.com/advent-calendar/2014/ansible/feed
http://qiita.com/advent-calendar/2014/ar/feed
http://qiita.com/advent-calendar/2014/aspnet/feed
http://qiita.com/advent-calendar/2014/atom/feed
http://qiita.com/advent-calendar/2014/avx512/feed
http://qiita.com/advent-calendar/2014/aws/feed
@podlech
podlech / yosemite_ruby_libv8_therubyracer.sh
Last active November 1, 2016 11:02
OS X Yosemite ruby (1.9.3p484) libv8 (3.11.8.17) therubyracer (0.11.4)
brew install homebrew/dupes/apple-gcc42
rbenv install 1.9.3-p484
rbenv global 1.9.3-p484
git clone https://github.com/cowboyd/libv8.git
cd libv8
git checkout 3.11
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
bundle install
@hkurokawa
hkurokawa / postNewReviewsHipchat.sh
Last active March 10, 2016 06:54
Post Google Play App. Reviews to HipChat
verifyCmd() {
for cmd in ${@}; do
if [ -z "$(which $cmd)" ]; then
echo "$cmd not found in PATH: $PATH"
return 1
fi
done
}
: ${GOOGLE_BUCKET_ID?"Need to set GOOGLE_BUCKET_ID"}
@mbmc
mbmc / Application.java
Last active November 25, 2019 14:36
Delete Parse duplicated Installation object for Android app
// Android app
private void setupParse(Context context) {
Parse.initialize(this, <PARSE_APP_ID>, <PARSE_CLIENT_KEY>);
ParseInstallation.getCurrentInstallation().put("uniqueId", getWifiMacAddress(context));
ParseInstallation.getCurrentInstallation().saveInBackground();
}
private String getWifiMacAddress(Context context) {
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
if (wifiManager != null && wifiManager.getConnectionInfo() != null) {
var originalHref = document.querySelector(".articles-show-click").href;
if (originalHref != null) {
location.href = originalHref;
}
@7gano
7gano / info.plist
Last active May 12, 2016 03:53
UILaunchImageName 4画面対応版
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageName</key>
<string>Default</string>
<key>UILaunchImageMinimumOSVersion</key>
<string>7.0</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>