Note: if you already have folder then delete it running rm -r /Users/rupeshti/.oh-my-zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying Comments. | |
* | |
* The area of the page that contains comments and the comment form. | |
* | |
* @package WordPress | |
* @subpackage theme | |
* @since theme 0.1.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Mac OS X (Leopard+), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files. | |
One way to do this is to change the owner of the wordpress directory and its contents to _www. Keep the group as staff, a group to which your user account belongs and give write permissions to the group. | |
$ cd /<wherever>/Sites/<thesite> | |
$ sudo chown -R _www wordpress | |
$ sudo chmod -R g+w wordpress | |
This way, the WordPress directories have a permission level of 775 and files have a permission level of 664. No file nor directory is world-writeable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/costastf/locationsharinglib.git | |
cd locationsharinglib/ | |
mkvirtualenv -p `which python3` locationsharinglib | |
pip install -r requirements.txt | |
python cli.py --email '<your email>' --password '<your password>' --cookies-file .google_maps_location_sharing.cookies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let input = { first_name: 'Foo', last_name: 'Bar' }; | |
// application/graphql example | |
/* eslint-disable no-unused-vars */ | |
let configGraphQL = { | |
url: '/graphql', | |
method: 'post', | |
headers: { 'Content-Type': 'application/graphql' }, | |
data: `mutation { user(id: 1, input: ${ JSON.stringify(input) }){ full_name } }` | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{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'}, |
##Readme
Add yourself to the www-data group and set the setgid bit on the /var/www directory such that all newly created files inherit this group as well.
sudo gpasswd -a "$USER" www-data Correct previously created files (assuming you to be the only user of /var/www):
sudo chown -R "$USER":www-data /var/www find /var/www -type f -exec chmod 0660 {} ; sudo find /var/www -type d -exec chmod 2770 {} ;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> | |
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html"> | |
<link rel="import" href="../../bower_components/iron-collapse/iron-collapse.html"> | |
<dom-module id="your-element"> | |
<template> | |
<style> | |
.heading { | |
padding: 10px 15px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof arrayName[index] === 'undefined') { | |
// does not exist | |
} | |
else { | |
// does exist | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add blur_module to Text Module Settings > Custom CSS > CSS Class, | |
or blur_background_module to Section Module Settings > Custom CSS > CSS Class */ | |
.blur_module, | |
.blur_background_module { | |
background-position: top center; | |
background-repeat: repeat; | |
display: block; | |
overflow: hidden; | |
position: relative; | |
} |
NewerOlder