Skip to content

Instantly share code, notes, and snippets.

View jlcarvalho's full-sized avatar

Jean Lucas de Carvalho jlcarvalho

View GitHub Profile
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:17 — forked from z3cka/index.html
fbf2
index.html coming
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:17 — forked from z3cka/index.html
fbf2
index.html coming
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:17 — forked from z3cka/index.html
fbf2
index.html coming
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:17 — forked from z3cka/index.html
fbf2
index.html coming
# Retorna dados sobre o pregão
http://www.bmfbovespa.com.br/Pregao-Online/ExecutaAcaoCarregarDados.asp?CodDado=IBOV,ticker&CA=undefined
# Retorna ações e seus últimos valores negociados
http://www.bmfbovespa.com.br/Pregao-OnLine/ExecutaAcaoCarregarDados.asp?CodDado=Ticker
# Retorna o histórico do dia de um papel
http://www.bmfbovespa.com.br/Pregao-Online/ExecutaAcaoCarregarDadosPapeis.asp?CodDado=petr4
# Retorna dados de um papel
var request = require("request"),
cheerio = require("cheerio"),
url = "https://www.google.com/search?q=data+mining",
corpus = {},
totalResults = 0,
resultsDownloaded = 0;
function callback () {
resultsDownloaded++;
#!/bin/sh
echo "+--------------------------+";
echo "| Uninstalling application |"
echo "+--------------------------+";
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} uninstall [com.your.app/.Name]
echo "+------------------------+";
echo "| Installing application |";
echo "+------------------------+";
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} install [path-to-apk]
echo "+----------------------+";
@jlcarvalho
jlcarvalho / ProofOfExistence.sol
Created October 19, 2017 02:45 — forked from ageyev/ProofOfExistence.sol
This smartcontract is used to store documents text on the Ethereum blockchain and to get the document by document's hash (sha256).
/*
This smartcontract is used to store documents text on the Ethereum blockchain
and to get the document by document's hash (sha256).
*/
contract ProofOfExistence{
/* ---- Public variables: */
string public created;
@jlcarvalho
jlcarvalho / combinations.js
Created November 29, 2017 17:32 — forked from axelpale/combinations.js
JavaScript functions to calculate combinations of elements in Array.
/**
* Copyright 2012 Akseli Palén.
* Created 2012-07-15.
* Licensed under the MIT license.
*
* <license>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
class Questions extends React.Component {
render() {
return (
<div>
<h2>opaaaa</h2>
</div>
)
}
};