Skip to content

Instantly share code, notes, and snippets.

View noraworld's full-sized avatar

Kosuke Aoki noraworld

View GitHub Profile
@noraworld
noraworld / main.rb
Created April 5, 2023 23:52
Add YAML headers and rename files according to Jekyll format
# frozen_string_literal: true
def main
dir = if ARGV.empty?
'**/*'
elsif ARGV.first.end_with?('/')
"#{ARGV.first}**/*"
else
"#{ARGV.first}/**/*"
end
@noraworld
noraworld / amazon.md
Last active February 8, 2023 06:56
List of country-specific domains for Amazon.com
@noraworld
noraworld / search_repo_by_language.sh
Last active July 28, 2022 10:26
Search repositories by specific language used even slightly
# This sample retrieves all the repositories that you have and that use even a little Python
# It may take a little time to get the results
#
# You may change the following parameters:
#
# 1. Change "100" if you have more than 100 repositories
# 2. Change "Python" if you want to find repositories in another language
#
gh repo list -L 100 |
awk '{ print $1 }' |
@noraworld
noraworld / toggle_pokemon_cc.js
Last active June 26, 2022 21:07
It allows you to toggle CC (closed caption) on watch.pokemon.com by pressing "c" key
// Toggle closed caption on watch.pokemon.com by pressing "c" key
let count = 0
document.addEventListener('keydown', (event) => {
if (event.key === 'c') {
count++
if (count % 2 === 0) {
document.querySelector('.vjs-menu-item.vjs-subtitles-menu-item').previousElementSibling.click()
}

Keybase proof

I hereby claim:

  • I am noraworld on github.
  • I am noraworld (https://keybase.io/noraworld) on keybase.
  • I have a public key whose fingerprint is D491 DABF 480A 29F0 B22D E586 6D59 C95E B487 3A43

To claim this, I am signing this object: