This file contains 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
@ECHO OFF | |
For /f "tokens=2-4 delims=. " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-3 delims=.:," %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
set TIMESTAMP=%mydate%_%mytime% | |
REM Export all databases into file E:\wamp64\backup\database_backup.[year][month][day].sql | |
"E:\wamp64\bin\mysql\mysql5.7.14\bin\mysqldump.exe" --all-databases --result-file="E:\wamp64\backup\database_backup_%TIMESTAMP%.sql" --user=root | |
REM Change working directory to the location of the DB dump file. |
This file contains 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
/* Extra small devices (phones, less than 768px) */ | |
/* No media query since this is the default in Bootstrap */ | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) { | |
} | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: 992px) { |
This file contains 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 | |
/* | |
Template Name: Subscribe Page | |
*/ | |
get_header(); | |
if( isset($_POST['subscriber_email']) ){ | |
$api_url = 'http://API_URL'; | |
$subscriber_name = $_POST['subscriber_name']; |
This file contains 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 if (has_post_thumbnail( $post->ID ) ): ?> | |
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
<header class="entry-header entry-header-background" style="background-image: url('<?php echo $image[0]; ?>')"> | |
<?php else: ?> | |
<header class="entry-header"> | |
<?php endif; ?> | |
<div class="container"> | |
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | |
</div> | |
</header><!-- .entry-header --> |
This file contains 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
.col-xs-5ths, | |
.col-sm-5ths, | |
.col-md-5ths, | |
.col-lg-5ths { | |
position: relative; | |
min-height: 1px; | |
padding-right: 10px; | |
padding-left: 10px; | |
} |
This file contains 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 class="row"> | |
<div class="col-xs-6 vcenter"> | |
<div>Div1</div> | |
</div> | |
<div class="col-xs-6 vcenter"> | |
<div>Div2</div> | |
</div> | |
</div> |
This file contains 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> | |
ServerName www.domain1.com | |
ServerAlias domain1.com | |
Redirect / http://www.domain2.com | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName www.domain3.com | |
ServerAlias domain3.com | |
Redirect 301 / http://www.domain2.com |
This file contains 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
.row.no-gutter { | |
margin-left: 0; | |
margin-right: 0; | |
} | |
.row.no-gutter [class*='col-']:not(:first-child), | |
.row.no-gutter [class*='col-']:not(:last-child) { | |
padding-right: 0; | |
padding-left: 0; | |
} |
This file contains 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
/* Remove Query String from Static Resources */ | |
/* Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources: */ | |
function remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); | |
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 ); |
This file contains 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 | |
$remote_url = 'https://example.com'; | |
$xml = simplexml_load_file($remote_url); | |
$number_of_posts = 10; | |
?> | |
<ul> | |
<?php $i = 1; ?> | |
<?php foreach($xml->channel->item as $job) : ?> | |
<li> | |
<div class="jobtitle"> |