This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// Blend colors with alpha channel to solid color | |
@function rgba_blend($fore, $back) { | |
$ored: ((1 - alpha($fore)) * red($back) ) + (alpha($fore) * red($fore)); | |
$ogreen: ((1 - alpha($fore)) * green($back) ) + (alpha($fore) * green($fore)); | |
$oblue: ((1 - alpha($fore)) * blue($back) ) + (alpha($fore) * blue($fore)); | |
@return rgb($ored, $ogreen, $oblue); |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$acolor: rgba(#040708, 0.76); | |
@function rgba_blend($fore, $back) { | |
$ored: ((1 - alpha($fore)) * red($back) ) + (alpha($fore) * red($fore)); | |
$ogreen: ((1 - alpha($fore)) * green($back) ) + (alpha($fore) * green($fore)); | |
$oblue: ((1 - alpha($fore)) * blue($back) ) + (alpha($fore) * blue($fore)); |
This file contains hidden or 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" | |
"html/template" | |
"os" | |
"strings" | |
) | |
type Person struct { | |
Name string |
This file contains hidden or 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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
.asset-edit-table { | |
width: 100%; | |
&__row { | |
width: 100%; | |
} | |
&__left-side { |
This file contains hidden or 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" | |
"sync" | |
) | |
// Send words onto a channel until we receive on the done channel | |
func emit(wch chan string, dch chan struct{}, wg *sync.WaitGroup) { | |
words := []string{"The", "quick", "brown", "fox"} |
This file contains hidden or 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 Car | |
def initialize(color, make, model) | |
@color, @make, @model = color, make, model | |
# new implicitly returns self | |
end | |
def color; puts @color; self; end | |
def make; puts @make; self; end |
NewerOlder