Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
class TableLayoutPanelEx : TableLayoutPanel
{
protected override void OnCreateControl()
{
base.OnCreateControl();
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.CacheText, true);
}
protected override CreateParams CreateParams
{
class PanelEx : Panel
{
protected override void OnCreateControl()
{
base.OnCreateControl();
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.CacheText, true);
}
protected override CreateParams CreateParams
{
@devlights
devlights / my_vim-go_setting.md
Last active June 3, 2020 07:16
自分用 vim-go の設定
"---------------------------------------------------------------------------
" vim-go 向け設定
" https://github.com/hnakamur/vim-go-tutorial-ja
"
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4

let g:go_fmt_command = "goimports"
let g:go_highlight_types = 1
let g:go_highlight_extra_types = 1
@devlights
devlights / powershell_git_log_mojibake.md
Last active May 20, 2020 02:12
Powershell で git log すると文字化けする場合の処置

LESSCHARSET という 環境変数 を設定することで直った。

LESSCHARSET=utf-8

参考

@devlights
devlights / bc_command_hex_to_dec.md
Created April 23, 2020 17:43
bc コマンドで16進数を10進数に変換

コマンド

$ echo "obase=10;ibase=16; FFFF" | bc
65535
  • obase
    • 出力側の進数
  • ibase
@devlights
devlights / .vimrc
Last active May 22, 2024 08:34 — forked from kazmura11/.vimrc
"---------------------------------------------------------------------------
" 全体設定:
"
" VI互換モードをOFF
set nocompatible
" ファイルタイプ検出をON
filetype on
" ファイルタイプに応じたプラグインのロードをON
filetype plugin on
" ファイルタイプに応じたインデント設定のロードをON
@devlights
devlights / git_tag_create_delete.md
Created December 21, 2019 14:59
[git] tagを作成したり削除(つけ直し)したりのメモ

tag作成

# アノテーションなしでタグ作成
$ git tag v1.0.0
# アノテーション付きでタグ作成
$ git tag -a v1.0.0 -m "message"

tagをpush

@devlights
devlights / time_format_rfc3339.go
Created November 7, 2019 05:47
Golang time format with RFC3339 (UTC, JST)
package main
import (
"fmt"
"time"
)
func main() {
location := time.FixedZone("JST", 9*60*60)
now := time.Now()