This file contains 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 dolarHojePegaCotacao(url, reference){ | |
return parseFloat(UrlFetchApp.fetch(url.replace(/([^\/]+)$/, '$1/') + "cotacao.txt").getContentText().replace(',', '.')); | |
} | |
function refresh() { | |
SpreadsheetApp.getActiveSheet().getActiveCell().setValue("Última atualização: " + new Date().toLocaleString()); | |
} | |
function onOpen(e) { | |
SpreadsheetApp.getUi().createMenu('Dólar Hoje').addItem('Atualizar', 'refresh').addToUi(); |
This file contains 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 dolarHojeExtract(url, reference){ | |
return UrlFetchApp.fetch(url.replace(/([^\/]+)$/, '$1/') + "cotacao.txt").getContentText(); | |
} | |
function refresh() { | |
SpreadsheetApp.getActiveSheet().getActiveCell().setValue("Última atualização: " + new Date().toLocaleString()); | |
} | |
function onOpen(e) { | |
SpreadsheetApp.getUi().createMenu('Dólar Hoje').addItem('Atualizar', 'refresh').addToUi(); |
This file contains 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
<a href="http://dolarhoje.com/" class="dolar-hoje-button" data-currency="dolar">Dólar Hoje</a><script async src="//s3.amazonaws.com/dolarhoje-widgets/v1.js"></script> |
This file contains 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
<input type="text" name="cpf" id="cpf" placeholder="CPF"></input> | |
<input type="text" name="nome" id="nome" placeholder="Nome" disabled="disabled"></input> |
This file contains 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<requisicao-transacao id="1319458714" versao="1.1.0"> | |
<dados-ec> | |
<numero>1001734898</numero> | |
<chave>e84827130b9837473681c2787007da5914d6359947015a5cdb2b8843db0fa832</chave> | |
</dados-ec> | |
<dados-pedido> | |
<numero>R557887155</numero> | |
<valor>100</valor> | |
<moeda>986</moeda> |
This file contains 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
<img class="lazy" src="placeholder.gif" original-src="original-image.jpg" /> | |
<noscript> | |
<img src="original-image.jpg" /> | |
</noscript> |
This file contains 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
/Users/pedromenezes/.rvm/gems/ruby-1.9.2-p180@itsm/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require': no such file to load -- config/initializers/simple_navigation (LoadError) |
This file contains 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
GitHub.TreeFinder = function() { | |
if ($("#slider").length != 0) { | |
var a = this; | |
$.hotkeys({ | |
t: function() { | |
a.show() | |
} | |
}); | |
var d = new Image; | |
d.src = "/images/modules/ajax/spinner.gif" |
This file contains 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
VALUE | |
rb_fix2str(VALUE x, int base) | |
{ | |
extern const char ruby_digitmap[]; | |
char buf[SIZEOF_VALUE*CHAR_BIT + 2], *b = buf + sizeof buf; | |
long val = FIX2LONG(x); | |
int neg = 0; | |
if (base < 2 || 36 < base) { | |
rb_raise(rb_eArgError, "invalid radix %d", base); |
This file contains 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
Exception in thread "main" java.lang.IllegalArgumentException: No matching ctor found for class java.io.File (project.clj:1) | |
at clojure.lang.Compiler.eval(Compiler.java:5440) | |
at clojure.lang.Compiler.load(Compiler.java:5857) | |
at clojure.lang.Compiler.loadFile(Compiler.java:5820) | |
at clojure.lang.RT$3.invoke(RT.java:296) | |
at leiningen.core$read_project.invoke(core.clj:108) | |
at leiningen.core$read_project.invoke(core.clj:111) | |
at leiningen.core$_main.doInvoke(core.clj:242) | |
at clojure.lang.RestFn.applyTo(RestFn.java:138) | |
at clojure.core$apply.invoke(core.clj:542) |
NewerOlder