Skip to content

Instantly share code, notes, and snippets.

@senhorinha
senhorinha / fuzzy-new.r
Last active June 26, 2016 23:12
Fuzzy Logic using R
#!/usr/bin/env Rscript
library("sets")
# Step 1 - Setting up the Fuzzy Logic
sets_options("universe", seq(from = 0, to = 40, by = 1))
# Step 1.1 - Setting up the Variables
variables =
set(
@senhorinha
senhorinha / fuzzy-logic.r
Last active May 16, 2016 10:46
Fuzzy Logic using R
#!/usr/bin/env Rscript
library("sets")
# Step 1 - Setting up the Fuzzy Logic
sets_options("universe", seq(from = 0, to = 40, by = 1))
# Step 1.1 - Setting up the Variables
variables =
set(
@senhorinha
senhorinha / layout_linkedin.md
Created April 28, 2016 12:17
Estudo do layout do Linkedin

Linkedin

Combinações

Apenas Imagem

Imagem Grande:

Imagem grande

@senhorinha
senhorinha / facebook_layout.md
Created April 28, 2016 11:47
Estudo do layout do Facebook
@senhorinha
senhorinha / twitter_layout.md
Last active April 28, 2016 11:45
Estudo do layout do Twitter

Twitter

Combinações

Apenas Imagem

Imagem Grande:

Imagem grande

@senhorinha
senhorinha / calc_numer_errors.m
Created March 18, 2016 18:00
18/03 - errors, arredondamento etc
format long
x_default_format = 0.1
x_single_format = single(0.1)
printf("\nx_default_formatt: %.25f\n", x_default_format)
big_mp_on_32_bits = single(3.4e38)
little_mp_on_32_bits = single(1.e-45)
big_mp_on_64_bits = double(1.797e308)
@senhorinha
senhorinha / exemplo.html
Created June 24, 2015 02:12
Exemplo de como poderia ficar o mais detalhes com ids
<div class="detalhe_empresa">
<i class="glyphicon glyphicon-earphone"></i>
<span id="telefone">(47) 3426-3600</span><br>
<strong>Segundo Telefone:</strong>
<span id="segundoTelefone">(47) 3426-2222</span><br>
<strong>Horário de Atendimento:</strong>
<span id="horarioDeAtendimento">DAS 08:00 AS 18:00 HRS, DE SEGUNDA A SEXTA-FEIRA</span>.<br>
<strong>Plantão:</strong>
<span id="plantao">* PLANTAO 24 HORAS NO FONE: 3426-3600 *</span><br>
<strong>Site:</strong>
@senhorinha
senhorinha / error.java
Created May 26, 2015 20:35
Erro ao tentar sincronizar
01:45:09,477 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/esus].[services]] (http-/0.0.0.0:8080-2) JBWEB000236: Servlet.service() for servlet services threw exception: org.apache.thrift.TException: Service name not found: sync-server. Did you forget to call registerProcessor()?
at br.gov.saude.esus.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:102) [transport.common.api-2.0.00-Pacote-5.jar:]
at org.apache.thrift.server.TServlet.doPost(TServlet.java:83) [libthrift-0.9.0.jar:0.9.0]
at br.gov.saude.esus.transport.service.impl.WebServices.doPost(WebServices.java:41) [transport.service.impl.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final.jar:7
@senhorinha
senhorinha / missing_artifact.md
Last active August 29, 2015 14:21
Erros cds.ear/pom.xml
Missing artifact br.gov.saude.esus:ad.business.impl:jar:2.0.00-Pacote-4	pom.xml	/cds.ear
Missing artifact br.gov.saude.esus:esus.jpa.config:jar:2.0.00-Pacote-4	pom.xml	/cds.ear
Missing artifact br.gov.saude.esus:esus.web:war:2.0.00-Pacote-4	pom.xml	/cds.ear
@senhorinha
senhorinha / envio.rb
Last active August 29, 2015 14:21
O que envia
UnidadeSaudeThrift(nome:SERVICO DE ATENCAO DOMICILIAR, cnes:6882676, bairro:GASPAR ALTO, localidadeIbge:4205902)
EquipeThrift(nome:EMAD 2, ine:0000000002)
ProfissionalThrift(cpf:05954948976, cns:000010000000000, nome:PROFISSIONAL UM COOR AD E DA UBS, senha:9cff07e6fdf27046631a14191bdb6b13)
LotacaoThrift(serverId:6, cpfProfissional:05954948976, cnesUnidadeSaude:6882676, ineEquipe:0000000002, cbo2002Profissional:131205, ativo:true)
LotacaoThrift(serverId:5, cpfProfissional:05954948976, cnesUnidadeSaude:6882676, ineEquipe:0000000002, cbo2002Profissional:131210, ativo:true)
DomicilioThrift(uuid:6882676-71dddc94-c60f-4e72-bc97-b6c123314128, tipoLogradouroDne:081, logradouro:NATALÍCIO VIEIRA, numero:104, semNumero:false, cep:88160000, bairro:JARDIM CARANDAÍ, localidadeIbge:4202305, dataAtualizacao:1430092800000)
DomicilioThrift(uuid:6882676-63fcf894-773e-46cc-8e72-53aa5e2f3bb0, tipoLogradouroDne:081, logradouro:AVENIDA BRASIL, numero:001, semNumero:false, complemento:CASA, cep:88888888, bairro:JARDIM CIDADE, locali