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
const curry = fn => (...args) => args.length < fn.length | |
? (...rest) => curry(fn)(...args, ...rest) | |
: fn(...args); | |
const applyTo = curry( (x, fn) => fn(x) ); | |
const pipe = (headFN, ...restFns) => (...args) => restFns.reduce(applyTo, headFN(...args)); | |
const prop = curry( (key, x) => x[key] ); | |
const equals = curry( (x, y) => x === y ); | |
const startsWith = curry( (str, x) => x.indexOf(str) === 0 ); |
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
const prep = x => x.trim().replace(/\s+/gim, ' ').replace(' latest', ':').replace('❯◯', 'bump') |
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
// some fp boilerplate | |
const map = fn => xs => xs.map(fn); | |
const reduce = (fn, init) => xs => xs.reduce(fn, init); | |
const concat = (a, b) => a.concat(b); | |
/* or in a library */ | |
const R = require('ramda'); | |
// async helpers | |
const toPromise = x => Promise.resolve(x); |
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
module.exports = { | |
keymaps: { | |
'tab:prev': 'ctrl+shift+tab', | |
'tab:next': 'ctrl+tab', | |
'pane:prev': 'alt+cmd+left', | |
'pane:next': 'alt+cmd+right', | |
}, | |
config: {}, | |
}; |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks | |
fontFamily: 'Fira Code', | |
uiFontFamily: 'Fira Code', | |
// terminal cursor background color (hex) |
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
body { background: red; } | |
@supports (-webkit-overflow-scrolling: touch) { | |
body { | |
background: green; | |
} | |
} |
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
body { background: red; } | |
@supports (-webkit-overflow-scrolling: touch) { | |
body { | |
background: green; | |
} | |
} |
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
body { background: red; } | |
@supports (-webkit-overflow-scrolling: touch) { | |
body { | |
background: green; | |
} | |
} |
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
div { | |
margin: 30px auto; | |
width: 500px; | |
border: 1px solid green; | |
border-radius: 15px; | |
position: relative; | |
padding: 10px; | |
} | |
div::before { |
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
type BorderStyle = oneOf(['solid', 'dotted', … ]) | |
type Unit = oneOf([ 'px', 'em', 'rem', … ]) | |
type Width = oneOfType([ | |
type Number, | |
`${type Number}{type Unit}` | |
]) | |
type BorderWidth = inherits Width; | |
type Color = oneOfType([ | |
type ColorHex, |