あなたとJava
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
| window.base32 = (function () { | |
| var b32 = function () { | |
| this.map = {}; | |
| this.reverse = {}; | |
| for(var i = 0;i<32;i++){ | |
| var str = ''; | |
| for(var k =4;k>=0;k--){ | |
| str += (i&(1 << k))?'1':'0'; | |
| } | |
| this.map[this.chars[i]]=str; |
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
| // ==UserScript== | |
| // @name valentine_canceler | |
| // @namespace vanallenbelt.team-lab.com | |
| // @include * | |
| // ==/UserScript== | |
| function $(id){ | |
| return document.getElementById(id); | |
| } | |
| function xpath(query,cont) { |
あなたとJava8
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
| # imports and basic notebook setup | |
| from cStringIO import StringIO | |
| import numpy as np | |
| import scipy.ndimage as nd | |
| import PIL.Image | |
| import json | |
| from IPython.display import clear_output, Image, display | |
| from google.protobuf import text_format | |
| import caffe |
- イカの情報は、公式サイトへの情報反映用に一部がS3にjson形式で置いてあって、人間ががんばれば読めるようになっている
- S3のベースURLは
http://s3-ap-northeast-1.amazonaws.com/splatoon-data.nintendo.net/である
以下について、現ターム(4時間のアレ)と過去2ターム前までの情報が参照可能
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
| # Description: | |
| # イカレギュラーマッチのフェスステージ情報を返す(未完成) | |
| # | |
| # Notes: | |
| # イカ、よろしくー | |
| # | |
| module.exports = (robot) -> | |
| robot.respond /(イカ)/i, (msg) -> | |
| resp = "ハイカラニュースの時間だよ!\n" | |
| request_fes = msg.http("http://s3-ap-northeast-1.amazonaws.com/splatoon-data.nintendo.net/fes_info.json").get() |
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
| # Description: | |
| # イカレギュラーマッチのステージ情報を返す | |
| # | |
| # Notes: | |
| # イカ、よろしくー | |
| # | |
| module.exports = (robot) -> | |
| robot.respond /(イカ)/i, (msg) -> | |
| resp = "ハイカラニュースの時間だよ!\n" | |
| request_fes = msg.http("http://s3-ap-northeast-1.amazonaws.com/splatoon-data.nintendo.net/fes_info.json").get() |
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(s){Array.prototype.slice.call(document.querySelectorAll(".equip-painted-point-number")).forEach(function(n){s+=parseInt(n.textContent);});return s;})(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
| (function () { | |
| var p = [0, 3, 6, 9, 10, 12, 13, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 44, 45, 47, 48, 51, 54, 57]; | |
| var tuple = function (s) { | |
| var r = []; | |
| for (var i = 0; i < p.length; i++) { | |
| for (var j = p.length - 1; j >= 0; j--) { | |
| if ((p[i] + p[j]) <= s) { | |
| r.push([p[i], p[j]]); | |
| break; // エッジのみ抽出、範囲内全列挙の場合は外す | |
| } |