Skip to content

Instantly share code, notes, and snippets.

View shiopon01's full-sized avatar

Shion Ueda shiopon01

View GitHub Profile
@shiopon01
shiopon01 / sample---hello-md
Last active May 10, 2023 17:16
code-snippet-final
aa
@shiopon01
shiopon01 / code-snippet
Last active May 10, 2023 16:52
code-snippet
‎‎​
$ sudo add-apt-repository ppa:kelleyk/emacs
$ sudo apt update
$ sudo apt install emacs26
@shiopon01
shiopon01 / Create file in Inbox.md
Created October 6, 2021 15:34
Obsidian Templaterを使用して指定フォルダ内に連番のファイルを作成する

<%* const title = await tp.system.prompt("Enter title"); if (!title) { return; } const inbox = "Inbox/Inbox.md"; const inboxFile = this.app.vault.getAbstractFileByPath(inbox); const inboxContent = await this.app.vault.read(inboxFile); const nextNo = String(Number(inboxContent) + 1).padStart(4, "0");

@shiopon01
shiopon01 / Brewfile
Last active June 12, 2020 02:08
my Brewfile
cask_args appdir: '/Applications'
# brew
brew 'ctop'
brew 'curl'
brew 'gcc'
brew 'ghq'
brew 'gist'
brew 'git'
package main
import (
"fmt"
"strings"
)
type Pair struct {
x, y int
}
package main
import (
"fmt"
)
type Hoges []struct {
value string
}
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])
@shiopon01
shiopon01 / kubernetes-jenkins.yaml
Created June 21, 2019 05:59
kubernetes-jenkins.yaml
# ------------------- Jenkins ReplicationController ------------------- #
apiVersion: v1
kind: ReplicationController
metadata:
name: jenkins
spec:
replicas: 1
selector:
app: jenkins-app