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
for (var i=1;i<16;i++){ | |
document.getElementById("actionSelect"+i).click(); | |
document.getElementById("deleteLink_"+i).click(); | |
document.getElementsByClassName("ap_custom_close")[0].click(); | |
} |
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
#!/bin/bash | |
f=$(pwd) | |
mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi | |
# fake argv and argc in bash | |
argc=$#; argv[0]=$0 # argv[0] is a prog name | |
for foo in $( seq $argc ) | |
do |
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
def json2simpleHash(json_str, prefix = '') | |
result = {} | |
json = JSON.parse(json_str) | |
json.each do |key, value| | |
if(value.is_a?(Hash)) | |
result.merge!(json2simpleHash(value.to_json, prefix+key+'_')) | |
else | |
result.merge!({"#{prefix}#{key}" => value}) | |
end | |
end |
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
[General] | |
loglevel = notify | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10 | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10 | |
// DNS OVERRIDE, REMOVE # IF YOU NEED | |
# dns-server = 223.6.6.6,223.5.5.5,114.114.114.114,114.114.115.115 | |
[Rule] |
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
#Thanks for https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes | |
require 'json' | |
require 'rest-client' | |
TEST_LIST = "AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK, US".split(", ") | |
JSON_URL = 'https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/raw/master/slim-2/slim-2.json' | |
response = RestClient.get(JSON_URL) | |
json = JSON.parse(response) | |
puts json.select { |j| TEST_LIST.include?(j["alpha-2"]) }.map { |j| j["name"]}.join("\n") |
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
/** | |
* JapaneseCharacter contains static functions to do various tests | |
* on characters to determine if it is one of the various types of | |
* characters used in the japanese writing system. | |
* <p/> | |
* There are also a functions to translate between Katakana, Hiragana, | |
* and Romaji. | |
* | |
* @author Duane J. May <djmay@mayhoo.com> | |
* @version $Id: JapaneseCharacter.java,v 1.2 2002/04/20 18:10:24 djmay Exp $ |
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
require "sqlite3" | |
require 'rest-client' | |
require 'json' | |
require 'open-uri' | |
# RestClient.proxy = "http://127.0.0.1:6152" | |
DB = SQLite3::Database.new "./JMDict(cn+en).sqlite3" | |
TARGET_LANG = "zh-CN" | |
def getTranslation(source, currentId) |
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 King of Time modification | |
// @namespace https://dacer.im/ | |
// @version 0.1 | |
// @description Make Kot be better | |
// @author Dacer | |
// @grant none | |
// @include https://*.kingtime.jp/admin/* | |
// ==/UserScript== |
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 Amazon invoice compressor | |
// @namespace https://dacer.im/ | |
// @version 0.1 | |
// @description Remove amazon invoice page's custom font | |
// @author Dacer | |
// @grant none | |
// @match https://www.amazon.co.jp/gp/css/summary/print.html/* | |
// ==/UserScript== |
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 Sgtts | |
// @namespace https://prog-8.com/ | |
// @version 0.1 | |
// @description Say goodbye to Twitter's sidebar (aka Sgtts) | |
// @author Dacer | |
// @grant none | |
// @match https://twitter.com/* | |
// ==/UserScript== |
OlderNewer