Skip to content

Instantly share code, notes, and snippets.

View joevbruno's full-sized avatar
🏠
Working from home

Joe Bruno joevbruno

🏠
Working from home
View GitHub Profile

Keybase proof

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:

@joevbruno
joevbruno / .babelrc
Created June 7, 2017 23:23 — forked from c9s/.babelrc
webpack + babel + typescript + es6 - total solutions!
{
"presets": ["es2015"],
"plugins": ["transform-runtime"]
}

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

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
@joevbruno
joevbruno / style.scss
Created January 12, 2016 18:40 — forked from certainlyakey/style.scss
Recolorable SVG SASS mixin
//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';