This file contains 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
var listTables,f,update,output,showImgs; | |
showImgs = false; //debugというか負荷軽減というか 軽減するのだろうか | |
listTables = new Array(); | |
update = function(){ | |
listTables.push($("#headerAcdPanel > div:first > table tbody tr")); | |
return f($(".paging:nth-child(3) a").attr("href")); | |
}; | |
output = function(){ | |
$("#headerAcdPanel").empty().append('<div style="text-align:center"><table width="70%" id="result"></table></div>'); | |
for (var i=0;i<listTables.length;i++) { |
This file contains 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
# coding: utf-8 | |
import urllib2,json,sys,codecs,cnvk | |
sys.stdin = codecs.getreader('utf-8')(sys.stdin) | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) | |
response = urllib2.urlopen('http://www5164u.sakura.ne.jp/idols/profile.json?scope=all') | |
data = json.loads(response.read()) | |
# data = json.load(open("profile.json")) | |
for l in data: |
This file contains 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 MatchData | |
def to_h | |
ret = Hash.new | |
self.regexp.named_captures.each{|key,valindex| | |
ret[key] = valindex.collect{|i| | |
self.to_a[i] | |
} | |
ret[key].delete(nil) | |
case ret[key].size | |
when 1 then ret[key] = ret[key][0] |
This file contains 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 imas_ml_awnscouter.user.js | |
// @namespace http://twitter.com/berlysia | |
// @include http://imas.gree-apps.net/app/index.php/* | |
// @version 1.0.0.0 | |
// ==/UserScript== | |
(function(){ | |
var getSiblings = function(self){ | |
var ret = []; |
This file contains 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
.navi { | |
display: none; | |
} | |
.assaultArea_02 table + div { | |
float: right; | |
height: 0px; | |
position: relative; | |
top: -60px; | |
} |
This file contains 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 ruby | |
z = nil.to_i | |
print (!!nil).class.name[z].next.next | |
print [].each.class.name[z].downcase | |
print (!!nil).class.name[z.next.next] | |
print (!!nil).class.name[z.next.next] | |
print nil.class.name[z].next.downcase | |
print (z.next.next ** {}.class.name.size.next).chr | |
print [].each.class.name[z.next.next].next.next.upcase |
This file contains 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 ($) { | |
$.fn.setPushState = function (destinationSelector, referenceSelector, appendClass) { | |
var aC = appendClass || 'ps_active'; | |
var selector = $(this).selector; | |
this.click(function (e) { | |
e.preventDefault(); | |
var nextPageUrl = $(this).attr('href'); | |
if (!$(this).hasClass(aC)) { | |
$('.'+aC).removeClass(aC); | |
$(this).addClass(aC); |
This file contains 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 imas_ml_bazaarutil | |
// @namespace http://twitter.com/berlysia | |
// @include http://imas.gree-apps.net/app/index.php/bazaar* | |
// @run-at document-end | |
// @version 1.0.0.0 | |
// ==/UserScript== | |
/* | |
index |
This file contains 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(selector){ | |
var arr = selector.replace(/([.#])/g,",$&").split(','); | |
var classes = arr.filter(function(e){return e.substr(0,1) == '.'}).map(function(e){return e.slice(1)}); | |
var id = arr.filter(function(e){return e.substr(0,1) == '#'})[0]; | |
var elementName = 'div'; | |
if(!(arr[0] == '' || arr[0].substr(0,1).match(/[.#]/))) elementName = arr[0]; | |
var newElement = document.createElement(elementName); | |
if(classes.length>0) newElement.className = classes.join(' '); | |
if(id) newElement.id = id.slice(1); |
This file contains 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 ruby | |
# encoding: utf-8 | |
class MH4roulette | |
def initialize | |
@names = %w[player1 player2 player3 player4] | |
@slash = %w[片手剣 大剣 太刀 双剣 ランス ガンランス スラッシュアックス チャージアックス 操虫棍].freeze | |
@strike = %w[ハンマー 狩猟笛 操虫棍].freeze | |
@shoot = %w[弓 ライトボウガン ヘビィボウガン].freeze |
OlderNewer