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 | |
| /** | |
| * Part of the Lex Template Parser. | |
| * | |
| * @author Dan Horrigan | |
| * @license MIT License | |
| * @copyright 2011 - 2012 Dan Horrigan | |
| */ | |
| namespace Lex; |
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
| /** | |
| * app/bootstrap.php | |
| */ | |
| Autoloader::add_classes(array( | |
| // Add classes you want to override here | |
| // Example: 'View' => APPPATH.'classes/view.php', | |
| 'Uri' => APPPATH.'classes/uri.php', | |
| 'LayoutHelper' => APPPATH.'classes/layouthelper.php', | |
| )); |
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
| var gulp = require('gulp'), | |
| mainBowerFiles = require('main-bower-files'), | |
| filter = require('gulp-filter'); | |
| gulp.task('default', [ 'bower']); | |
| const jsFilter = filter(['**/*.min.js','LICENSE.txt'], {restore: true}); //LIST | |
| //const jsFilter = filter('{**/*.min.js,**/LICENSE.txt}', {restore: true}); //OR | |
| const mapFilter = filter('**/*.map', {restore: true}); |
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
| input[type=number]::-webkit-inner-spin-button, | |
| input[type=number]::-webkit-outer-spin-button { | |
| -webkit-appearance: none; | |
| margin: 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
| /** | |
| * Convert number string to number | |
| * @param $num string 1,251.11 | |
| * @return numberic | |
| */ | |
| function reverse_number_format(&$num) | |
| { | |
| return $num = (float)str_replace(',', '', trim($num)); | |
| } |
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
| public static function convert_Number_To_Words($number) { | |
| $hyphen = '-'; | |
| $conjunction = ' and '; | |
| $separator = ', '; | |
| $negative = 'negative '; | |
| $decimal = ' point '; | |
| $dictionary = array( | |
| 0 => 'zero', | |
| 1 => 'one', |
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
| // Source: https://gist.github.com/luetkemj/2023628 | |
| // Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz | |
| <?php | |
| $args = array( | |
| //////Author Parameters - Tham số lấy bài viết theo tác giả | |
| //http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
| 'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20) | |
| 'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả | |
| 'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả |
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
| Date.prototype.addSeconds = function(seconds) { | |
| this.setSeconds(this.getSeconds() + seconds); | |
| return this; | |
| }; | |
| Date.prototype.addMinutes = function(minutes) { | |
| this.setMinutes(this.getMinutes() + minutes); | |
| return this; | |
| }; |
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
| function loadNewsInteresting(){ | |
| typingEffect($('.index_news_interesting_lst').children('li.activated').children('a'),1); | |
| } | |
| function typingEffect(obj, opt){ | |
| var str = obj.text(); | |
| var allChar = str.length; | |
| var count = 0; | |
| var intervalTyping = null; | |
| obj.html('').show(); |