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 Auto Accept △ Complex | |
// @namespace https://github.com/tatzyr/ | |
// @version 0.1.0 | |
// @description Auto Accept △ Complex | |
// @include https://www.sankakucomplex.com/mature-content-disclaimer/* | |
// @match https://www.sankakucomplex.com/mature-content-disclaimer/* | |
// @run-at document-end | |
// @copyright 2018, Tatzyr | |
// ==/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
rand(0x10000000000000000000000000000).to_s(32).tr('0-9a-z', 'A-Z2-7').rjust(23, 'A') |
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 | |
require "optparse" | |
opts = ARGV.getopts("", "minutes:5", "load:", "help", "version") | |
if opts["help"] | |
puts <<EOS | |
loadsleep |
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 | |
require "optparse" | |
require "json" | |
require "open3" | |
params = ARGV.getopts("cu:") | |
c_opt = params["c"] ? "-c" : "" | |
u_opt = params["u"] ? "-u #{params['u']}" : "" |
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
--- | |
title: parrotparty | |
emojis: | |
- name: parrot | |
src: http://cultofthepartyparrot.com/parrots/parrot.gif | |
- name: middleparrot | |
src: http://cultofthepartyparrot.com/parrots/middleparrot.gif | |
- name: rightparrot | |
src: http://cultofthepartyparrot.com/parrots/rightparrot.gif | |
- name: aussieparrot |
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 | |
# frozen_string_literal: true | |
require "mechanize" | |
require "uri" | |
list_urls = [ | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=0&tsuka_conv=jpy", | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=60&tsuka_conv=jpy", | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=120&tsuka_conv=jpy" |
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 | |
# require "headless" | |
require "capybara" | |
require "capybara-webkit" | |
class Capybara::Session | |
def wait_css(selector, timeout_sec = 5) | |
timeout_sec.times do | |
break if has_css?(selector) |
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 | |
max=50 | |
for ((i=0; i < $max; i++)); do | |
# Minecraftのウインドウを選択 | |
cliclick c:280,760 | |
sleep 0.1 | |
# 1行1列のアイテム選択 | |
cliclick c:280,760 |
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 | |
EXCLUDE_DIRECTORY_PATTERN = /\A\d{4}-\d{2}-\d{2}\z/ | |
files = Dir["*/*"].reject {|filename| | |
File.dirname(filename).match(EXCLUDE_DIRECTORY_PATTERN) | |
} | |
directories = Dir["*"].reject {|dirname| | |
dirname.match(EXCLUDE_DIRECTORY_PATTERN) |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
// カンマなどで区切られたstringを分割 | |
vector<string> split(const string line, const string delim) | |
{ | |
vector<string> result; |
NewerOlder