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
.wp_slrp_img_wrap { | |
max-width: 160px; | |
text-align: right; | |
margin-bottom: 10px; | |
} | |
.wp_slrp_img { | |
display: block; | |
max-width: 150px; | |
max-height: 150px; |
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 | |
namespace App\Http\Controllers; | |
class InfoController extends Controller | |
{ | |
/* | |
* | |
* Checking if cache file exist | |
* @ param string $name cache file 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 | |
/* | |
|- 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
var casper = require('casper').create(); | |
casper.start('http://ip-addr.es/', function() { | |
var doc = this.evaluate(function() { | |
return document; | |
}); | |
this.echo(doc.all[0].outerText); | |
}); | |
casper.run(); |
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
jQuery(document).ready(function ($) { | |
$('.nav-tabs li a').on('shown.bs.tab', function (e) { | |
$('.tab-pane').resize(); | |
Calendar.init(); //Reinit JS codes | |
}); | |
}); |
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
/** | |
Custom module for you to write your own javascript functions | |
**/ | |
var Custom = function () { | |
// private functions & variables | |
var myFunc = function(text) { | |
alert(text); | |
} |