Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
Spec | |
http://es5.github.io Annotated ECMAScript 5.1 | |
Books | |
JavaScript: The Definitive Guide, David Flanagan | |
JavaScript: The Good Parts, Douglas Crockford | |
Secrets of the JavaScript Ninja, John Resig | |
Pro JavaScript Techniques, John Resig | |
https://github.com/getify/You-Dont-Know-JS You Don't Know JS | |
http://bonsaiden.github.io/JavaScript-Garden/ JavaScript Garden |
function getUrlParameters(parameter, staticURL, decode){ | |
var currLocation = (staticURL.length)? staticURL : window.location.search, | |
parArr = currLocation.split("?")[1].split("&"), | |
returnBool = true; | |
for(var i = 0; i < parArr.length; i++){ | |
parr = parArr[i].split("="); | |
if(parr[0] == parameter){ | |
return (decode) ? decodeURIComponent(parr[1]) : parr[1]; | |
returnBool = true; |
var defaults = { validate: false, limit: 5, name: "foo" }; | |
var options = { validate: true, name: "bar" }; | |
var settings = $.extend({}, defaults, options); | |
// settings | |
// {validate: true, limit: 5, name: "bar"} |
function insertUrlParams(uri, key, value) { | |
var re = new RegExp("([?|&])" + key + "=.*?(&|$)", "i"); | |
separator = uri.indexOf('?') !== -1 ? "&" : "?"; | |
if (uri.match(re)) { | |
return uri.replace(re, '$1' + key + "=" + value + '$2'); | |
} | |
else { | |
return uri + separator + key + "=" + value; | |
} | |
} |
function hasClass(el, className) { | |
if (el.classList) | |
return el.classList.contains(className) | |
else | |
return !!el.className.match(new RegExp('(\\s|^)' + className + '(\\s|$)')) | |
} | |
function addClass(el, className) { | |
if (el.classList) | |
el.classList.add(className) |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
I'll start with the basics and proceed to addressing the common problems | |
faced while setting up private channels with laravel-echo & laravel-echo-server. | |
If you are getting these errors while setup; 401, 403, 419 etc, as I did in my experience. | |
this gist will help you fix these errors. | |
Although this gist addresses common problems of laravel-echo-server setup, some problems are similar with Pusher setup. | |
So it might also be useful if you're having problems with setting up Pusher with Echo. | |
I'll try to cover eveything and try to use appropriate highlighting to single out each common problem. |