Skip to content

Instantly share code, notes, and snippets.

View matiascarranza's full-sized avatar

Matias Carranza matiascarranza

View GitHub Profile
@matiascarranza
matiascarranza / gist:04e5dd9567776b1c09c8
Created September 29, 2014 15:46
Open Chrome with security disabled
## how to work with non allowed CORS
# Windows
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --disable-web-security
# MAC
open /Application/Google \Chrome.app --args --disable-web-security
@matiascarranza
matiascarranza / gremling bookmarklet
Created September 30, 2014 17:45
Unleash the Gremlings
// Bookmarklet Gremling
javascript: (function() {
function callback() {
gremlins.createHorde().unleash()
}
var s = document.createElement("script");
s.src = "https://rawgithub.com/marmelab/gremlins.js/master/gremlins.min.js";
if (s.addEventListener) {
s.addEventListener("load", callback, false)
} else if (s.readyState) {
var uniqueArray = duplicatesArray.filter(function(elem, pos) {
return duplicatesArray.indexOf(elem) == pos;
});
module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({});
grunt.registerTask('default', []);
}
@matiascarranza
matiascarranza / iframe.html
Last active August 29, 2015 14:12
POST data to iframe
<iframe id="iframe" src="" class="iframe" seamless="" name="iframe"></iframe>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=Content-type content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div id=container>
<ul>
@matiascarranza
matiascarranza / HTML5 AppCache info
Last active August 29, 2015 14:17
some interesting links
http://codebits.glennjones.net/appcache/network/index.html
https://github.com/canvace/grunt-appcache
https://kjpgit.github.io/posts/the-html5-appcache-is-the-new-bootloader.html
http://www.html5rocks.com/en/tutorials/appcache/beginner/
http://flailingmonkey.com/application-cache-not-a-douchebag/
https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache
http://diveintohtml5.info/offline.html
http://alistapart.com/article/application-cache-is-a-douchebag
/**
* Simply compares two string version values.
*
* Example:
* versionCompare('1.1', '1.2') => -1
* versionCompare('1.1', '1.1') => 0
* versionCompare('1.2', '1.1') => 1
* versionCompare('2.23.3', '2.22.3') => 1
*
* Returns:

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

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.

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]