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 convertArrayToUtf8(array $array) { | |
| $convertedArray = array(); | |
| foreach($array as $key => $value) { | |
| if(gettype($key)=='string') | |
| $key = utf8_encode($key); | |
| if(is_array($value)) | |
| $value = $this->convertArrayToUtf8($value); | |
| if(gettype($value)=='string') |
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
| private function _semAcentos($string, $returnFormat = 1){ | |
| if(is_array($string)){ | |
| for($i=0; $i<count($string); $i++){ | |
| $string[$i] = preg_replace("/[áàâãª]/u","a",$string[$i]); | |
| $string[$i] = preg_replace("/[ÁÀÂÃ]/u","A",$string[$i]); | |
| $string[$i] = preg_replace("/[éèê]/u","e",$string[$i]); |
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
| $(document).ready(function(){ | |
| //if exists a tab menu | |
| if($('.tabsMenu').length > 0){ | |
| prepareTabMenu(); | |
| } | |
| }); | |
| /** | |
| * Prepare elements with function that will be called when clicked | |
| * */ |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
| <title>Document</title> | |
| <style> | |
| *{ padding: 0; margin: 0; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; } | |
| input[type='checkbox'] { opacity: 0; width: 18px; float: left; } | |
| input[type='checkbox'] + label { clear: none; padding: 2px 2px 2px 19px; cursor: pointer; background: url(./img/ico-uncheck.png) left 5px no-repeat; border: 1px dotted transparent; } | |
| input[type='checkbox']:focus + label, |
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
| // start method | |
| long startFullTime = System.currentTimeMillis(); | |
| //step1 begin | |
| long startStep1Time = System.currentTimeMillis(); | |
| // some logic of step 1 here | |
| long endStep1Time = System.currentTimeMillis(); | |
| //step1 end |
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 mascara(field,callback){ | |
| v_obj=field; | |
| v_fun=callback; | |
| setTimeout("executeMask()",1) | |
| } | |
| function executeMask(){ | |
| v_obj.value=v_fun(v_obj.value); | |
| } |
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
| onkeyup="this.value = isNaN(this.value.substr(this.value.length-1>0?this.value.length-1:0, this.value.length-1>1?this.value.length-1:1))?(this.value.length<2?"":this.value.substr(0,this.value.length-1)).replace(/\s+/g,""):this.value.replace(/\s+/g,"")" | |
| onkeypress="this.value = isNaN(this.value.substr(this.value.length-1>0?this.value.length-1:0, this.value.length-1>1?this.value.length-1:1))?(this.value.length<2?"":this.value.substr(0,this.value.length-1)).replace(/\s+/g,""):this.value.replace(/\s+/g,"")" |
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
| /* | |
| * | |
| * | |
| * | |
| * WILL BE MOVED SOON | |
| * USE THIS => https://github.com/renie/CacheRequest | |
| * | |
| * | |
| * | |
| * |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'bling/vim-airline' | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'pangloss/vim-javascript' |
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
| #!/usr/bin/nodejs | |
| var DEFAULT_CURRENCY_PAIR = 'USDT_DASH'; | |
| var DEFAULT_CURRENCY_PROPERTY = 'last'; | |
| /*============================================*/ | |
| /*============================================*/ | |
| /*============================================*/ |
OlderNewer