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
import {Component, Inputs, InputDefault, html, css} from '@angular/core' | |
export class MySampleComponent implements Component { | |
#title = "world!"; | |
selector: 'app-my-sample-component`; | |
css = css` | |
ul { | |
list-style: none | |
} | |
`; |
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
// Functional helpers, curry and compose | |
function curry(fn, ...args) { | |
let _curry = (args) => args.length < fn.length ? (..._args) => _curry([...args, ..._args]) : fn(...args); | |
return _curry(args); | |
} | |
const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))); | |
const map = curry((fn, value) => value.map(fn)); | |
const reduce = curry((fn, value) => value.reduce(fn)); | |
// ----- end of functional helpers |
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.0.1) | |
// ---- | |
$color-amber: ( | |
'50': #fff8e1, | |
'100': #ffecb3, | |
'200': #ffe082, | |
'300': #ffd54f, |