Skip to content

Instantly share code, notes, and snippets.

suntong

Block or report user

Report or block suntong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skarllot
skarllot / enum.go
Created Jun 18, 2015
Enum-like types for Go (golang) that provides string representation
View enum.go
package main
import "fmt"
var enums []string
type Enum int
func (e Enum) String() string {
return enums[int(e)]
@magicznyleszek
magicznyleszek / css-selectors.md
Last active Nov 14, 2019
CSS Selectors Cheatsheet
View css-selectors.md

CSS Selectors Cheatsheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
    foo: bar;
You can’t perform that action at this time.