Skip to content

Instantly share code, notes, and snippets.

View fernandojunior's full-sized avatar

Fernando Felix fernandojunior

  • Brazil
View GitHub Profile
@fernandojunior
fernandojunior / gist:42292d228fed3495e634dec6291c6946
Last active January 4, 2017 15:42
naming conventions programming
http://www.english-for-students.com/FormationofWords.html
http://www.gingersoftware.com/content/grammar-rules/nouns/compound-nouns/
http://pt.stackoverflow.com/questions/301/devo-escrever-meu-programa-em-ingl%C3%AAs-ou-portugu%C3%AAs
https://dzone.com/articles/best-practices-variable-and
https://www.python.org/dev/peps/pep-0008/#naming-conventions
https://gist.github.com/sloria/7001839
@fernandojunior
fernandojunior / bobp-python.md
Created January 3, 2017 15:07 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@fernandojunior
fernandojunior / api.yml
Last active January 26, 2017 14:41
api example
/api/file/:
post:
summary: Upload (create or update) a new file
consumes:
- multipart/form-data
produces:
- application/json
parameters:
- name: file
in: formData
@fernandojunior
fernandojunior / analysis.R
Last active September 5, 2016 03:08
kickante collector using seleninum, beautifulsoup4, python
# Quem contribuiu mais frequentemente?
# Quem mais contribuiu em doações?
data = read.csv("data/data.csv")
data$amount = sapply(data$amount, function(x){
x = gsub("\\.", "", x)
x = gsub(",", ".", x)
x = gsub("R\\$", "", x)
if (x == "Não divulgado")
x = '0.0'
http://www.previdencia.gov.br/servicos-ao-cidadao/todos-os-servicos/aposentadoria-por-tempo-de-contribuicao/
http://www.previdencia.gov.br/servicos-ao-cidadao/todos-os-servicos/aposentadoria-por-idade/
http://www.guiatrabalhista.com.br/guia/tabela_inss_empregados.htm
http://www.previdencia.gov.br/wp-content/uploads/2016/01/Fator-Previdenci%C3%A1rio_2016.pdf
https://jus.com.br/duvidas/164613/durante-o-auxilio-doenca-devo-recolher-para-o-inss
http://oprimorico.com.br/aposentadoria/onde-devo-investir-meu-dinheiro-para-garantir-minha-aposentadoria/
http://www.vivoseudinheiro.com.br/saiba-qual-e-o-teto-maximo-do-inss-em-2016/
http://exame.abril.com.br/seu-dinheiro/noticias/aposentadoria-pelo-inss-veja-quanto-o-governo-ira-te-pagar
LEI Nº 8.212 Art 31
@fernandojunior
fernandojunior / CmisSampleClient.java
Created August 23, 2016 13:19 — forked from mryoshio/CmisSampleClient.java
CMIS sample client code using Apache Chemistry
/**
* This code uses Apache Chemistry (http://chemistry.apache.org/).
* License accords to Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@fernandojunior
fernandojunior / gist:252389050e17a45a95d911d75c2b0f33
Last active August 23, 2016 05:24
information gain entropy
# modified from https://github.com/philjette/InformationGain/blob/master/InformationGain.R
# https://philjette.wordpress.com/2015/05/31/feature-selection-using-information-gain-in-r/
library(plyr)
data(iris)
#compute Shannon entropy
entropy <- function(target) {
freq <- table(target)/length(target)
@fernandojunior
fernandojunior / gist:fd7bdaedbb20b7626afbf804e11f8877
Last active August 21, 2016 04:49
template engines frontend javascript
Template engines
https://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more
https://garann.github.io/template-chooser/
https://www.google.com/trends/explore?date=all&q=%2Fm%2F0h96p1q,%2Fm%2F0j9p3_2,%2Fm%2F0bqlhw,jstl
https://github.com/mbosecke/template-benchmark
https://www.bearfruit.org/2014/01/20/node-js-showdown-handlebars-compared/
https://medium.com/javascript-scene/jsx-looks-like-an-abomination-1c1ec351a918
https://github.com/FormidableLabs/radium
https://speakerdeck.com/vjeux/react-css-in-js
https://github.com/ohanhi/hyperscript-helpers
@fernandojunior
fernandojunior / gist:0263c0be77ce25b22fdcc8616280d845
Created August 9, 2016 04:37
entity er table relational diagram
Chen notation x Crow Notation