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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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
.nav-responsive { | |
list-style: none; | |
padding-left: 0; | |
} | |
.nav-responsive__item { | |
display: block; | |
border-bottom: 1px solid #999; | |
&:last-child { |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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($){ | |
var _is = $.fn.is, _filter = $.fn.filter; | |
function visible(elem){ | |
elem = $(elem); | |
return !!(elem.width() || elem.height()) && elem.css("display") !== "none"; | |
} | |
$.fn.is = function(sel){ | |
if(sel === ":visible"){ |
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
/** | |
* Text alignment | |
*/ | |
.text--left { text-align: left !important; } | |
.text--center { text-align: center !important; } | |
.text--right { text-align: right !important; } | |
.text--justify { text-align: justify !important; } | |
/** | |
* Text transform |
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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Conversão de preço USD para BTC</title> | |
</head> | |
<body> | |
<?php | |
$productValue = number_format(25, 2); | |
$satoshi = 100000000; |
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 talib = require("talib"); | |
var fs = require("fs"); | |
var _ = require("lodash"); | |
var Q = require("q"); | |
// Display all available indicator function names | |
//var functions = talib.functions; | |
//for (i in functions) { | |
// console.log(functions[i].name); | |
//} |
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 | |
$guid = BLOCKCHAIN_ID; | |
$main_password = BLOCKCHAIN_PASS; | |
$json = getCurl("https://blockchain.info/pt/merchant/$guid/new_address?password=$main_password"); | |
echo $json; |
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
Bot.prototype.userInfo = function() { | |
var that = this | |
, deferred = Q.defer() | |
, channel = this.coin === 'usd' ? 'ok_spotusd_userinfo' : 'ok_spotcny_userinfo'; | |
that.send(channel); | |
that.ws.on('message', function(data) { | |
var messages = JSON.parse(data.data) | |
, channel = messages[0].channel; |
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 Bitcore = require('bitcore'); | |
var Address = Bitcore.Address; | |
var HDPrivateKey = Bitcore.HDPrivateKey; | |
var hdPrivateKey = new HDPrivateKey.fromSeed("bf8e06fd8c0dafbc831933422895ad68c0874439e177f136f8f756b360de94f8"); | |
var hdPublicKey = hdPrivateKey.hdPublicKey; | |
var address = new Address(hdPublicKey.derive( Math.floor(Date.now() / 1000) ).publicKey); | |
var derivedAddress = new Address(hdPublicKey.derive( Math.floor(Date.now() / 1000) ).publicKey); |