$ cd node-mkdirp
$ node
var deep = require('../es-deps-deep')
deep('./index.js').then(console.log).catch(console.error)
Promise { <pending> }
[ { requested: null,
from: null,
resolved: '/Users/iamstarkov/projects/node-mkdirp/index.js' },
{ requested: 'path',
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
/* broken inlined button, FF */ | |
.btn { | |
all: initial; | |
background: red; | |
} | |
/* fix for 140562 https://bugzilla.mozilla.org/show_bug.cgi?id=140562 */ | |
.btn::-moz-focus-inner { all: initial; } | |
.btn.ib { display: inline-block; } |
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 toArray = iterables => { | |
var res = []; | |
for (var i = 0; i < iterables.length; i++) { | |
res[i] = iterables[i]; | |
} | |
return res; | |
} | |
const query = selector => toArray(document.querySelectorAll(selector)); |
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
class CoffeeMachine { | |
constructor(power) { | |
this.power = power; | |
this.WATER_HEAT_CAPACITY = 4200; | |
this.waterAmount = 0; | |
console.log(`Создана кофемашина мощностью ${power} ватт`); | |
} | |
onReady() { | |
console.log('кофе готов!') |
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 debug pnpm:mkdirp: "/Users/iamstarkov/projects/mapbox-gl-js/node_modules/.store" | |
1 debug pnpm:install: "installing runas" | |
2 progress runas: "resolving" | |
3 debug pnpm:http: "https://registry.npmjs.org/runas" | |
4 progress runas: | |
- "resolved" | |
- | |
spec: | |
raw: "runas" |
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
/* | |
sup /js/ | |
i wanna share some functional programming knowledge in application to JS tooling, | |
more specially bundling (not really, but close). | |
I will try to cover some fp topics, like: | |
* why does it mean "functional" | |
* pureness, side-effects | |
* what is currying |
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
exports.decorateConfig = (config, env) => { | |
env.notify('sup /hyperterm/'); | |
}; |
inspired by https://github.com/tonsky/alabaster-lighttable-skin#readme
Before | After |
---|---|