Skip to content

Instantly share code, notes, and snippets.

View jjuliano's full-sized avatar

Joel Bryan Juliano jjuliano

View GitHub Profile
# dump
# version
# Betaflight / STM32F411 (S411) 4.3.0 May 13 2022 / 12:29:08 (b2deec171) MSP API: 1.44
# config: manufacturer_id: GEPR, board_name: GEPRCF411, version: 7b156dec, date: 2021-07-26T13:19:23Z
# start the command batch
batch start
board_name GEPRCF411
class Dog
def initialize(breed)
@breed = breed
end
def kind
@breed
end
end
package main
import "fmt"
type dog struct {
breed string
}
func main() {
kind := dog{
module Coffee
def types
[
"espresso",
"cappuccino",
"macchiato"
]
end
end
package main
import (
"fmt"
"local/coffee"
)
func main() {
menu()
package coffee
func Types() []string {
types := []string{"espresso", "cappuccino", "macchiato"}
return types
}
var array [SIZE]string
array = []
array[0] = "foo"
array << "bar"
puts array[0] #> foo
puts array[1] #> bar
array #> ["foo", "bar"]
const MAX_ARRAY_SIZE = 2
var array [MAX_ARRAY_SIZE]string
array[0] = "foo"
array[1] = "bar"
fmt.Println(array[0])
fmt.Println(array[1])
fmt.Println(array)
// foo
array := make([]string, SIZE)