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 | |
/** | |
* Hide adminbar in frontpage | |
*/ | |
add_filter( 'show_admin_bar', function() { return false; } ); |
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 num2camelString = function( numero ) { | |
var string = numero + ""; // 4 23 132 30 | |
if( string.length === 1 ) { // t f f f | |
string = "0" + string; // 04 23 132 30 | |
} | |
string = string.substring( 0, string.length - 1 ) // 0 2 13 3 | |
+ "-" // - - - - | |
+ string.substr( string.length - 1, 1 ); // 4 3 2 0 | |
if( string.lastIndexOf( "0" ) === string.length -1 ) { |
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
/** | |
* @param {number} numero | |
* @returns {String} | |
*/ | |
var number2commaString = function( number ) { | |
var parts = number.toString().split( "." ); | |
parts[ 0 ] = parts[ 0 ].replace( /\B(?=(\d{3})+(?!\d))/g, "," ); | |
return parts.join("."); | |
}; |
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
echo -n "Carlos Oropesa" | md5sum | |
#5ccb46f23b0693211f76c3d325a9720b |
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-bloque-contadores.parallax_section_holder { | |
padding: 10em 0; | |
background-size: cover; | |
} | |
.landing-bloque-contadores .q_counter_holder { | |
opacity: 1; | |
text-shadow: 0 0 12px rgb(0, 0, 0); | |
} |
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
"http://unicode.org/emoji/charts/full-emoji-list.html" | |
//http://unicodey.com/ | |
//Navigator Console | |
//$0 === table | |
//Quitar fila titulo | |
$0.children[0].children[0].remove(); | |
//Quitar dos primeras columnas |
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
# ~$> gedit ~/.bashrc | |
# Add this lines | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "; | |
# Remember, only one 'export' line, separated by ';' |
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 toType = function(obj) { | |
return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() | |
} | |
toType({a: 4}); //"object" | |
toType([1, 2, 3]); //"array" | |
(function() {console.log(toType(arguments))})(); //arguments | |
toType(new ReferenceError); //"error" | |
toType(new Date); //"date" | |
toType(/a-z/); //"regexp" |
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 header_status($statusCode) { | |
static $status_codes = null; | |
if ($status_codes === null) { | |
$status_codes = array ( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', | |
200 => 'OK', | |
201 => 'Created', |
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
.system-font-stack { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
/** | |
-apple-system. is San Francisco, used on iOS and macOS (not Chrome however) | |
BlinkMacSystemFont. is San Francisco, used on macOS Chrome | |
Segoe UI. is used on Windows 10 | |
Roboto. is used on Android | |
Oxygen-Sans. is used on GNU+Linux |