Skip to content

Instantly share code, notes, and snippets.

jainprash

Block or report user

Report or block jainprash

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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

@jainprash
jainprash / gist:41deee0141fb1eff6491
Last active Aug 29, 2015
Debug your CSS layers - By Addy Osmani
View gist:41deee0141fb1eff6491
window.$$ = $$;
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
});
View 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 / SassMeister-input-HTML.jade
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.jade
<html>
<head></head>
<body class="container">HELLO</body>
</html>
@jainprash
jainprash / SassMeister-input-HTML.html
Created Oct 22, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<html>
<head></head>
<body class=".container">HELLO</body>
</html>
You can’t perform that action at this time.