Step 0:
Get Homebrew installed on your mac if you don't already have it
Step 1:
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Service Worker - offline support for the web
Progressive apps - high-res icon, splash screen, no URL bar, etc.
var hrtime = (function(){ | |
if (typeof window !== 'undefined'){ | |
// browser | |
if (typeof window.performance !== 'undefined' && typeof performance.now !== 'undefined'){ | |
// support hrt | |
return function(){ | |
return performance.now(); | |
}; | |
}else{ | |
// oh no.. |
/** | |
* 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 null; } | |
else { return results[1] || 0; } | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |