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": "REALFORCE 23U(テンキー)用キーバインド変更", | |
"rules": [ | |
{ | |
"description": "テンキーでイコールを入力", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [ |
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
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
export function wait(ms: number): Promise<any> { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
resolve(); | |
}, ms); | |
}); | |
} |
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
new Intl.DateTimeFormat("ja-JP-u-ca-japanese", {dateFormat: "full", year: "2-digit", month: "short", day: "2-digit"}).format(new Date()) | |
> "令和02年6月25日" |
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 puppeteer = require('puppeteer'); | |
const { Storage } = require('@google-cloud/storage'); | |
const url: string = ''; | |
const bucketName = ''; | |
const fileName = `hoge-${Date.now()}.png`; | |
(async () => { | |
const browser = await puppeteer.launch(); |
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 { WebClient } = require('@slack/web-api'); | |
const slackToken = process.env.SLACK_TOKEN; | |
async function uploadFile() { | |
const { createReadStream } = require('fs'); | |
const web = new WebClient(slackToken); | |
const conversationId = ''; | |
try { | |
const result = await web.files.upload({ |
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
{ | |
"editor.fontSize": 15, | |
// "editor.fontFamily": "'Fira Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontFamily": "'Hack', Menlo, Monaco, 'Courier New', monospace", | |
"atomKeymap.promptV3Features": true, | |
"files.trimTrailingWhitespace": true, | |
"files.associations": { | |
"*.jinja2": "jinja" | |
}, | |
"editor.multiCursorModifier": "ctrlCmd", |
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
spof% ~git master brew list | |
ansible hub msgpack readline | |
autoconf hugo mysql reattach-to-user-namespace | |
automake icu4c neovim redis | |
awscli imagemagick ngrok ruby | |
cmake jemalloc nkf ruby-build | |
coreutils jpeg nmap sqlite | |
curl jq node sshrc | |
curlish kotlin numpy supervisor | |
direnv libevent nvm terraform |
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 () { | |
var i = 0; | |
document.querySelectorAll('tr.days .dval.vst').forEach(function(e) { | |
setTimeout(function () { | |
e.click(); | |
document.querySelector('#startTime').value = '10:30'; | |
document.querySelector('#endTime').value = '20:00'; | |
document.querySelector('#dlgInpTimeOk').click(); | |
}, 4000 * i); | |
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
(function() { | |
var baseURL = 'https://b.hatena.ne.jp'; | |
var redirect = function(qArgs) { | |
var url = baseURL + '/add?b2=1' + ( qArgs || '' ) + '&url=' + encodeURIComponent(location.href); | |
location.href = url; | |
} | |
if (document.getElementsByTagName('frameset').length) { | |
return redirect('&frame=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
import threading | |
from uuid import uuid4 | |
import redis | |
r = redis.StrictRedis(host='', port=0, db=0, password='') | |
class Attacker(threading.Thread): | |
def __init__(self, name): |
NewerOlder