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
| // スコアの送信 | |
| void PostRanking (int score) | |
| { | |
| #if UNITY_ANDROID | |
| AndroidJavaClass plugin = new AndroidJavaClass ("jp.basicinc.gamefeat.ranking.android.sdk.controller.GFRankingController"); | |
| AndroidJavaClass unityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"); | |
| AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject> ("currentActivity"); | |
| AndroidJavaObject ranking = plugin.CallStatic<AndroidJavaObject> ("getIncetance", activity); | |
| ranking.Call ("sendScore", new string[] {"[ゲームモードID]"}, new string[] { score.ToString()}); | |
| #endif |
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
| keyword = '乾杯' | |
| musician = '長渕剛' | |
| "作詞:#{musician} | |
| 作曲:#{musician}" | |
| "かたい絆に 思いをよせて | |
| 語り尽くせぬ 青春の日々 | |
| #{['傷つき', '喜び'].map{|w| anytime(w)}} | |
| 肩をたたきあった あの日" |
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
| keyword = "乾杯" | |
| musician = "長渕剛" | |
| big = "大きな" | |
| your = "君" | |
| now = "今" | |
| day = "日" | |
| hope = "たい" | |
| row = "ろう" | |
| ['作詞:', '作曲:'].map{|w| w + musician} |
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
| function myFunction() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var calendar = CalendarApp.getDefaultCalendar(); | |
| var from = new Date(); | |
| // 今から60分後にかぶる予定をさがす | |
| var to = new Date(from.getTime() + (1000 * 60 * 60)); | |
| // このURLを自分のものに直してね | |
| var link = "https://www.remotty.net/rooms/1/bot/message.json?(twitter用の奴と同じクエリ)"; | |
| var events = calendar.getEvents( from , to ); | |
| if (events.length > 0){ |
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
| $ -> | |
| TalkTree.setupComponents = -> | |
| Vue.component('article-row', {props: ['article', 'selected_article_id', 'joined'], template: '#article_row'}) | |
| if $('.js-component-group').length == 0 | |
| return | |
| if ('.js-component-group').length > 0 | |
| TalkTree.componentGroup = new Vue( | |
| el: '.js-component-group' | |
| data: |
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
| Enumerating objects: 16, done. | |
| Counting objects: 100% (16/16), done. | |
| Delta compression using up to 10 threads | |
| Compressing objects: 100% (12/12), done. | |
| Writing objects: 100% (13/13), 1.30 KiB | 1.30 MiB/s, done. | |
| Total 13 (delta 8), reused 0 (delta 0), pack-reused 0 | |
| remote: Compressing source files... done. | |
| remote: Building source: | |
| remote: | |
| remote: -----> Building on the Heroku-20 stack |
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
| #!/usr/bin/env bash | |
| # script/setup_project | |
| # | |
| # rails new 後に実行するプロジェクト初期セットアップスクリプト。 | |
| # 使い方: bash script/setup_project | |
| # | |
| # 前提: | |
| # - rails new が完了していること | |
| # - リファレンスプロジェクト(vote 等)が ghq 管理下にあること | |
| # - ghq コマンドが使えること(なければ REFERENCE_PROJECT を直接指定) |
OlderNewer