Skip to content

Instantly share code, notes, and snippets.

View ffakira's full-sized avatar
🤔
Thinking

Akira Fukushima ffakira

🤔
Thinking
  • 22.3193° N, 114.1694° E
  • 16:30 (UTC +08:00)
  • X @_akiraff
View GitHub Profile
@bmaupin
bmaupin / free-backend-hosting.md
Last active May 22, 2024 02:17
Free backend hosting
@mrnugget
mrnugget / go-sqlite3_database_is_locked.go
Created March 3, 2016 05:58
Program that tests the concurrency issues with go-sqlite3. This will create two tables: `products` and `users`. One goroutine will repeatedly read from the `products` table in N fresh goroutines. At the same time ONE goroutine writes to the other table.
package main
import (
"database/sql"
"fmt"
"log"
"math/rand"
"sync"
"time"