Skip to content

Instantly share code, notes, and snippets.

View shapkarin's full-sized avatar
🔍
looking for a job

Shapkarin shapkarin

🔍
looking for a job
View GitHub Profile
@shapkarin
shapkarin / infinite.js
Last active April 23, 2019 22:48 — forked from jebeck/infinite.js
infinite interactivity with Inquirer and RxJS's Subject
// run with `node infinite.js` in node v4.x+
// must have Inquirer installed (`npm install inquirer`)
const inquirer = require('inquirer');
const Rx = require('rx');
const prompts = new Rx.Subject();
function makePrompt(msg, i) {
return {
@shapkarin
shapkarin / transparency.styl
Last active August 29, 2015 14:06 — forked from hellosmithy/transparency.styl
Cross-browser alpha transparent background CSS (rgba) Stylus mixin (forked to save)
// background transparency
background-transparency(color, alpha = 1)
ms-color = argb(color, alpha)
background rgb(color)
background rgba(color, alpha)
.lt-ie8 &
zoom 1
.lt-ie9 &
background transparent
filter s('progid:DXImageTransform.Microsoft.gradient(startColorstr=%s,endColorstr=%s)', ms-color, ms-color)