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
| [flake8] | |
| ignore = E203, E266, E501, W503, F403, F401 | |
| max-line-length = 88 | |
| max-complexity = 18 | |
| select = B,C,E,F,W,T4,B9 |
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 main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| func main() { | |
| body := map[string]interface{}{ | |
| "domain": "amazon.com", |
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
| --- | |
| - name: Mac Setup | |
| hosts: 127.0.0.1 | |
| connection: local | |
| var: | |
| brew_cask_apps: | |
| - qlmarkdown | |
| - qlcolorcode | |
| - quicklook-json | |
| - qlprettypatch |
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) |