Skip to content

Instantly share code, notes, and snippets.

View AGMETEOR's full-sized avatar
💭
Debugging life

AGMETEOR

💭
Debugging life
View GitHub Profile
@AGMETEOR
AGMETEOR / main.go
Created January 4, 2021 18:13
Go channel generator functions with multiplexing
// support for arbitrary number of channels of type string
func nonDeterministicChanMultiPlexer(channels ...chan string) <-chan string {
outChan := make(chan string)
for _, c := range channels {
go func(cc chan string) {
for {
outChan <- <-cc
}
}(c)
@AGMETEOR
AGMETEOR / go_build_man.md
Created January 11, 2020 08:48 — forked from mmcdaris/go_build_man.md
going through the go build command

usage

go build: compiles the packages named by the import paths, along with their dependencies, the binary does not end up in $GOPATH/bin it gets created in the dirs

go build [-o output] [build flags] [packages]

If the [packages] are a list of .go files, build treats them as a list of source files specifying a single package.

@AGMETEOR
AGMETEOR / SCSS.md
Created January 24, 2019 15:49 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso