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 | |
remove_filter ('the_content', 'wpautop'); | |
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
<!-- Whitespace added for readability --> | |
{% assign m = page.date | date: "%-m" %} | |
{{ page.date | date: "%-d" }} | |
{% case m %} | |
{% when '1' %}Janeiro | |
{% when '2' %}Fevereiro | |
{% when '3' %}Março | |
{% when '4' %}Abril | |
{% when '5' %}Maio | |
{% when '6' %}Junho |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Verifying that +brunopulis is my blockchain ID. https://onename.com/brunopulis |
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
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
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
// Font Size | |
// =========================================== | |
@mixin rem($font-size) { | |
font-size: $font-size; | |
font-size: ($font-size / $base-font-size) * 1rem; | |
} |
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
/** | |
* get_excerpt | |
* | |
* @param [type] $limit | |
* @return void | |
*/ | |
function excerpt( $limit ) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit ); |
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
/** | |
* content | |
* | |
* Limit the size of text | |
* | |
* @param int $limit quantity to excerpt | |
* @return void | |
*/ | |
function content($limit) { |
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
var httpRequest; | |
// Mozilla, Safari | |
if (window.XMLHttpRequest) | |
httpRequest = new XMLHttpRequest(); | |
else if (window.ActiveXObject) | |
// IE | |
httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); |
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
var request = $.ajax({ | |
url: "script.php", | |
method: "POST", | |
data: { id : menuId }, | |
dataType: "json" | |
}); |