Skip to content

Instantly share code, notes, and snippets.

Fernando Camargo fernandocamargoti

Block or report user

Report or block fernandocamargoti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fernandocamargoti
fernandocamargoti / multilayer_perceptron.py
Created Apr 13, 2018
Rede Neural implementada com numpy
View multilayer_perceptron.py
import numpy as np
from typing import List, Callable, Tuple
import math
def shuffle(a: np.ndarray, b: np.ndarray) -> Tuple[np.ndarray, np.ndarray]:
assert len(a) == len(b)
p = np.random.permutation(len(a))
return a[p], b[p]
View danfe_nfce_80.jrxml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.0.final using JasperReports Library version 6.3.0 -->
<!-- 2016-11-24T10:44:25 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="danfe_nfce_80" pageWidth="226" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="214" leftMargin="2" rightMargin="10" topMargin="2" bottomMargin="2" uuid="5ce393bf-1e81-4d5c-8158-54fb1fa7db75">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="mm"/>
<property name="com.jaspersoft.studio.data.sql.tables" value="ZmlsaWFsIEFTICw2OCwyLGI4NDNiMGE4LTgzOTEtNDU1MC05YzZkLTEzMmZjZDkxYTE0OTs="/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio
View darktable-workflow.md

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
View fragment_comissarios.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/progress_bar" />
@fernandocamargoti
fernandocamargoti / TipoDeIngressoParaComissarioCard.java
Created Jun 16, 2014
TipoDeIngressoParaComissarioCard - Updated
View TipoDeIngressoParaComissarioCard.java
package com.meubilhete.pontodevenda.ui.card;
import android.content.Context;
import android.content.res.Resources;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
View card_tipo_de_ingresso_para_comissario.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
View TipoDeIngressoParaComissarioCard.java
package com.meubilhete.pontodevenda.ui.card;
import android.content.Context;
import android.content.res.Resources;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
@fernandocamargoti
fernandocamargoti / log.txt
Created Apr 30, 2014
SQLiteConnectionPool﹕ The connection pool for database [...] has been unable to grant a connection [...]
View log.txt
04-30 15:03:19.289 2312-6270/com.meubilhete D//SpiceServiceListenerNotifier.java:146﹕ 15:03:19.293 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {4435ade0}
04-30 15:03:19.289 2312-6270/com.meubilhete D//RequestProgressManager.java:82﹕ 15:03:19.297 SpiceManagerThread 0 Sending progress PENDING
04-30 15:03:19.289 2312-6270/com.meubilhete D//SpiceServiceListenerNotifier.java:146﹕ 15:03:19.299 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {4435ade0}
04-30 15:03:19.299 2312-2312/com.meubilhete D//SpiceServiceListenerNotifier.java:175﹕ 15:03:19.304 main Processing request added: CachedSpiceRequest [requestCacheKey=ClientRequest, cacheDuration=0, spiceRequest=com.meubilhete.service.rest.request.ClientRequest@43d602e0]
04-30 15:03:19.299 2312-2312/com.meubilhete V//DefaultRequestListenerNotifier.java:131﹕ 15:03:19.306 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@43d60318
04-30 15:03:19.299 2312-6270/com.m
@fernandocamargoti
fernandocamargoti / complete.log
Created Apr 25, 2014
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.meubilhete/files/meu-bilhete.cblite
View complete.log
This file has been truncated, but you can view the full file.
D//SpiceManager.java:281(27384): 11:33:42.752 SpiceManagerThread 0 Sending request to service : CachedSpiceRequest
D//RequestProcessor.java:66(27384): 11:33:42.755 SpiceManagerThread 0 Adding request to queue 1134231048: CachedSpiceRequest [requestCacheKey=ClientRequest, cacheDuration=0, spiceRequest=com.meubilhete.service.rest.request.ClientRequest@439dee30] size is 0
D//RequestProcessor.java:85(27384): 11:33:42.756 SpiceManagerThread 0 Adding entry for type class com.meubilhete.model.rest.Client and cacheKey ClientRequest.
D//RequestProgressManager.java:61(27384): 11:33:42.758 SpiceManagerThread 0 Request was added to queue.
D//SpiceServiceListenerNotifier.java:146(27384): 11:33:42.771 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {43ae2dd8}
D//SpiceServiceListenerNotifier.java:175(27384): 11:33:42.775 main Processing request added: CachedSpiceRequest [requestCacheKey=ClientRequest, cacheDuration=0, spiceRequest=com.meubilhete.service.rest.request.ClientRequest@439dee30]
@fernandocamargoti
fernandocamargoti / complete.log
Created Apr 25, 2014
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.meubilhete/files/meu-bilhete.cblite
View complete.log
04-25 10:16:54.628 5659-5659/com.meubilhete D/DrawerActivity﹕ Mudando conteúdo: GerenciarEntradaFragment.
04-25 10:16:54.638 5659-5659/com.meubilhete D/DrawerActivity﹕ Mudando conteúdo: GerenciarEntradaFragment.
04-25 10:16:54.638 5659-5659/com.meubilhete D/DrawerActivity﹕ Evento lançado: MenuSelecionadoEvent.
04-25 10:16:54.638 5659-5659/com.meubilhete D/DrawerActivity﹕ Evento lançado: MenuSelecionadoEvent.
04-25 10:16:54.638 5659-5659/com.meubilhete D//SpiceManager.java:212﹕ 10:16:54.644 main SpiceManager started.
04-25 10:16:54.638 5659-5659/com.meubilhete D/GerenciarEntradaFragment﹕ onAttach()
04-25 10:16:54.648 5659-5659/com.meubilhete D/GerenciarEntradaFragment﹕ onActivityCreated()
04-25 10:16:54.648 5659-5659/com.meubilhete D/GerenciarEntradaFragment﹕ onStart()
04-25 10:16:54.648 5659-5659/com.meubilhete D/DrawerActivity﹕ Evento lançado: FragmentVisivelEvent.
04-25 10:16:54.648 5659-5659/com.meubilhete D/DrawerActivity﹕ Evento lançado: FragmentVisivelEvent.
You can’t perform that action at this time.