Here's a simple datetime chart made with this unpretending React.js SVG library.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 getJSON (url, callback) { | |
var xhr; | |
xhr = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState === 4) { | |
if (callback) { | |
callback(xhr.responseText); | |
} | |
} | |
}; |
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 fields = { | |
'form:numDocumento': 'value', | |
'form:dnomeRazaoSocial': 'value', | |
'form:cep': 'value', | |
'form:logradouro': 'value', | |
'form:numero': 'value', | |
'form:complemento': 'value', | |
'form:bairro': 'value', | |
'form:municipioTomadorServico': '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
var form = '<div style="position:absolute;left:50%;top:50%;margin-left:-150px;margin-top:-100px;width:300px;height:200px;"><form id="loginForm"><input placeholder="nome" name="name"><input placeholder="senha" type="password" name="password"><button onclick="login(event)">OK</button></form></div>'; | |
document.write(form); | |
function login(event) { | |
event.preventDefault(); | |
event.returnValue = false; | |
var form = document.getElementById('loginForm'); | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function () { | |
if (xhr.readyState === 4) { |
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
if (tx.value < 100 * block.basefee) { | |
return | |
} | |
if (tx.data[0] == 'BUY') { | |
// buy deal | |
payment = tx.value - 100 * block.basefee | |
shareholders = contract.storage['sh'] | |
deal = contract.storage[tx.data[1]] | |
if (payment >= deal.price*1.02) { |
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
// jquery | |
window.posts = {} | |
var fetch = function () { | |
$('div[role="article"] span.fcg span.fwb a[href^="https://www.facebook.com/olavo.decarvalho"]').each(function () { | |
var post = {} | |
var elem = $(this).closest('div[role="article"]') | |
if (!elem) return |
I hereby claim:
- I am fiatjaf on github.
- I am fiatjaf (https://keybase.io/fiatjaf) on keybase.
- I have a public key whose fingerprint is 1D05 7FBD 3171 53FB ECED 6929 8F81 0203 6444 CDD2
To claim this, I am signing this object:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder