This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| require_relative 'hepburn-romanization' | |
| class Roman | |
| def initialize(txt) | |
| @arg = txt | |
| end | |
| def to_romaji |
This file contains hidden or 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 python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| def _init(argv): | |
| if len(argv) == 1: | |
| print('usage: katakana2romaji.py カタカナ') | |
| sys.exit(1) | |
| def katakana2romaji(txt): |
This file contains hidden or 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
| cd C:\Users\username\Documents\my_project | |
| git add . | |
| git commit -m "%date:~0,4%-%date:~5,2%-%date:~8,2% updated" | |
| git push | |
| cmd.exe |
This file contains hidden or 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
| timeout 120 | |
| taskkill /F /IM "robocopy.exe" | |
| robocopy "C:\abc" "D:\xyz" /S /R:0 /W:0 /XJD /XJF /LOG:"C:\TEMP\robocopy.log" /xf *.type~ *.robot~ .gitignore .history .project /xd .git | |
| cmd.exe |
This file contains hidden or 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 | |
| empty.exe * |
This file contains hidden or 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
| cd C:\XXX | |
| 7z a %date:~0,4%%date:~5,2%%date:~8,2%.zip AAA BBB | |
| pushd "\\XXX\abc" | |
| move /y "C:\backup\%date:~0,4%%date:~5,2%%date:~8,2%.zip" . | |
| cmd.exe |
This file contains hidden or 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: (function() { | |
| var date = new Date(); | |
| prompt("unix time:", date.getTime()); | |
| })(); |
This file contains hidden or 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 | |
| set HTTP_CLIENT=wget --no-check-certificate -O | |
| set HTTP_CLIENT=curl -f -L -k -o | |
| set HTTP_PROXY=yourserver:8080 | |
| set HTTPS_PROXY=yourserver:8080 | |
| set JAVA_HOME=%~dp0 | |
| set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=yourserver -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password" | |
| set PATH=%PATH%;%JAVA_HOME%bin;%~dp0kotlinc\bin;%~dp0 |
This file contains hidden or 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 | |
| set HTTP_CLIENT=wget --no-check-certificate -O | |
| set HTTP_CLIENT=curl -f -L -k -o | |
| set HTTP_PROXY=yourserver:8080 | |
| set HTTPS_PROXY=yourserver:8080 | |
| set JAVA_HOME=%~dp0 | |
| set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=yourserver -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password" | |
| set PATH=%PATH%;%JAVA_HOME%bin;%~dp0kotlinc\bin;%~dp0 |
This file contains hidden or 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 python | |
| import sys | |
| import re | |
| import codecs | |
| import time | |
| import msmt | |
| from BeautifulSoup import BeautifulStoneSoup | |
| #sys.stdout = codecs.getwriter('utf-8')(sys.stdout) |