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
const https = require('https') | |
// ====================================== | |
// ============ SETTINGS ================ | |
// ====================================== | |
const fiatList = ['USD', 'BRL'] | |
const cryptoList = ['DASH', 'LTC', 'ETH', 'BTC'] | |
const url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest' | |
const options = { |
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
const sameAsNextIndex = (item, index, array) => item === array[index + 1] | |
const sameAsPrevIndex = (item, index, array) => item === array[index - 1] | |
const isDuplicatedOnSortedMapper = | |
(item, index, array) => | |
sameAsNextIndex(item, index, array) | |
? item | |
: sameAsPrevIndex(item, index, array) | |
? item | |
: null |
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/bash | |
##### | |
# IMPORTANT! | |
# - Install rsync and inotify-tools | |
# - For better usage, config your ssh conections and keys | |
##### | |
if [ $# -lt 3 ]; then | |
echo "An origin path, a destination path and a user@server must be set (in this order)." |
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'; | |
/*============================================*/ | |
/*============================================*/ | |
/*============================================*/ |
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
/* | |
* | |
* | |
* | |
* 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
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
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
// 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
<!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, |
NewerOlder