I hereby claim:
- I am joevbruno on github.
- I am joevbruno (https://keybase.io/joevbruno) on keybase.
- I have a public key ASA0KA_eJuInD7Xb4b4r_sqW0Gd9HO-u1anZMGzonXCCXwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-runtime"] | |
} |
Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
//use http://codepen.io/yoksel/details/JDqvs/ to get URL encoded path | |
@mixin recolorable-svg($encodedpath, $width, $height, $fill_color:black, $stroke_color:false, $stroke_width:1, $prop:'background-image') { | |
// $fill_color: rgba($fill_color,.99); | |
// $stroke_color: rgba($stroke_color,.99); | |
$svgdata: '%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20%20%20width%3D%22' + $width + '%22%20height%3D%22' +$height + '%22%3E%0A%20%20%3Cpath%20d%3D%22'; | |
$stroke_attr: ''; | |
@if $stroke_color != false { | |
$stroke_attr: '%20stroke%3D%22' + encodecolor($stroke_color) + '%22%20' + '%20stroke-width%3D%22' + $stroke_width + '%22%20'; | |
} | |
$svgdata: $svgdata + $encodedpath + '%22' + $stroke_attr + '%20fill%3D%22' + encodecolor($fill_color) + '%22/%3E%0A%3C/svg%3E'; |