Skip to content

Instantly share code, notes, and snippets.

View Anderson-Juhasc's full-sized avatar
:octocat:
Looking for work

Anderson Juhasc Anderson-Juhasc

:octocat:
Looking for work
View GitHub Profile
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@Anderson-Juhasc
Anderson-Juhasc / gist:4751217
Last active February 21, 2017 09:48
Responsive navigation object BEM, see: http://codepen.io/Anderson-Juhasc/pen/wmHcD
.nav-responsive {
list-style: none;
padding-left: 0;
}
.nav-responsive__item {
display: block;
border-bottom: 1px solid #999;
&:last-child {
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
;(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"){
/**
* 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
@Anderson-Juhasc
Anderson-Juhasc / convertUSDtoBTC.php
Created January 5, 2015 15:33
Conversão de preço USD para BTC
<!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;
@Anderson-Juhasc
Anderson-Juhasc / dema.js
Last active August 26, 2015 13:01
dema talib
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);
//}
<?php
$guid = BLOCKCHAIN_ID;
$main_password = BLOCKCHAIN_PASS;
$json = getCurl("https://blockchain.info/pt/merchant/$guid/new_address?password=$main_password");
echo $json;
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;
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);