Skip to content

Instantly share code, notes, and snippets.

View cohalz's full-sized avatar
🌴
On vacation

cohalz cohalz

🌴
On vacation
View GitHub Profile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "motemen/furoshiki2"
brew "awscli"
brew "docker"
brew "ghq"
brew "go"
brew "mas"
brew "node"
@cohalz
cohalz / my_month_ranking_with_avg.txt
Last active July 13, 2017 14:30
グルコスの今月の月間ランキングを確認するブックマークレット(平均スコア付き)
javascript:(function(){var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/player_data.php",false);xmlHttp.send(null);var player_data=JSON.parse(xmlHttp.responseText);var player_name=player_data.player_data.player_name;var index=0;var date=new Date();var now=date.getFullYear()+""+("0"+(date.getMonth()+1)).slice(-2);var flag=false;var firstScore=0;var myScore=0;while(!flag&&index<10){xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/monthly_ranking.php?id=0&page="+index,false);xmlHttp.send(null);if(xmlHttp.responseText[0]=='f'){alert(now.slice(0,4)+"%E5%B9%B4"+now.slice(4)+"%E6%9C%88%E3%81%AE%E6%9C%88%E9%96%93%E3%83%A9%E3%83%B3%E3%82%AD%E3%83%B3%E3%82%B0%E3%81%AF%E3%81%BE%E3%81%A0%E5%85%AC%E9%96%8B%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93")};var data=JSON.parse(xmlHttp.responseText);if(index==0){firstScore=data.rank[0].score;}for(var i=0;i<data.rank.length;i++){if(data.rank[i].player_name===player_name){myScore=data.rank[i].score;alert(pl
@cohalz
cohalz / my_month_ranking.txt
Last active May 1, 2017 16:10
グルコスの今月の月間ランキングを確認するブックマークレット(平均スコア付きは https://gist.github.com/cohalz/f234ac6dd44782c0b6b17cc4d93367fd の方をお使いください)
javascript:(function(){var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/player_data.php",false);xmlHttp.send(null);var player_data=JSON.parse(xmlHttp.responseText);var player_name=player_data.player_data.player_name;var index=0;var date=new Date();var now=date.getFullYear()+""+("0"+(date.getMonth()+1)).slice(-2);var flag=false;while(!flag&&index<10){xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/monthly_ranking.php?id=0&page="+index,false);xmlHttp.send(null);if(xmlHttp.responseText[0]=='f'){alert(now.slice(0,4)+"%E5%B9%B4"+now.slice(4)+"%E6%9C%88%E3%81%AE%E6%9C%88%E9%96%93%E3%83%A9%E3%83%B3%E3%82%AD%E3%83%B3%E3%82%B0%E3%81%AF%E3%81%BE%E3%81%A0%E5%85%AC%E9%96%8B%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93")};var data=JSON.parse(xmlHttp.responseText);for(var i=0;i<data.rank.length;i++){if(data.rank[i].player_name===player_name){;alert(player_name+"%E3%81%95%E3%82%93%E3%81%AE"+now.slice(0,4)+"%E5%B9%B4"+now.slice(4)+"%E6%9C%88%E3%81%AE%E
@cohalz
cohalz / month_ranking.txt
Last active March 19, 2017 13:01
マイページにてグルコスの月間ランキングを確認するブックマークレット
javascript:(function(){var xmlHttp=new XMLHttpRequest();var player_name=prompt('%E8%AA%BF%E3%81%B9%E3%81%9F%E3%81%84%E3%83%97%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%83%8D%E3%83%BC%E3%83%A0%E3%82%92%E6%AD%A3%E7%A2%BA%E3%81%AB%E5%85%A5%E5%8A%9B%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84', '');if(!player_name)return;var month=prompt('%E8%AA%BF%E3%81%B9%E3%81%9F%E3%81%84%E6%9C%88%E3%82%92%E5%85%A5%E5%8A%9B%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84\n(%E4%BE%8B:2017%E5%B9%B43%E6%9C%88%E3%82%92%E8%AA%BF%E3%81%B9%E3%81%9F%E3%81%84%E5%A0%B4%E5%90%88%E3%81%AF201703%E3%81%A8%E5%85%A5%E5%8A%9B)', '');var index=0;var date=new Date();var now=date.getFullYear()+""+("0"+(date.getMonth()+1)).slice(-2);if(month.length == 6 && 201608 <= month && month <= now){var flag=false;while(!flag&&index<10){xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/monthly_ranking.php?id="+month+"&page="+index,false);xmlHttp.send(null);var data=JSON.parse(xmlHttp.responseText);for(var i=0;i<data.rank.length;i++){if
@cohalz
cohalz / groove_coaster_friend_play_count_bookmarklet
Last active January 30, 2017 17:12
マイページにてグルコスフレンドのクレ数を表示するブックマークレット フレンドを選んだあとの画面で使用できます
javascript:(function(){var hash=window.location.toString().match(/https:\/\/mypage.groovecoaster.jp\/sp\/#\/.+?\/([^\/]+)/);var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/friend_music_list.php?hash="+hash[1],false);xmlHttp.send(null);var data=JSON.parse(xmlHttp.responseText);var play_count_data=data.music_list.map(function(e){return e.play_count;});var sum=play_count_data.reduce(function(a,b){return a+b;});alert("%E6%A5%BD%E6%9B%B2%E3%83%97%E3%83%AC%E3%82%A4%E7%B7%8F%E6%95%B0: "+sum+"\n%E5%A4%A7%E4%BD%93"+Math.ceil(sum/3.0)+"%E3%82%AF%E3%83%AC%E3%81%8F%E3%82%89%E3%81%84%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99");})();
@cohalz
cohalz / groove_coaster_play_count_with_credit_bookmarklet
Last active January 15, 2024 09:34
マイページにてグルコスの楽曲プレイ回数を表示するブックマークレット(クレ数換算付き)
javascript:(function(){var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/music_list.php",false);xmlHttp.send(null);var data=JSON.parse(xmlHttp.responseText);var play_count_data=data.music_list.map(function(e){return e.play_count;});var sum=play_count_data.reduce(function(a,b){return a+b;});alert("%E6%A5%BD%E6%9B%B2%E3%83%97%E3%83%AC%E3%82%A4%E7%B7%8F%E6%95%B0: "+sum+"\n"+Math.ceil(sum/3)+"%E3%82%AF%E3%83%AC%E3%81%8F%E3%82%89%E3%81%84%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99");})();
@cohalz
cohalz / groove_coaster_play_count.js
Last active November 10, 2018 10:02
ブックマークレットの元のやつ
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://mypage.groovecoaster.jp/sp/json/music_list.php", false);
xmlHttp.send(null);
var data = JSON.parse(xmlHttp.responseText);
var play_count_data = data.music_list.map(function(e){return e.play_count;});
var sum = play_count_data.reduce(function(a,b){return a + b;});
alert("楽曲プレイ総数: " + sum);
@cohalz
cohalz / groove_coaster_play_count_bookmarklet
Last active January 30, 2017 17:12
マイページにてグルコスの楽曲プレイ回数を表示するブックマークレット
javascript:(function(){var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/music_list.php",false);xmlHttp.send(null);var data=JSON.parse(xmlHttp.responseText);var play_count_data=data.music_list.map(function(e){return e.play_count;});var sum=play_count_data.reduce(function(a,b){return a+b;});alert("%E6%A5%BD%E6%9B%B2%E3%83%97%E3%83%AC%E3%82%A4%E7%B7%8F%E6%95%B0: "+sum+"\n"+Math.ceil(sum/3)+"%E3%82%AF%E3%83%AC%E3%81%8F%E3%82%89%E3%81%84%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99");})();
@cohalz
cohalz / groove10.md
Created January 4, 2016 11:34
難易度10表
  • FREE CONNECTION 2 -G.C.スペシャルエディットVer.-
  • 聖者の鼓動
  • 東方不死鳥
  • Extreme MGG★★★
  • ゆけむり魂温泉
  • Shadow
  • Stronger
  • Stardust Vox
  • 蒼空に舞え、墨染の桜
  • Jupiter II Europa
@cohalz
cohalz / ideasetup.md
Last active September 28, 2015 00:23

IntelliJ IDEA環境構築

  1. jdkでGoogle検索して良い感じにJavaの環境を入れる(以下のコマンドで確認)
java -version
  1. IntelliJ IDEA Community Editionをダウンロード https://www.jetbrains.com/idea/download/
  2. IntelliJ IDEAを起動する
  3. Create New Projectする
  4. JavaからProject SDKのところでNew JDKを選択