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
add_action( 'wp_enqueue_scripts', 'mondira_child_theme_css' ); | |
function mondira_child_theme_css() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) ); | |
} |
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
add_action( 'wp_enqueue_scripts', 'mondira_slider_options' ); | |
function mondira_slider_options(){ | |
wp_enqueue_script( 'theme-slider', get_template_directory_uri() . '/js/theme-slider.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'theme-slider-init', get_template_directory_uri() . '/js/init.js', array( 'jquery', 'theme-slider' ) ); | |
// get user options | |
$options = array(); | |
$options['autoplay'] = get_theme_mod( 'slider-autoplay', true ); | |
$options['navigation_style'] = get_theme_mod( 'numbers', 'circles' ); | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<title>CSS Background Color Animation</title> | |
<link rel="stylesheet" href="style.css"> |
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
/* | |
--------------------------------------------------------------------------------------- | |
Returns total number of rows for selected background colors separated by comma, in a column range. | |
@ param string colors - A set of background hex colors separated by comma. Ex: '#ff0000,#000000,#AEAEAE' | |
@ param string rangeSpecification - Column field range of rows. Ex: 'E1:E20' | |
@ return int number of rows with colors listed background colors. | |
--------------------------------------------------------------------------------------- | |
*/ | |
function countCellsWithBackgroundColors(colors, rangeSpecification) { |
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 | |
function read ($length='255') | |
{ | |
if (!isset ($GLOBALS['StdinPointer'])) | |
{ | |
$GLOBALS['StdinPointer'] = fopen ("php://stdin","r"); | |
} | |
$line = fgets ($GLOBALS['StdinPointer'],$length); | |
return trim ($line); | |
} |
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 | |
/* | |
|- Returns an array of dates with Y-m-d format in between 2 input dates | |
|- | |
|- @params string $strDateFrom as date("Y-m-d") = "2014-01-01" | |
|- @params string $strDateTo as date("Y-m-d") = "2014-01-31" | |
|- @return array() of dates | |
|- | |
|- @author: Jewel Ahmed | |
|- @last modified: 18th Aug, 2015 |
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
mkdir tpm_empty_dir | |
robocopy tpm_empty_dir the_dir_to_make_empty /s /mir | |
rmdir tpm_empty_dir |
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 | |
/* | |
Get location info by google latitude and longitude via Google Map API and CURL | |
You may need to change the proxy ip:port and auth username:pass or keep them empty. | |
*/ | |
/* | |
* | |
* @ param string $url as 'http://maps.google.com'; Page url location which you want to fetch | |
* @ param string $proxy [optional] as '[proxy IP]:[port]'; Proxy address and port number |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
cssmin: { | |
my_target: { | |
files: [{ | |
expand: true, | |
cwd: 'css/', | |
src: ['*.css', '!*.min.css'], |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
manage: false | |
}, | |
my_target: { | |
files: [{ |