How to create a sbt project.
- Prepare the setup.sh file
- Make an executable out of it:
chmod +ux setup.sh - Run the setup
./setup.sh
| const compress = new Compress() | |
| const upload = document.getElementById('upload') | |
| upload.addEventListener('change', (evt) => { | |
| const files = [...evt.target.files] | |
| compress.compress(files, { | |
| size: 4, // the max size in MB, defaults to 2MB | |
| quality: 0.75, // the quality of the image, max is 1, | |
| maxWidth: 1920, // the max width of the output image, defaults to 1920px |
| brew tap brona/iproute2mac | |
| brew install iproute2mac |
| sbt new playframework/play-scala-seed.g8 |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/lib/pq" | |
| ) | |
| func getBook(bookID int) (Book, error) { |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func email() { | |
| } | |
| func slack() { |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| c := make(chan bool) | |
| start := time.Now() |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| func main() { | |
| m := &sync.Mutex{} | |
| wg := &sync.WaitGroup{} |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| func main() { | |
| wg := &sync.WaitGroup{} | |
| wg.Add(100) |
| package main | |
| // Answer: 25164150 | |
| // Find the difference between the sum of the squares | |
| // of the first one hundred natural numbers and the square of the sum. | |
| import ( | |
| "fmt" | |
| "math" | |
| ) |