Skip to content

Instantly share code, notes, and snippets.

View hayamiz's full-sized avatar

Yuto Hayamizu hayamiz

View GitHub Profile
@hayamiz
hayamiz / run-boxstarter.ps1
Last active January 6, 2024 08:39
boxstarter-goby
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
# Set-TaskbarOptions -Size Small -Dock Right -Combine Always -AlwaysShowIconsOn
Disable-BingSearch
# Set HOME
# [Environment]::SetEnvironmentVariable("HOME", $env:USERPROFILE, "User")
# Convert CapsLock to Ctrl
cinst ctrl2cap
BoldAsFont=no
Font=Ricty Diminished
FontHeight=10
FontSmoothing=partial
Locale=C
Charset=UTF-8
Term=xterm
ForegroundColour=131,148,150
BackgroundColour=0,43,54
@hayamiz
hayamiz / google-ime-keymap.txt
Last active June 29, 2018 15:49
Google IME Mac風キーマップ定義(変換・無変換キーで切り替え)
status key command
Composition Backspace Backspace
Composition Ctrl a MoveCursorToBeginning
Composition Ctrl Backspace Backspace
Composition Ctrl d MoveCursorRight
Composition Ctrl Down MoveCursorToEnd
Composition Ctrl e MoveCursorToBeginning
Composition Ctrl Enter Commit
Composition Ctrl f MoveCursorToEnd
Composition Ctrl g Delete
@hayamiz
hayamiz / test.md
Last active November 11, 2015 08:20

markdown test on gist

  • list item
  • hello world

link

helloworldtable
thisistable
# bash completion support for ec2ssh
_ec2ssh() {
local cmd cur prev subcmd
cmd=$1
cur=$2
prev=$3
subcmds="help init migrate remove update version"
common_opts="--dotfile --verbose"
#compdef ec2ssh
# main completion function
_ec2ssh-init() {
local ret
_call_function ret __ec2ssh_noarg_cmd
return $ret
}
_ec2ssh-migrate() {
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
)
func isPalindrome(x int) bool {
x_str := fmt.Sprintf("%d", x)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"time"
"runtime"
"math/rand"
)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"time"
"math/rand"
"runtime"
)
# bubble_sort insert_sort comb_sort heap_sort quick_sort merge_sort radix_sort
1024 0.002093 0.001779 0.000119 0.000141 0.000066 0.000177 0.000497
2048 0.007563 0.007125 0.000267 0.000312 0.000157 0.000595 0.000914
4096 0.030030 0.031046 0.000597 0.000618 0.000283 0.000690 0.001757
8192 0.143416 0.150824 0.001420 0.001344 0.000587 0.001601 0.004605
16384 0.708408 0.659263 0.003042 0.003094 0.001483 0.002880 0.007778
32768 2.829499 2.687607 0.006883 0.006704 0.002834 0.006644 0.020620
65536 11.018346 12.883842 0.018560 0.015771 0.006227 0.014558 0.040599
131072 n/a n/a 0.039978 0.032330 0.014874 0.026100 0.102699
262144 n/a n/a 0.085626 0.070412 0.025175 0.063452 0.249397