Thursday, October 12, 2017
Wednesday, July 19, 2017
dict words, regex, suffix and prefix, dwl
wc -l /usr/share/dict/words
need to separate into suffixes and prefix based on regexes
for example:
starting in words length 5
cross
ending in words length 6
stitch
Wednesday, June 21, 2017
Mac keyboard symbols in unicode
⌘ –
⌥ –
⇧ –
⎋ –
⇪ –
⏎ –
⌫ –
⌘ – ⌘ – the Command Key symbol⌥ –
⌥ – ⌥ – the Option Key symbol⇧ –
⇧ – ⇧ – the Shift Key symbol⎋ –
⎋ – ⎋ – the ESC Key symbol⇪ –
⇪ – ⇪ – the Capslock symbol⏎ –
⏎ – ⏎ – the Return symbol⌫ –
⌫ – ⌫ – the Delete / Backspace symbolTuesday, June 20, 2017
mojibake mongon
# -*- coding: utf-8 -*- jstr = u"日本語" print jstr.encode('iso-2022-jp') print jstr.encode('euc-jp') print jstr.encode('euc-jisx0213') print jstr.encode('euc-jis-2004') print jstr.encode('iso-2022-jp') print jstr.encode('iso-2022-jp-1') print jstr.encode('iso-2022-jp-2') print jstr.encode('iso-2022-jp-3') print jstr.encode('iso-2022-jp-ext') print jstr.encode('iso-2022-jp-2004') print jstr.encode('utf-7') print jstr.encode('utf-8') print jstr.encode('utf-16') print jstr.encode('utf-16-be') print jstr.encode('utf-16-le') print jstr.encode('cp932') #文字化けしない。 print jstr.encode('shift-jis') #文字化けしない。 print jstr.encode('shift-jisx0213') #文字化けしない。 print jstr.encode('shift-jis-2004') #文字化けしない。
Tuesday, June 13, 2017
Japanese Characters & Strings in Python
hiragana
for i in range(0x3040, 0x30a0): print(chr(i), end='')
katakanafor i in range(0x30a0, 0x3100): print(chr(i), end='')
kanjifor i in range(0x4e00, 0x4f00): print(chr(i), end='')
morpho!import sys
import codecs
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
sys.stderr = codecs.getwriter('utf8')(sys.stderr)
export PYTHONIOENCODING=UTF-8
Monday, June 12, 2017
Japanese Character & String conversions in terminal
Unicode blocks for Japanese characters
3000-303Fis CJK Symbols and Punctuation.3040-309Fis Hiragana.30A0-30FFis Katakana.4E00-9FFFis CJK Unified Ideographs.FF00-FFEFis Half-width and Full-width Forms.
To convert between hiragana and katakana, shift code points by
0x60:$ echo ひらがな|tr $'[\u3040-\u309f]' $'[\u30a0-\u30ff]'
ヒラガナ
$ echo カタカナ|tr $'[\u30a0-\u30ff]' $'[\u3040-\u309f]'
かたかな
To convert between full width and half width, use hyphen and tilde:
$ echo example|tr ' -~' $'\u3000\uff01-\uff5e'
example
$ echo example|tr $'\u3000\uff01-\uff5e' ' -~'
example
morpho!
Tuesday, April 4, 2017
GitHub Keyboard shortcuts
| Site wide shortcuts | |
|---|---|
| s | Focus search bar |
| g n | Go to Notifications |
| g d | Go to Dashboard |
| ? | Bring up this help dialog |
| j | Move selection down |
| k | Move selection up |
| x | Toggle selection |
| o / enter | Open selection |
| Repositories | |
| g c | Go to Code |
| g i | Go to Issues |
| g p | Go to Pull Requests |
| g w | Go to Wiki |
| Source code browsing | |
| t | Activates the file finder |
| l | Jump to line |
| w | Switch branch/tag |
| y | Expand URL to its canonical form |
| i | Show/hide all inline notes |
Monday, April 3, 2017
Desktop Software
- 7-zip
- AutoHotKey
- BlueJ
- BootRacer
- DiskBoss
- DiskSavvy
- Everything Search
- FileZilla
- Google Chrome
- GrepWin
- HeidiSQL
- Hipchat
- Jabber
- Microsoft Office
- Mozilla Firefox
- Notepad++
- Opera
- Poderosa
- RLogin
- Sakura
- SourceTree
- Spotify
- Sublime
- Telegram
- TortoiseGit
- Viber
- Visual Studio Code
- WinDirStat
- WinMerge
- WinSCP
Thursday, March 2, 2017
Subscribe to:
Posts (Atom)
Going one step further with Kotlin & gRPC
Recently, I tried using Quarkus with Kotlin for grpc. I have worked with grpc for communication between microservices in Java & Golang. ...
-
http://www.palindromelist.net/ https://nowthatsnifty.blogspot.com/2009/10/giant-list-of-palindromes.html http://www.derf.net/palin...
-
java.util.UUID timing test public class UUIDTest { public static void f(int n) { long start = System.currentTimeMillis(...