#!/bin/bash
echo "Bash version ${BASH_VERSION}..."
for i in {0..10..1}
do
echo "Welcome $i times"
sleep 2
done
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 | |
//Curl With Getting Header | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_VERBOSE => 1, | |
CURLOPT_HEADER => array( | |
"cache-control: no-cache", | |
"content-type: application/x-www-form-urlencoded" |
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
<VirtualHost *:80> | |
DocumentRoot "F:/Server/linuxphp7/htdocs/" | |
ServerName localhost | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot "F:/Server/linuxphp7/htdocs/package/" | |
ServerName package.test | |
</VirtualHost> |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @salcode | |
# ver 20160309 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
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
<div style="text-align:center; font:50px Trebuchet Ms; color:#e3e3e3; margin-top:20%;"> | |
Comming Soon ... | |
</div> |
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 | |
class Woocommerce_Bulk_Attribute_Manager_Product_Attibutes { | |
public function __construct() { | |
} | |
public function get_list_attributes(){ | |
return wc_get_attribute_taxonomies(); | |
} | |
public function get_list_attribute_slug(){ |
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 | |
//add product dynamically | |
add_action('init',function(){ | |
if(isset($_POST['pname-wordpress'])) { | |
//add post | |
$post_id = wp_insert_post( array( | |
'post_title' => trim($_POST['pname-wordpress']), | |
'post_content' => '', | |
'post_status' => 'draft', |
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
here is a simple configuration that works for me: | |
Program: <full path to your node-sass executable>, like ‘C:\Users\Elena.Pogorelova\AppData\Roaming\npm\node-sass.cmd’ | |
Arguments: $FileName$ ../$FileNameWithoutExtension$.css | |
Working directory: $FileDir$ |
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
/* Large desktops and laptops */ | |
@media (min-width: 1200px) { | |
} | |
/* Landscape tablets and medium desktops */ | |
@media (min-width: 992px) and (max-width: 1199px) { | |
} |
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 | |
//******************Work Wit Git Tag | |
//Create git tag | |
git tag <tagname> | |
//push git tag | |
git push origin --tags | |
OlderNewer