Skip to content

Instantly share code, notes, and snippets.

View fujimaki-k's full-sized avatar

fujimaki-k fujimaki-k

  • FujimakiShouten
View GitHub Profile
@fujimaki-k
fujimaki-k / concurrent.go
Created May 3, 2023 02:43
Concurrent example
package main
import (
"errors"
"fmt"
"runtime"
"sync"
)
// Concurrent is concurrently execute tasks for number of CPUs.
@fujimaki-k
fujimaki-k / concurrent.go
Created May 3, 2023 02:44
Alternative concurrent example
package main
import (
"errors"
"fmt"
"runtime"
"sync"
)
// Concurrent is concurrently execute tasks for number of CPUs.
@fujimaki-k
fujimaki-k / normalize.go
Created May 3, 2023 02:53
Unicode string normalization example
package main
import (
"fmt"
"regexp"
"strings"
"golang.org/x/text/unicode/norm"
)
@fujimaki-k
fujimaki-k / args.sh
Last active December 10, 2024 06:29
Parse command line arguments.
#!/bin/sh
# vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
set -Ceu
VERSION="1.0.0"
NAME="Honoka"