The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)
[ | |
{"name": "Afghanistan", "code": "AF"}, | |
{"name": "Åland Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "Andorra", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)
function unserialize(array) { | |
var accumulated_array = []; | |
for (var j = 0; j < array.split('{')[1].split(';').length; j++) { | |
var sp = array.split('{')[1].split(';'); | |
var np = sp[j].split(':'); | |
for (var k = 0; k < np.length; k++) { | |
if (k != 0 && k % 2 == 0) { | |
if (np[k] == '"http' || np[k] == '"https') { |
/** | |
* Author: Hasibur Rahman Omi. | |
* Email: [email protected]. | |
* Author URI: http://www.hasibomi.com. | |
*/ | |
class FoundationDatepicker { | |
constructor() { | |
this.restrict = "E"; | |
this.replace = true; |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
/* The solution found here: http://www.aspsnippets.com/Articles/Change-URL-in-Browser-Address-Bar-without-reloading-using-JavaScript-and-jQuery.aspx */ | |
/** HTML5 History pushState method | |
* The pushState method works similar to window.location but it does not refresh or reload the page and it will modify the URL even if the page does not exists. The pushState method actually inserts an entry into the history of the browsers which allows us to go back and forth using the browser’s forward and back buttons. | |
* The pushState method accepts the following three parameters. | |
* 1. State object: - The state object is a JavaScript object which can contain any details about the page and must be serializable. | |
* 2. Title: - The title of the page. | |
* 3. URL – The URL of the page. | |
*/ |
const currDateTime = Date.now(); | |
const dateTime = new Date(currDateTime); | |
const months = [ | |
"January", | |
"February", | |
"March", | |
"April", | |
"May", | |
"June", | |
"July", |
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
sudo chown -R bitnami:daemon /opt/bitnami/apache2/htdocs/<wp-installation>
sudo find /opt/bitnami/apache2/htdocs/<wp-installation> -type f -exec chmod 664 {} \;
sudo find /opt/bitnami/apache2/htdocs/ -type d -exec chmod 775 {} \;
#!/bin/sh | |
# Author: Hasibur Rahman Omi | |
# Email: [email protected] | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get -y install curl | |
sudo apt-get -y install apache2 |