<%* 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");
View sample---hello-md
This file contains 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
aa |
View code-snippet-directory---sample.c
This file contains 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
aa |
View code-snippet
This file contains 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
|
View bfs.go
This file contains 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" | |
"strings" | |
) | |
type Pair struct { | |
x, y int | |
} |
View hoge.go
This file contains 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" | |
) | |
type Hoges []struct { | |
value string | |
} |
View abc081_b.go
This file contains 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" | |
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
This file contains 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
# ------------------- Jenkins ReplicationController ------------------- # | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: jenkins | |
spec: | |
replicas: 1 | |
selector: | |
app: jenkins-app |
View git-prompt
This file contains 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
## 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
This file contains 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
const checkName = (name) => { | |
if (name.length > 5) { | |
return true; | |
} | |
throw new Error("My Error"); | |
} | |
const name = 'piyo' | |
// |
NewerOlder