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
// Inject start document code | |
Object.defineProperty(window, 'ysmm', { | |
set: function(val) { | |
var T3 = val, | |
I = '', | |
X = '', | |
key; | |
for (var m = 0; m < T3.length; m++) { | |
if (m % 2 == 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
{ | |
"bin" : "10101101" | |
} |
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 | |
/* | |
* First array return "tags" with hash, example: #Example | |
* Second "tag" return without hash, Example: Example | |
* | |
* @string $tweet The text | |
* @function preg_match_all | Pattern | @string $tweet (The text) | @array $tags (output array the tags) | |
* @return array $tags | |
*/ | |
$twet = "But I must #explain to u how all this #mistaken idea of #denouncing pleasure and praising pain was born and I'll #give you a complete accout"; |
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
$.fn.removeClassPrefix = function( prefix ){ | |
var element = jQuery(this); | |
return this.each(function(){ | |
var c = this.classList; | |
jQuery.each(c, function(i, className) { | |
if( className.indexOf( prefix + "-" ) > -1 ){ | |
element.removeClass( className ); | |
} | |
}); | |
}) |
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 | |
add_filter( 'woocommerce_checkout_fields' , 'wp_remove_fields_checkout' ); | |
function wp_remove_fields_checkout( $fields ){ | |
/** | |
* All unset \/ | |
* Nome | |
* Sobrenome | |
* Empresa | |
* Endereço |
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
*, ::after, ::before { | |
font-family:inherit; | |
text-rendering:optimizeLegibility; | |
text-stroke:1px transparent; | |
-webkit-text-size-adjust:100%; | |
-moz-text-size-adjust:100%; | |
-ms-text-size-adjust:100%; | |
-webkit-font-smoothing:antialiased; | |
-moz-font-smoothing:antialiased; | |
-ms-font-smoothing:antialiased; |
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
truncate table `table_name_here` |
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 | |
// Required PHP version >= 4.2.0 | |
function is_image( $filename ){ | |
$getImageSize = getimagesize( $filename ); | |
$image_type = $getImageSize[2]; | |
if( in_array( $image_type, array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP ) ) ) | |
return true; | |
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
<?php | |
function initial_letters( $char ){ | |
// Defaults | |
$pos = 0; | |
$saida = ''; | |
if( !isset( $char ) ){ | |
trigger_error( "Insert text", E_USER_ERROR ); | |
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
[ | |
{ | |
"name": "Aruba", | |
"code": "AW", | |
"dialling_code": "297" | |
}, | |
{ | |
"name": "Afghanistan", | |
"code": "AF", | |
"dialling_code": "93" |