View file0.go
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" | |
func Permutations(cards []int) <-chan []int { | |
ch := make(chan []int) | |
go func() { | |
defer close(ch) | |
perm(ch, make([]int, 0, len(cards)), cards) | |
}() |
View .goreleaser.yml
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
builds: | |
- env: | |
- GO111MODULE=on |
View config.cson
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
"*": | |
core: | |
customFileTypes: | |
"source.perl6": [ | |
"pl" | |
"cgi" | |
] |
View file0.pl
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
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"; | |
} |
View file0.go
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" | |
"regexp" | |
) | |
var regxNewline = regexp.MustCompile(`\r\n|\r|\n`) //throw panic if fail | |
func convNewline(str, nlcode string) string { |
View file0.go
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 godump | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
) | |
//DumpBytes returns []bytes literal string | |
func DumpBytes(r io.Reader, name string) (io.Reader, error) { |
View file0.go
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 ( | |
"encoding/binary" | |
"fmt" | |
) | |
func main() { | |
octets := []byte{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07} |
View file0.rb
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 Taiyaki | |
def atama | |
puts "たい焼きの頭の方にはあんこがいっぱい入っている" | |
end | |
def shippo | |
puts "たい焼きの尻尾にはあんこがほとんど入っていない" | |
puts "しかしカリカリしていて美味しい" | |
end | |
end |
View file0.go
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" | |
"time" | |
) | |
func main() { | |
tm := time.Date(2017, 1, 31, 0, 0, 0, 0, time.UTC) | |
for i := 0; i < 6; i++ { |
View file1.txt
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 run pf.go 2017 2 | |
24 |
NewerOlder