Skip to content

Instantly share code, notes, and snippets.

View matiascarranza's full-sized avatar

Matias Carranza matiascarranza

View GitHub Profile
module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({});
grunt.registerTask('default', []);
}
var uniqueArray = duplicatesArray.filter(function(elem, pos) {
return duplicatesArray.indexOf(elem) == pos;
});
@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) {
@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