model
: gpt-3.5-turbo-0301
万物理論について教えてください
package main | |
import "fmt" | |
func Permutations(cards []int) <-chan []int { | |
ch := make(chan []int) | |
go func() { | |
defer close(ch) | |
perm(ch, make([]int, 0, len(cards)), cards) | |
}() |
builds: | |
- env: | |
- GO111MODULE=on |
"*": | |
core: | |
customFileTypes: | |
"source.perl6": [ | |
"pl" | |
"cgi" | |
] |
use strict; | |
use warnings; | |
my $a = 1; | |
my @a = (1, 2); | |
sub a { 3 }; | |
if ($a == 1 and @a == 2 and &a == 3) { | |
print "True!\n"; | |
} |
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
var regxNewline = regexp.MustCompile(`\r\n|\r|\n`) //throw panic if fail | |
func convNewline(str, nlcode string) string { |
package godump | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
) | |
//DumpBytes returns []bytes literal string | |
func DumpBytes(r io.Reader, name string) (io.Reader, error) { |
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
) | |
func main() { | |
octets := []byte{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07} |