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
// https://tumoiyorozu.github.io/white200/ | |
// 「スタート」「本番開始」ボタンを押したあと、 F12 で開発者ツール開いて以下を貼り付けてEnterでおk | |
const questionText = document.querySelector('#problem_text').innerText; | |
const colorText = questionText.match(/#([a-z0-9]{6})/)[1]; | |
const rText = colorText.substr(0, 2); | |
const gText = colorText.substr(2, 2); | |
const bText = colorText.substr(4, 2); | |
const r = Number.parseInt(rText, 16); | |
const g = Number.parseInt(gText, 16); | |
const b = Number.parseInt(bText, 16); |
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
task showClassPaths(type: Exec) { | |
def classFiles = [] | |
configurations.compileClasspath.each { classFiles.add(it.toString()) } | |
def classPaths = classFiles.collect { "--class-path ${it}" }.join(" ") | |
executable "bash" | |
args "-c", "echo 'jshell ${classPaths}'" | |
} |
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
in_file_path = '/usr/share/dict/web2' | |
files = [] | |
Dir.glob(in_file_path) do |file| | |
files.push(file) | |
end | |
five_char_words = [] | |
File.open(in_file_path) do |file| | |
file.each_line do |line| |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Team Switcher</title> | |
<style> | |
#teams { | |
display: flex; | |
justify-content: space-evenly; |
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
gem 'sinatra', '~> 2.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
@echo off | |
chcp 65001 | |
set DATE=%date:~0,4%%date:~5,2%%date:~8,2% | |
echo コピー中... | |
xcopy /S /I /H /R /Y /Q %APPDATA%\7DaysToDie .\7DaysToDie__%DATE% |
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 newUrl=new URL(location); | |
newUrl.hash=`:~:text=${encodeURIComponent(getSelection().toString())}`; | |
var input=document.createElement('input'); | |
input.value=newUrl; | |
document.querySelector('body').appendChild(input); | |
input.select(); | |
document.execCommand('copy'); | |
input.remove(); |
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
javascript:var _s=location.protocol==='https:'?'s/':'';var _url=`https://b.hatena.ne.jp/entry/${_s}${location.host}${location.pathname}`;var _a=document.createElement('a');_a.href=_url;_a.target='_blank';_a.rel='nofollow';_a.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
javascript:var height=window.innerHeight,rootElement=document.querySelector("div[data-testid=primaryColumn] section[role=region] > div > div > div"),times={};let intervalId=setInterval(()=>{window.scrollBy(0,height);var e=rootElement.style.paddingBottom,t=e.length;if(0===parseInt(e.substring(0,t-2)))return clearInterval(intervalId),void alert(Object.keys(times).length);document.querySelectorAll("article time").forEach(e=>times[e.dateTime]=!0)},350); | |
/***** | |
var height = window.innerHeight; | |
var rootElement = document.querySelector('div[data-testid=primaryColumn] section[role=region] > div > div > div'); | |
var times = {}; | |
let intervalId = setInterval(() => { | |
window.scrollBy(0, height) | |
var paddingBottom = rootElement.style.paddingBottom; | |
var paddingBottomLength = paddingBottom.length; | |
var rest = parseInt(paddingBottom.substring(0, paddingBottomLength - 2)); |
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
// 値段 | |
const jpnPrices = document.querySelectorAll('.cassetteitem_price--rent'); | |
// 管理費 | |
const jpnAdminPrices = document.querySelectorAll('.cassetteitem_price--administration'); | |
// 間取り | |
const madoris = document.querySelectorAll('.cassetteitem_madori'); | |
// 専有面積 | |
const floorSpaces = document.querySelectorAll('.cassetteitem_menseki'); | |
for(let i = 0; i < jpnPrices.length; i++) { |
NewerOlder