Skip to content

Instantly share code, notes, and snippets.

View xantiagoma's full-sized avatar

Santiago Montoya A. xantiagoma

View GitHub Profile
@xantiagoma
xantiagoma / sketch-never-ending.md
Created August 8, 2019 02:23 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@xantiagoma
xantiagoma / esnextbin.md
Created March 6, 2019 15:51 — forked from peduarte/esnextbin.md
Vanilla Debounce
/**
* Returns value of specified URL parameter.
* @param {String} name Query parameter to return value of.
* @return {String} String of query parameter or null / 0.
*/
getUrlParameter = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#?]*)').exec(window.location.href);
if (results==null){ return undefined; }
else { return results[1] || 0; }
}