Skip to content

Instantly share code, notes, and snippets.

View italoag's full-sized avatar
🏠
Working from home

Italo A. G. italoag

🏠
Working from home
View GitHub Profile
@italoag
italoag / reactive_systems_bibliography.md
Created September 11, 2019 23:10 — forked from brendanzab/reactive_systems_bibliography.md
A reading list that I'm collecting while building my Rust ES+CQRS framework: https://github.com/brendanzab/chronicle

Functional, Reactive, and Distributed Systems Bibliography

Books

@italoag
italoag / reactive_systems_bibliography.md
Created September 11, 2019 23:09 — forked from Rubentxu/reactive_systems_bibliography.md
A reading list that I'm collecting while building my Rust ES+CQRS framework: https://github.com/brendanzab/chronicle

Functional, Reactive, and Distributed Systems Bibliography

Books

@italoag
italoag / error_handling.md
Last active August 15, 2019 19:55
Error Handling

Error Handling

Erro ao lidar com armadilhas no Scala

Existem várias estratégias para manipulação de erros no Scala.

Erros podem ser representados como exceções, o que é uma maneira comum de lidar com erros em linguagens como Java. No entanto, as exceções são invisíveis para o sistema de tipos, o que pode dificultar o seu tratamento. É fácil deixar de fora o tratamento de erros necessário, o que pode resultar em erros infelizes de tempo de execução.

No Scala, geralmente é recomendado representar erros como parte do tipo de retorno. Os tipos de biblioteca padrão do Scala, como Either e Try, podem ser usados ​​para capturar erros em operações síncronas, enquanto Future pode ser usado para representar operações assíncronas. Além disso, os programadores do Scala também podem representar diferentes resultados como um tipo personalizado usando recursos de traços selados.

Keybase proof

I hereby claim:

  • I am italoag on github.
  • I am italoag (https://keybase.io/italoag) on keybase.
  • I have a public key ASAvH7daldbcXPcC_uuAICs6l4VK3Woteu1WLWFU4V2U7Ao

To claim this, I am signing this object:

@italoag
italoag / BUILD.md
Last active November 17, 2017 20:09
CouchDB 2.1 + Dreyfus + Clouseau

Introduce Dreyfus into CouchDB

1. download couchdb

git clone https://github.com/apache/couchdb.git

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@italoag
italoag / d3lib.md
Last active August 29, 2015 14:27 — forked from widged/d3lib.md
d3 libraries

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@italoag
italoag / gambiarra.sql
Created May 5, 2011 22:04
Perola do Programador Peroba!
--
-- Caso o erro tenha sido de PK na TBL_CASPETA força o pedido para ser excluido no Mainframe
--
if instr(vc_msg_err,'ORA-00001: unique constraint (OW_DOCK.PK_INVC) violated') <> 0 then
vb_erro_pk_pedido := true; -- engana o programa indicando que o pedido foi ok
else
rollback to pedido;
end if;
commit; -- grava pedidos até o presente momento
vc_msg := 'Pedido (archv_nm='''||nvl(vr_invc.archv_nm,'N00000.PK')||''' and mrkt_cd_nr='||vr_invc.mrkt_cd_nr||' and julian_day_nr='||