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
| $('.pane-layout-content-header #textDiv').append($('<li id="del-script">').append($('<a class="js-nav">"').text('...'))); | |
| $('.itc-checkbox').parent().removeClass('ng-hide'); | |
| window.delscrpt = setInterval(function() { | |
| $('.itc-checkbox input:checked').parents('tr').find('a.deleteIcon').each(function(){ $(this).click(); return false;}); | |
| var count = $('.itc-checkbox input:checked').parents('tr').find('a.deleteIcon').length; | |
| if (count < 3) { | |
| $('#del-script a').text('Del Done.'); | |
| clearInterval(window.delscrpt); | |
| return; |
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
| [ | |
| { "keys": ["ctrl+2"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["ctrl+shift+2"], "command": "toggle_comment", "args": { "block": true } }, | |
| { "keys": ["ctrl+k", "ctrl+,"], "command": "fold_by_level", "args": {"level": 10} }, | |
| /* Auto-pair underscores */ | |
| { "keys": ["_"], "command": "insert_snippet", "args": {"contents": "_$0_"}, "context": | |
| [ | |
| { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
| { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": 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
| { | |
| "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", |
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
| <?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
| /** | |
| * @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 | |
| /* | |
| 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
| /* 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 | |
| /** | |
| * 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
| <?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, |