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
#content_sub iframe[id^="baidu_clb"] { | |
-webkit-transform: scale(0.6); | |
-webkit-transform-origin: 100% 100%; | |
} | |
#content_sub div[id^="baidu_clb"] { | |
margin-left: -95px; | |
margin-top: -40px; | |
} |
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
/* from http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/ */ | |
/* one item */ | |
li:first-child:nth-last-child(1) { | |
width: 100%; | |
} | |
/* two items */ | |
li:first-child:nth-last-child(2), | |
li:first-child:nth-last-child(2) ~ li { |
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
.ir { | |
overflow: hidden; | |
*text-indent: -999em; | |
} | |
.ir:before { | |
content: ""; | |
display: block; | |
width: 0; | |
height: 100%; |
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
# -------------------------------------------------------------------------------------------------------------------------------------- # | |
# # | |
# __----~~~~~~~~~~~------___ | 🌈 | # | |
# . . ~~//====...... __--~ ~~ | | _oo0oo_ # | |
# -. \_|// |||\\ ~~~~~~::::... /~ | ⤌ | o8888888o # | |
# ___-==_ _-~👁 ~ \/ ||| \\ _/~~- | 左 | 88" . "88 # | |
# __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~ | | (| -_- |) # | |
# _-~~ .=~ | \\-_ '-~7 /- / || \ |
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 ( | |
"golang.org/x/tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
m := make(map[string]int) | |
words := strings.Fields(s) |
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" | |
"golang.org/x/tour/pic" | |
) | |
func Pic(dx, dy int) [][]uint8 { | |
p := make([][]uint8, dy) |
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" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
num, add := 1, -1 | |
return func() int { | |
num, add = num+add, num |
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" | |
"strconv" | |
"strings" | |
) | |
type IPAddr [4]byte |
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 CSS variable safety | |
@mixin use-var($property, $value, $fallback: false, $compatible-mode: false) { | |
// if fallback value given | |
@if $fallback { | |
// if need compatible selector | |
@if $compatible-mode { | |
@if type-of($compatible-mode) == string { | |
#{$property}: var(--#{$value}, #{$fallback}); | |
#{$compatible-mode} & { |