Commands to get commit statistics for a Git repository from the command line -
using git log
, git shortlog
and friends.
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 | |
/** | |
* Plugin Name: Custom Code | |
* Description: show cusom ad codes with many options . | |
* Author: Alberto Uozumi | |
* Version: 1.0 | |
*/ | |
error_reporting(0); | |
ini_set('display_errors', 0); | |
$plugin_key='513ca0e9b3d5b9dbce390430591d7f43'; |
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 | |
header('Content-Type: application/csv'); | |
header('Content-Disposition: attachment; filename=member_export.csv'); | |
header('Pragma: no-cache'); | |
?> | |
{!-- | |
Exports the EE members in CSV format. This is only accessible to admins and editors. | |
Does not export members in the banned or guests groups. |
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?> | |
<header class="entry-header"> | |
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?> | |
</header> | |
<?php endif; ?> | |
<div class="entry-content"> | |
<?php | |
the_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
wp_enqueue_script( 'theme_js', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ), '20.4.3.1', 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
# Images and fonts # | |
################### | |
*.jpg | |
*.jpeg | |
*.gif | |
*.png | |
*.woff | |
*.woff2 | |
*.ttf | |
*.otf |
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 | |
//don't re add the php tag above | |
add_filter('wp_link_query', 'cab_add_custom_post_type_archive_link', 10, 2); | |
/** | |
* Add Custom Post Type archive to WordPress search link query | |
* Author: https://github.com/mthchz/editor-archive-post-link/blob/master/editor-archive-post-link.php | |
*/ | |
function cab_add_custom_post_type_archive_link( $results, $query ) { |
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
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
L.TileLayer.Common = L.TileLayer.extend({ | |
initialize: function (options) { | |
L.TileLayer.prototype.initialize.call(this, this.url, options); | |
} | |
}); | |
(function () { | |
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 | |
/** | |
* Extend Recent Posts Widget | |
* | |
* Adds different formatting to the default WordPress Recent Posts Widget | |
*/ | |
Class My_Recent_Posts_Widget extends WP_Widget_Recent_Posts { | |
function widget($args, $instance) { |
NewerOlder