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:((urls) => { | |
urls.map(v => 'http://' + v.replace('*.', '')).forEach(v => open(v, '_blank')); | |
})( | |
[ | |
"www.google.co.jp", | |
"yahoo.co.jp", | |
"*.yahoo.co.jp", | |
] | |
) |
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
package KatakanaRomajiConvert | |
import com.ibm.icu.text.Transliterator | |
class KatakanaRomajiConvert(val word: String = "") { | |
private val transliterator = Transliterator.getInstance("Katakana-Latin") | |
def toRomaji: String = { | |
val kana: Option[String] = Some(word) | |
transliterator.transliterate(kana.getOrElse("")) | |
} |
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
/* | |
* This Kotlin source file was generated by the Gradle 'init' task. | |
*/ | |
package HatenaBookmarkFavoriteChecker | |
import org.jsoup.Jsoup | |
fun main(args: Array<String>) { | |
val xml = Jsoup.connect("http://b.hatena.ne.jp/user/bookmark.rss").get() ?: return | |
val elements = xml.select("item").first() |
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
/* | |
* This Kotlin source file was generated by the Gradle 'init' task. | |
*/ | |
package KatakanaRomajiConvert | |
import com.ibm.icu.text.Transliterator | |
class KatakanaRomajiConvert(val word: String = "") { | |
val katakanaToRomaji: String | |
get(): String { |
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
package App; | |
import java.util.Optional; | |
import com.ibm.icu.text.Transliterator; | |
public class KatakanaRomajiConvert { | |
public static void main(String[] args) { | |
try { | |
System.out.println(convertRomaji(args[0])); |
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
package KatakanaRomajiConvert | |
import com.ibm.icu.text.Transliterator | |
class KatakanaRomajiConvert(val word: String = "") { | |
private val transliterator = Transliterator.getInstance("Katakana-Latin") | |
def toRomaji: String = { | |
val kana: Option[String] = Some(word) | |
transliterator.transliterate(kana.getOrElse("")) | |
} |
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
# -*- coding: utf-8 -*- | |
require_relative 'hepburn-romanization' | |
class Roman | |
def initialize(txt) | |
@arg = txt | |
end | |
def to_romaji | |
HepburnRomanization.to_romaji(@arg) |
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 |