Skip to content

Instantly share code, notes, and snippets.

@jainprash
jainprash / SassMeister-input-HTML.html
Created October 22, 2014 21:43
Generated by SassMeister.com.
<html>
<head></head>
<body class=".container">HELLO</body>
</html>
@jainprash
jainprash / SassMeister-input-HTML.jade
Last active August 29, 2015 14:08
Generated by SassMeister.com.
<html>
<head></head>
<body class="container">HELLO</body>
</html>
@jainprash
jainprash / introrx.md
Last active August 29, 2015 14:07 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@jainprash
jainprash / gist:41deee0141fb1eff6491
Last active August 29, 2015 14:07
Debug your CSS layers - By Addy Osmani
window.$$ = $$;
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
});
@jainprash
jainprash / README.md
Last active August 29, 2015 14:07 — forked from addyosmani/README.md

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version