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
# 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 |
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
class Dog | |
def initialize(breed) | |
@breed = breed | |
end | |
def kind | |
@breed | |
end | |
end |
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 "fmt" | |
type dog struct { | |
breed string | |
} | |
func main() { | |
kind := dog{ |
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
module Coffee | |
def types | |
[ | |
"espresso", | |
"cappuccino", | |
"macchiato" | |
] | |
end | |
end |
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 ( | |
"fmt" | |
"local/coffee" | |
) | |
func main() { | |
menu() |
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 coffee | |
func Types() []string { | |
types := []string{"espresso", "cappuccino", "macchiato"} | |
return types | |
} |
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
var array [SIZE]string |
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
array = [] | |
array[0] = "foo" | |
array << "bar" | |
puts array[0] #> foo | |
puts array[1] #> bar | |
array #> ["foo", "bar"] |
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
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 |
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
array := make([]string, SIZE) |
NewerOlder