Skip to content

Instantly share code, notes, and snippets.

View lusingander's full-sized avatar
👻
nemu

Kyosuke Fujimoto lusingander

👻
nemu
View GitHub Profile
@lusingander
lusingander / hello-fyne.md
Last active April 18, 2020 23:13
Go + Fyne で GUI アプリケーション(Fyne についてのメモ)

Go の GUI ライブラリである Fyne について雑多にあれこれ紹介します.

Fyne とは

Fyne は Go で GUI アプリケーションを作るためのライブラリです. シンプルでわかりやすい, 簡単に綺麗なデザインが作れる, モバイル等も含めたクロスプラットフォームといった点を売りとしています.

  • 公式サイト
@lusingander
lusingander / test.kt
Last active October 2, 2019 02:29
Kotlin + JUnit5 + Nested classes
fun value(str: String): Int {
println(str)
return 0
}
fun test(str: String) {
println("【Executed Test: $str】")
}
class Test1 {
@lusingander
lusingander / hyperv.md
Created May 21, 2019 08:26
Hyper-V + Powershell
> Get-VM
> Start-VM -Name [name]
> Stop-VM -Name [name] -Force
> Get-VMSnapshot -VMName [name]
> Restore-VMSnapshot -VMName [name] -Name [snapshot name] -Confirm:$true
@lusingander
lusingander / bookmarklet.md
Created April 5, 2019 12:58
ブックマークレット

PC Twitter 検索画面を見やすくする

javascript:document.getElementsByClassName('SidebarCommonModules')[0].remove();document.getElementsByClassName('topbar')[0].remove();document.getElementsByClassName('SearchNavigation')[0].appendChild(document.getElementsByClassName('SidebarFilterModule')[0]);Array.prototype.forEach.call(document.getElementsByClassName('SearchNavigation'),function(e){e.classList.add('u-size1of3');e.classList.add('u-lg-size1of4');e.classList.add('Grid-cell');e.style.margin='0 10px'});
// おすすめユーザ等の情報を削除
document.getElementsByClassName('SidebarCommonModules')[0].remove();
@lusingander
lusingander / short_python.md
Created April 3, 2019 02:55
Python3 のショートコーディングに関する Tips

Python3 Short Coding Tips

Yes/No 出力

"YNeos"[cond::2]
# => "No" if cond else "Yes"
@lusingander
lusingander / cvui_gabor.py
Created March 1, 2019 08:21
Gabor Filter (OpenCV/Python) with cvui
from abc import ABCMeta, abstractmethod
import numpy as np
import cv2
import cvui
class CvuiComponent(metaclass=ABCMeta):
def __init__(self):
self.frame = None
@lusingander
lusingander / cvui_test.py
Last active March 5, 2019 10:23
cvui practice
"""
https://github.com/Dovyski/cvui
https://dovyski.github.io/cvui/
"""
from abc import ABCMeta, abstractmethod
import numpy as np
import cv2
import cvui
@lusingander
lusingander / command.vim
Created February 28, 2019 08:23
vim command util
" json format (by jq) and syntax highlight
function! FormatAndHighlightJsonData()
if executable('jq')
:%!jq .
:set filetype=json
endif
endfunction
ca json call FormatAndHighlightJsonData()
" convert unix time to str under cursor
@lusingander
lusingander / gabor.py
Created February 28, 2019 05:26
Gabor Filter (OpenCV/Python)
import cv2
import numpy as np
class CvTrackbar:
def __init__(self, name, window_name, val, max_val, callback=None):
self.__name = name
self.__window_name = window_name
cv2.createTrackbar(name, window_name, val, max_val, callback or CvTrackbar.nothing)
def value(self):