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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
" call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
html, body { | |
font-size: calc(44px - (2vw)); | |
} |
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
var fpIncludes = _.curry( function (val, list) { return _.includes(list, val); } ); | |
// or use lodash/fp's includes instead | |
var prop = _.curry( function (val, obj) { return _.get(obj, val); } ); | |
var propOr = _.curry( function (def, val, obj) { return _.get(obj, val, def); } ); | |
var checkForAorD = _.cond([ | |
[fpIncludes('a'), _.constant('matches A')], | |
[fpIncludes('d'), _.constant('matches D')], | |
[_.stubTrue, _.constant('no match')] | |
]); |
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
// data | |
const types = [ | |
'typeA', | |
'typeB', | |
'typeC', | |
'all', | |
'typeD' | |
]; | |
const a = ['a', 'b', 'c', 'd']; | |
const b = ['e', 'f']; |
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
const words = [] | |
R.compose( | |
S.toUpper, | |
S.fromMaybe('x'), | |
S.head | |
)(words) | |
// or | |
S.toUpper(S.fromMaybe('x', S.head(words))) |
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
// can run in the ramda REPL http://ramdajs.com/repl/ | |
const double = (x) => R.add(x, x) | |
const clonewithbase = (base) => R.compose( | |
R.concat([base]), | |
R.clone | |
); | |
const applyFnsToList = (baseCase) => (fn1) => (fn2) => (arr) => { |
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
// can use sassfp instead, but adding these here so they can work in sassmeister | |
@function applyUnit($unit, $val) { | |
@return unquote('#{$val}#{$unit}'); | |
} | |
// shortcut function to apply px unit | |
@function px($val) { | |
@return applyUnit('px', $val); |
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
// Utils | |
const curry = (fn) => (...xs) => { | |
if (xs.length >= fn.length) { | |
return fn(...xs); | |
} | |
return curry(fn.bind(null, ...xs)); | |
}; |
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
https://jsfiddle.net/d3zaech4/ |
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
0 1 2 3 4 5 6 7 8 9 A B C D E F | |
U+250x ─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏ | |
U+251x ┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟ | |
U+252x ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯ | |
U+253x ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻ ┼ ┽ ┾ ┿ | |
U+254x ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏ |