Skip to content

Instantly share code, notes, and snippets.

View padurean's full-sized avatar

Valentin Padurean (Ogg) padurean

View GitHub Profile
@padurean
padurean / stringToReaderCloser.go
Created September 27, 2022 11:34 — forked from crgimenes/stringToReaderCloser.go
string to io.ReadCloser
package main
import (
"bytes"
"fmt"
"io"
"os"
"strings"
)
@padurean
padurean / README.md
Created March 8, 2023 11:42 — forked from nitaku/README.md
Markdown sidenotes

Test sidenote1 blah.

Footnotes

  1. Bah.

@padurean
padurean / print-memory.go
Created September 5, 2024 09:50 — forked from rdyv/print-memory.go
Go print current memory
package main
import (
"runtime"
"fmt"
"time"
)
func main() {
// Print our starting memory usage (should be around 0mb)
@padurean
padurean / Notes-syntax-in-GitHub-markdown.md
Last active October 30, 2024 23:29
Notes syntax in GitHub markdown

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

[!WARNING]