Skip to content

Instantly share code, notes, and snippets.

View zaltoprofen's full-sized avatar

nakashima zaltoprofen

  • Tokyo, Japan
View GitHub Profile
package main
import (
"errors"
"flag"
"log"
"math/rand"
"os"
"time"
gcd() {
if dir=$(ghq list -p|peco --query="$*");then
if [ -z "$dir" ]; then
return
fi
echo "\tcd $dir"
(cd $dir; $SHELL)
fi
}
@zaltoprofen
zaltoprofen / trace-on
Last active September 29, 2016 07:08
#!/bin/bash
if ! which unlimited-blade-works &>/dev/null; then
echo "Farewell. Drown in your ideals and die." >&2
exit 1
fi
candidate=$(unlimited-blade-works --no-bgm --single-action)
while true; do
echo -n "would you like to mkdir \"$candidate\" ? [Y/n]: "
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func min(s []byte, k int64) (int, int64) {
package main
import (
"fmt"
"os"
)
func main() {
buf := make([]byte, 12)
os.Stdin.Read(buf)
function command_not_found_handler() {
res=$(echo -n $0 | tr -d 'ls')
if [ -z "$res" ]; then
shift 1
ls $@
return 0
fi
return 1
}
AUTO_LOAD_DOCKER_MACHINE=dev
MAYBE_LOAD=$(docker-machine ls --filter STATE=running --filter "NAME=$AUTO_LOAD_DOCKER_MACHINE" -f "{{.Name}}")
if [ "$MAYBE_LOAD" = "$AUTO_LOAD_DOCKER_MACHINE" ]; then
eval $(docker-machine env "$MAYBE_LOAD")
fi
#!/bin/bash
this=$0
if [ $# -ne 1 ];then
echo $this http://...
echo Download specified resource and open with VSCode
exit 1
fi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
R G B Name
249 171 187 Kyoko Igarashi
153 0 63 Shiki Ichinose
227 79 165 Sae Kobayakawa
215 0 114 Mayu Sakuma
222 80 190 Yuka Nakano
77 39 27 Rina Fujimoto
148 0 86 Frederica Miyamoto
66 184 231 Haruna Kamijo
0 89 201 Chie Sasaki