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 | |
| namespace Drewm; | |
| /** | |
| * Super-simple, minimum abstraction MailChimp API v2 wrapper | |
| * | |
| * Uses curl if available, falls back to file_get_contents and HTTP stream. | |
| * This probably has more comments than code. | |
| * |
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
| <ul id="navtab" class="clearfix"> | |
| <li><a href="">link1</a></li> | |
| <li><a href="">link2</a></li> | |
| <li><a href="">link3</a></li> | |
| </ul> | |
| <div id="contenttab"> | |
| <div> | |
| Contenido 1 | |
| </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 | |
| /* | |
| * | |
| * | |
| * Crop from the top | |
| * | |
| * | |
| */ | |
| function my_awesome_image_resize_dimensions( $payload, $orig_w, $orig_h, $dest_w, $dest_h, $crop ){ |
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 | |
| class Top_level_Optgroup extends Walker_CategoryDropdown { | |
| var $optgroup = false; | |
| function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { | |
| $pad = str_repeat(' ', $depth * 3); |
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 | |
| // detect a localhost of a domain up | |
| $weblocal = 'folderweb/'; //localhost folder | |
| $server = $_SERVER['SERVER_NAME']; | |
| if(strstr($server, '192.168.1.10') || strstr($server, 'localhost')){ | |
| $url = "http://" . $_SERVER['SERVER_NAME'] . "/" . $weblocal; | |
| } else { | |
| $url = "http://" . $_SERVER['SERVER_NAME'] . "/"; |
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
| $('#landing-content').mousemove(function(e){ | |
| var amountMovedX = (e.pageX * -1 / 6); | |
| var amountMovedY = (e.pageY * -1 / 6); | |
| $(this).css('background-position', amountMovedX + 'px ' + amountMovedY + 'px'); | |
| }); |
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 | |
| function get_custom_cat_template($single_template){ | |
| global $post; | |
| if ( in_category( 'movies' )) { | |
| $single_template = dirname( __FILE__ ) . '/single-movies.php'; | |
| } | |
| return $single_template; | |
| } |
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($) { | |
| $.fn.helloWorld = function() { | |
| this.each( function() { | |
| /*Some shit*/ | |
| $(this).text("Hello, World!"); | |
| }); | |
| } | |
| }(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
| <?php | |
| //wp-config.php | |
| $base = '/'; | |
| define( 'DOMAIN_CURRENT_SITE', 'mydomain.com' ); | |
| define( 'PATH_CURRENT_SITE', '/' ); | |
| //SQL commands | |
| UPDATE wp_posts SET guid = REPLACE (guid, |