This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "fmt" | |
func main() { | |
fmt.Printf("Hello World..\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// next returns the next paths that can be used to make progress. | |
// Look at top, left, right, down, skipping 'from' and returns all the possibilities. | |
func (c *Canvas) next(at, from image.Point) []image.Point { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### IDLE | |
## Tree: Orange stars | |
{ | |
"C": "#ff9000", | |
"_type": "NightStars" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Curve": "ease-out", | |
"Patterns": [ | |
{ | |
"Child": { | |
"Frame": "L00001f1f1f1f", | |
"_type": "Repeated" | |
}, | |
"MovePerHour": 21600, | |
"_type": "Rotate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Create the two files enable_spi.service and enable_spi.timer in /etc/systemd/system/ | |
- Run the following: | |
sudo systemctl daemon-reload | |
sudo systemctl enable enable_spi.timer | |
sudo systemctl start enable_spi | |
/dev/spidev32766.0 should now be visible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maruel@periph-io /var/lib/docker/web/periph.io/www $ stat -c "%6s %n" $(find ./ -type f -name "*.html*" | sort) | |
69 ./apps/examples/index.html | |
55 ./apps/examples/index.html.br | |
85 ./apps/examples/index.html.gz | |
78 ./apps/index.html | |
59 ./apps/index.html.br | |
92 ./apps/index.html.gz | |
23291 ./device/apa102/index.html | |
5622 ./device/apa102/index.html.br | |
6559 ./device/apa102/index.html.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"os/signal" | |
"time" | |
"periph.io/x/periph" | |
"periph.io/x/periph/conn/gpio" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -bench=. | |
goos: linux | |
goarch: amd64 | |
pkg: foo | |
BenchmarkAnonymousFunction-32 2000000000 0.86 ns/op | |
BenchmarkClosure-32 1000000000 2.26 ns/op | |
BenchmarkNormalFunction-32 2000000000 0.78 ns/op | |
BenchmarkNormalFunctionNotInline-32 500000000 2.34 ns/op | |
BenchmarkReturnedFunction-32 1000000000 2.36 ns/op | |
PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -bench=m. | |
goos: linux | |
goarch: arm | |
BenchmarkAnonymousFunction-4 100000000 10.0 ns/op | |
BenchmarkClosure-4 100000000 15.3 ns/op | |
BenchmarkNormalFunction-4 100000000 10.0 ns/op | |
BenchmarkNormalFunctionNotInline-4 30000000 51.9 ns/op | |
BenchmarkReturnedFunction-4 30000000 57.6 ns/op | |
BenchmarkReturnedFunctionRepeated-4 20000000 78.5 ns/op | |
PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go install ./periph-info ./headers-list && headers-list && periph-info | |
I2C: 4 pins | |
Pos Name Func | |
1 GROUND | |
2 V3_3 | |
3 GPIO12 In/Low | |
4 GPIO13 In/Low | |
J1: 6 pins | |
Pos Name Func |
OlderNewer