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
| alias htmlencode="perl -MHTML::Entities -pe 'encode_entities(\$_)'" | |
| alias htmldecode="perl -MHTML::Entities -pe 'decode_entities(\$_)'" | |
| # Example use | |
| # htmldecode < input.xml > output.xml |
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
| DELETE FROM wp_options WHERE option_name LIKE 'rewrite_rules' |
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
| INSERT INTO wordpress.wp_posts | |
| (id, post_author, post_date, post_content, post_title, post_excerpt, | |
| post_name, post_modified, post_type, `post_status`) | |
| SELECT DISTINCT | |
| n.nid `id`, | |
| n.uid `post_author`, | |
| FROM_UNIXTIME(n.created) `post_date`, | |
| b.body_value `post_content`, | |
| n.title `post_title`, |
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 process_error_backtrace($errno, $errstr, $errfile, $errline, $errcontext = false) { | |
| if(!(error_reporting() & $errno)) | |
| return; | |
| switch($errno) { | |
| case E_WARNING : | |
| case E_USER_WARNING : | |
| case E_STRICT : | |
| case E_NOTICE : | |
| case E_USER_NOTICE : | |
| $type = 'warning'; |
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($){ | |
| $('#authors > li').each(function(){ | |
| var textstring = $(this).find('strong').text().split(" ("); | |
| console.info(textstring[0]); | |
| $(this).find('select[name^=user_map] option').filter(function() { | |
| return $(this).text() == textstring[0]; | |
| }).prop('selected', true); | |
| }); | |
| })(jQuery); |
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
| relativeTime: function (timeString) { | |
| var delta, parsedDate, r; | |
| // Create a Date object | |
| parsedDate = Date.parse(timeString); | |
| // Get the number of seconds ago that the tweet was created | |
| delta = (Date.parse(Date()) - parsedDate) / 1000; | |
| // String to hold the relative time |
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
| diff --git a/js/background.js b/js/background.js | |
| index f9df64a..9f1c188 100644 | |
| --- a/js/background.js | |
| +++ b/js/background.js | |
| @@ -6,9 +6,9 @@ | |
| last_id: 0, | |
| change_pic_animations: 0, | |
| bg_types: [ | |
| - {size: 'xsmall', scale: 0.35, layer_factor: 0.4, mouse_factor: -1.4}, | |
| - {size: 'small', scale: 0.5, layer_factor: 0.8, mouse_factor: -0.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
| diff --git a/content-page.php b/content-page.php | |
| index d2f0abc..75daa60 100755 | |
| --- a/content-page.php | |
| +++ b/content-page.php | |
| @@ -43,7 +43,7 @@ | |
| } | |
| // Display the content | |
| - echo $post_content; | |
| + echo apply_filters( 'the_content', $post_content ); |
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 | |
| /** | |
| * The template for displaying the frontpage. | |
| * | |
| * @package conijn | |
| * Template Name: Product | |
| */ | |
| get_header('slider'); | |
| $parent = get_post($post->post_parent); | |
| $parentUrl = esc_url(get_permalink( $parent->ID )); |
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
| [xdebug] | |
| zend_extension="/usr/local/Cellar/php53-xdebug/2.2.3/xdebug.so" | |
| xdebug.max_nesting_level = 1000 | |
| xdebug.default_enable = On | |
| xdebug.remote_enable = On | |
| xdebug.remote_handler = dbgp | |
| xdebug.remote_host = localhost | |
| xdebug.remote_port = 9000 | |
| xdebug.remote_mode = req | |
| xdebug.remote_connect_back = 1 |