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
<?php
$guid = BLOCKCHAIN_ID;
$main_password = BLOCKCHAIN_PASS;
$json = getCurl("https://blockchain.info/pt/merchant/$guid/new_address?password=$main_password");
echo $json;
@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);
//}
@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;
/**
* 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
;(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"){
{
"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 getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null)
return "";
else
return decodeURIComponent(results[1].replace(/\+/g, " "));
@Anderson-Juhasc
Anderson-Juhasc / BEM-inuit.css.md
Created October 4, 2012 14:36 — forked from csswizardry/BEM-inuit.css.md
Thoughts on BEM for inuit.css

Bringing BEM to inuit.css

BEM is a methodology for naming and classifying CSS selectors in a way to make them a lot more strict, transparent and informative.

The naming convention follows this pattern:

.block{}
.block__element{}
.block--modifier{}