Skip to content

Instantly share code, notes, and snippets.

View RavenZZ's full-sized avatar
🎯
Focusing

Raven RavenZZ

🎯
Focusing
View GitHub Profile
IMAGE=debian
wget -q https://registry.hub.docker.com/v1/repositories/$(IMAGE)/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
@RavenZZ
RavenZZ / zeromq-vs-redis.md
Created September 5, 2017 01:49 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements:

@RavenZZ
RavenZZ / GoMgoSample-1.go
Created August 9, 2017 08:01 — forked from ardan-bkennedy/GoMgoSample-1.go
Sample Go and MGO example
type (
// BuoyCondition contains information for an individual station.
BuoyCondition struct {
WindSpeed float64 `bson:"wind_speed_milehour"`
WindDirection int `bson:"wind_direction_degnorth"`
WindGust float64 `bson:"gust_wind_speed_milehour"`
}
// BuoyLocation contains the buoy's location.
BuoyLocation struct {
@RavenZZ
RavenZZ / merge_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/merge_sort.go
Merge Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
sortedItems := mergeSort(items)
fmt.Println(sortedItems)
@RavenZZ
RavenZZ / comb_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/comb_sort.go
Comb Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
combsort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / shellsort.go
Created July 12, 2017 03:29 — forked from RichardKnop/shellsort.go
Shellsort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
shellshort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / insertion_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/insertion_sort.go
Insertion Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
insertionSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / selection_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/selection_sort.go
Selection Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
selectionSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / bubble_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/bubble_sort.go
Bubble Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
bubbleSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / .sh
Created March 20, 2017 03:37
change permition
sudo chown -R $(whoami):admin /usr/local