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
| Since the columns are not all equal in height you need to add a clearfix <div> for the large viewports | |
| just as the new row should start, that is between your 3rd and 4th column: | |
| <div class="row"> | |
| <div class="col-lg-4 col-md-4 col-sm-6 col-xs-6">...</div> | |
| <div class="col-lg-4 col-md-4 col-sm-6 col-xs-6">...</div> | |
| <div class="col-lg-4 col-md-4 col-sm-6 col-xs-6">...</div> | |
| <!-- Add the extra clearfix for only the required viewport --> | |
| <div class="clearfix visible-md visible-lg"></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 | |
| $array = array(3,3,2,3,3,1,3,4,5); | |
| function array_avg($array, $round=1){ | |
| $num = count($array); | |
| return array_map( | |
| function($val) use ($num,$round){ | |
| return array('count'=>$val,'avg'=>round($val/$num*100, $round)); | |
| }, | |
| array_count_values($array)); |
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 | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : ((get_query_var('page')) ? get_query_var('page') : 1); | |
| $search = array( | |
| 'post_type' => 'properties', | |
| 'post_status' => 'publish', | |
| 'orderby' => $date_order, | |
| 'order' => $order, | |
| 'pagination' => true, | |
| 'posts_per_page' => 10, |
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 | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| */ | |
| $args = array( |
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
| /* https://github.com/Balamir/jQuery-backward-timer/tree/balamir */ | |
| $('#timer-custom-w-wrapper').backward_timer({ | |
| seconds: 45296, | |
| use_wrapper: true, | |
| wrappers: { | |
| hours: '.hours_dash .digit', | |
| minutes: '.minutes_dash .digit', | |
| seconds: '.seconds_dash .digit' | |
| } |
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 | |
| /* | |
| original : http://stackoverflow.com/a/34254595 | |
| */ | |
| function getPluralPrase( $phrase, $value ) { | |
| $plural=''; | |
| if( $value > 1 ) { | |
| for( $i = 0; $i < strlen( $phrase ); $i++ ) { |
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
| /** | |
| * @author Chris Tate-Davies | |
| * @web http://blog.tatedavies.com/2016/05/10/posting-slack-message-on-google-docs-spreadsheet-cell-update/ | |
| * @revision 0.0.1 | |
| * | |
| * 10th May 2016 | |
| * Purpose - send a slack payload to bot-database informing users of database update requirements | |
| **/ | |
| function ceta_db_column_edit(event){ |
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 | |
| /** | |
| * PHP'nin in_array fonksiyonunun buyuk-kucuk harf duyarsiz hali | |
| * | |
| * @since 2.0 | |
| * | |
| * @param string $needle Array icinde aranacak olan deger (igne) | |
| * @param array $haystack Arama yapilacak array (samanlik) | |
| * @return bool |
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 | |
| //to safely serialize | |
| $safe_string_to_store = base64_encode(serialize($multidimensional_array)); | |
| //to unserialize... | |
| $array_restored_from_db = unserialize(base64_decode($encoded_serialized_string)); | |
| //That's it! |
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
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/User/SublimeLinter/Dark-Material (SL).tmTheme", | |
| "draw_minimap_border": true, | |
| "extract_sublime_package_ask_on_open": true, | |
| "fallback_encoding": "UTF-8", |