Skip to content

Commit af9f3f0

Browse files
committed
blog
1 parent ee65122 commit af9f3f0

File tree

171 files changed

+3913
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+3913
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "writeups/themes/terminal"]
2+
path = writeups/themes/terminal
3+
url = https://github.com/panr/hugo-theme-terminal.git
4+
[submodule "writeups/themes/hugo-embed-pdf-shortcode"]
5+
path = writeups/themes/hugo-embed-pdf-shortcode
6+
url = https://github.com/anvithks/hugo-embed-pdf-shortcode.git

writeups/.hugo_build.lock

Whitespace-only changes.
214 KB
26 KB
15.8 KB
6.08 KB
42.2 KB
46.3 KB
Lines changed: 119 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default function generatePasscode() {
2+
const chars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
3+
for (let i = 0; i < chars.length - 1; i++) {
4+
let temp = chars[i];
5+
let j = Math.floor(Math.random() * (chars.length - i)) + i;
6+
chars[i] = chars[j];
7+
chars[j] = temp;
8+
}
9+
return chars.join("");
10+
}

0 commit comments

Comments
 (0)