- Sublime 3
- Package Control
- Markdown highlight
- INI highlight
- Nginx highlight
- Play highlight
- Python improved
- Generic Config highlight
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.3.6/slick.css"/> | |
<style> | |
.menu { | |
text-align: center; | |
} |
This file contains 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 | |
$currentID = get_the_ID(); | |
$featured = new WP_Query(array( | |
'post_type' => 'post', | |
'order' => 'DESC', | |
'posts_per_page' => 8, | |
'post__not_in' => array($currentID) | |
This file contains 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
<script src="script.js"></script> |
- A instalação Cygwin é recomendada para quem utiliza versões anteriores do Windows 10. Caso utilize Windows 10, sugere-se a instalação do Bash - http://www.ic.unicamp.br/~mc102/tutorial-bash.html.
- É necessário aproximadamente 150MB de memória disponível
Cygwin é um emulador de terminal com uma grande coleção de ferramentas GNU e Open Source, que disponibilizam funcionalidades similares às disponíveis em distribuições Linux no ambiente Windows.
This file contains 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: IBenic Bootstrap Modal | |
* Plugin URI: http://www.ibenic.com/show-a-wordpress-post-in-a-modal/ | |
* Description: Show an article in a modal on the same page. | |
* Version: 1.0 | |
* Author: Igor benić | |
* Author URI: http://www.ibenic.com | |
* License: GPL2 | |
* |
This file contains 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 | |
/** | |
* Duplicate this file as many times as you would like, just be sure to change the | |
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
This file contains 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
/** | |
* Enqueue custom fonts using protocol relative URL. | |
* | |
* Syntax: wp_enqueue_style( $handle, $src, $deps, $ver, $media ); | |
* Ensure $handle is unique to prevent conflicts with plugins | |
* | |
* Note(s): The pipe (|) operator is used to load multiple typefaces in a single call. We also only load the weights we want * by comma seperating them, instead of loading every available weight. | |
*/ | |
function theme_prefix_fonts() | |
{ |
This file contains 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 if ( 'post_type' == get_post_type() ) : | |
$term_list = get_the_terms( $post->ID, 'custom_taxonomy' ); // get the taxonomy terms | |
if ( count($term_list) > 2 ) { // if there are more than 2 terms, use a comma, e.g.: this, this, that | |
$sep = __( ', ', 'textdomain' ); | |
} elseif ( count($term_list) === 2 ) { // if there are EXACTLY 2 terms, use an "and", e.g.: this and that | |
$sep = __( ' and ', 'textdomain' ); | |
} else { // there there is only one (or no) terms, don't use anything | |
$sep = null; | |
} | |
$sep_num = 1; // we'll use this as a counter later |
This file contains 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
/* | |
* http://christian-fei.com/tutorials/how-to-lazy-load-disqus-comments/ | |
* | |
* <div class="comments"></div> | |
*/ | |
var comments = document.getElementsByClassName('comments')[0], | |
disqusLoaded = false; | |
function loadDisqus() { |
NewerOlder