Skip to content

Instantly share code, notes, and snippets.

View kenji-miyake's full-sized avatar
🥺

Kenji Miyake kenji-miyake

🥺
View GitHub Profile
@kenji-miyake
kenji-miyake / org2repos.py
Created August 16, 2022 10:50
org2repos.py
#!/usr/bin/env python3
import argparse
import os
import re
from pathlib import Path
from typing import Optional
import yaml
from github import Github
@kenji-miyake
kenji-miyake / main.py
Created April 24, 2022 09:35
Python template
import argparse
import logging
import argcomplete
logger = logging.getLogger(__name__)
logger.setLevel("DEBUG")
def main():
@kenji-miyake
kenji-miyake / check-env-diff.fish
Last active February 16, 2021 16:11
check-env-diff.fish
#!/usr/bin/env fish
function check-env-diff
# Check arguments
if test (count $argv) -lt 1
echo "Please input command as the 1st argument."
return
end
set cmd $argv[1..-1]
@kenji-miyake
kenji-miyake / c_cpp_properties.json
Created September 6, 2020 23:10
c_cpp_properties.json for ROS Melodic
{
"configurations": [
{
"name": "ROS",
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"${workspaceFolder}/src/**",
Import-Module PSReadLine
Set-PSReadlineOption -EditMode Emacs
@kenji-miyake
kenji-miyake / ChangeWindowsNamingTemplate.bat
Created July 19, 2019 10:58
Change Windows Naming Template
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates /t REG_SZ /v CopyNameTemplate /d "%%s" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates /t REG_SZ /v RenameNameTemplate /d "new" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates /t REG_SZ /v ShortcutNameTemplate /d "%%s.lnk" /f
; Common
#Persistent
#SingleInstance force
#MaxHotkeysPerInterval 100
; Emacs Keybind
#If NOT WinActive("ahk_class ConsoleWindowClass") AND NOT WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")
RCtrl & a:: Send {Home}
RCtrl & e:: Send {End}
RCtrl & k:: Send +{End}^{x}
@kenji-miyake
kenji-miyake / how-to-generate-xyz-tiles-using-qgis3.md
Created June 21, 2019 03:43
How to generate XYZ tiles using QGIS3

How to generate XYZ tiles using QGIS3

Overview

QGIS3 has a tool called 'gdal2tiles.py' which can generate map tiles, but currently, it only supports TMS, not XYZ. However, QGIS3 loads XYZ by default and requires checkbox for TMS, so it's better to convert TMS to XYZ.

The difference between TMS and XYZ is just the name of Y-coordinate, so renaming works well. tms2xyz.py is a script for that.

Keybase proof

I hereby claim:

  • I am kenji-miyake on github.
  • I am kenji_miyake (https://keybase.io/kenji_miyake) on keybase.
  • I have a public key ASBIjiqlnPligVGHAt9eYLPJTCKHjCwTbF0VzBhmbEdhEwo

To claim this, I am signing this object: