Skip to content

Instantly share code, notes, and snippets.

View iamstarkov's full-sized avatar
🔥

Vladimir Starkov iamstarkov

🔥
View GitHub Profile
@iamstarkov
iamstarkov / dabblet.css
Last active February 14, 2017 12:20
broken inlined button, FF
/* 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; }
@iamstarkov
iamstarkov / let.js
Last active November 11, 2016 21:10 — forked from anonymous/let.js
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));
class CoffeeMachine {
constructor(power) {
this.power = power;
this.WATER_HEAT_CAPACITY = 4200;
this.waterAmount = 0;
console.log(`Создана кофемашина мощностью ${power} ватт`);
}
onReady() {
console.log('кофе готов!')
---
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"
/*
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
exports.decorateConfig = (config, env) => {
env.notify('sup /hyperterm/');
};
$ 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',
@iamstarkov
iamstarkov / README.md
Last active September 2, 2016 10:32
Stretched atom's tabs
@iamstarkov
iamstarkov / README.md
Last active April 27, 2016 13:47
Simplified atom's tree-view