Skip to content

Instantly share code, notes, and snippets.

🏚️
Stay Hooooome.

Shion Ueda shiopon01

🏚️
Stay Hooooome.
Block or report user

Report or block shiopon01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bfs.go
package main
import (
"fmt"
"strings"
)
type Pair struct {
x, y int
}
View hoge.go
package main
import (
"fmt"
)
type Hoges []struct {
value string
}
View abc081_b.go
package main
import "fmt"
func main() {
var n int
fmt.Scan(&n)
a := make([]int, n)
for i := 0; i < n; i++ {
fmt.Scan(&a[i])
View kubernetes-jenkins.yaml
# ------------------- Jenkins ReplicationController ------------------- #
apiVersion: v1
kind: ReplicationController
metadata:
name: jenkins
spec:
replicas: 1
selector:
app: jenkins-app
@shiopon01
shiopon01 / git-prompt
Last active Mar 8, 2019
branch表示リロードされないかも
View git-prompt
## Git-Prompt
if [ -f $HOME/rc/git-completion.bash ] && [ -f $HOME/rc/git-prompt.sh ]; then
source $HOME/rc/bash/git-completion.bash
source $HOME/rc/bash/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUPSTREAM=auto
fi
View express-dark-params-cheker.js
const checkName = (name) => {
if (name.length > 5) {
return true;
}
throw new Error("My Error");
}
const name = 'piyo'
//
@shiopon01
shiopon01 / Brewfile
Last active Jan 1, 2019
my Brewfile
View Brewfile
cask_args appdir: '/Applications'
tap 'caskroom/cask'
# brew
brew 'ctop'
brew 'curl'
brew 'ghq'
brew 'gist'
brew 'git'
View Get Emacs26 on Ubuntu
$ sudo add-apt-repository ppa:kelleyk/emacs
$ sudo apt update
$ sudo apt install emacs26
View kubectl-dockerfile-for-EKS
# Prerequisites:
# You must be create config file.
#
# $ touch ~/.kube/config-<cluster-name>
# Reference: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html
#
# Build:
# $ docker build -t kubectl .
#
# Run:
View try.c
while (!success)
{
try();
}
You can’t perform that action at this time.