This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"flag" | |
"log" | |
"math/rand" | |
"os" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcd() { | |
if dir=$(ghq list -p|peco --query="$*");then | |
if [ -z "$dir" ]; then | |
return | |
fi | |
echo "\tcd $dir" | |
(cd $dir; $SHELL) | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func min(s []byte, k int64) (int, int64) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
buf := make([]byte, 12) | |
os.Stdin.Read(buf) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function command_not_found_handler() { | |
res=$(echo -n $0 | tr -d 'ls') | |
if [ -z "$res" ]; then | |
shift 1 | |
ls $@ | |
return 0 | |
fi | |
return 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |