Skip to content

Instantly share code, notes, and snippets.

View matiascarranza's full-sized avatar

Matias Carranza matiascarranza

View GitHub Profile
@matiascarranza
matiascarranza / gist:377167a3fb3cfd3613c692929288c19b
Created June 2, 2016 19:30 — forked from toddmotto/gist:6596373
Disable Web Security in Chrome Canary to make cross-domain XHR requests (local servers obvs).
open -a Google\ Chrome\ Canary --args --disable-web-security
on its own does not work anymore. You need to use it with --user-data-dir:
open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir=$HOME/profile-folder-name
http://stackoverflow.com/a/34680023/368691
@matiascarranza
matiascarranza / README.md
Created May 6, 2016 23:36 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh

@matiascarranza
matiascarranza / happy_git_on_osx.md
Created February 29, 2016 15:37 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "[email protected]"

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

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.

/**
* 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:
@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
<!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 / iframe.html
Last active August 29, 2015 14:12
POST data to iframe
<iframe id="iframe" src="" class="iframe" seamless="" name="iframe"></iframe>