Skip to content

Instantly share code, notes, and snippets.

View andregnhoato's full-sized avatar

André Gnhoato andregnhoato

  • Frimesa
  • Medianeira - PR
View GitHub Profile
@andregnhoato
andregnhoato / production.properties
Created June 5, 2014 16:04
vraptor simple mail on digital ocean
environment.controller = true
#vraptor.simplemail.main.server = smtp-mail.outlook.com
vraptor.simplemail.main.server = localhost
vraptor.simplemail.main.port = 25
vraptor.simplemail.main.tls = true
vraptor.simplemail.main.from = email@domain.com.br
vraptor.simplemail.main.from.name = name
#vraptor.simplemail.main.username = email@domain.com.br
#vraptor.simplemail.main.password = password
<!-- Button to trigger modal -->
<a href="#myModal" class="btn btn-primary" data-toggle="modal">
<fmt:message key="cadastros.produto.cadastrar"/>
</a>
<br/>
<br/>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" > <!-- role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" -->
<div class="controls">
<select id="categoria" name="produto.categoria" required>
<c:forEach items="${categorias}" var="c">
<option value="${c }" >${c.descricao}</option>
</c:forEach>
</select>
</div>
<!-- Button to trigger modal -->
<a href="#myModal" class="btn btn-primary" data-toggle="modal">
<fmt:message key="cadastros.categoria.cadastrar"/>
</a>
<br/>
<br/>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" > <!-- role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" -->
@andregnhoato
andregnhoato / nn.c
Created November 27, 2013 18:47
neural network, method to be called 'int rede(float *in, float *out, int init)' at line 18161
This file has been truncated, but you can view the full file.
/*********************************************************
nn.c
1x4_8x35_16x16.NET.treinada
Erro SSE:7.958807 Backpropagation FeedForward
Servidor: Mesa
setSeed()
setInitFunc("Randomize_Weights", -1, 1)
setSubShuffle (TRUE)
setLearnFunc( "Std_Backpropagation", 0.2, 0.1)
@andregnhoato
andregnhoato / calculos.java
Last active December 26, 2015 05:19
Partes de código responsável por calcular os coeficientes: CUD, CUC e CUE;
/**
* @param sobreposicaoX sobreposição eixo x laterais
* @param sobreposicaoY sobreposição eixo y aspersores
* @formula cuc possivel visualizar a formula em
* https://dl.dropboxusercontent.com/u/10055997/cuc.gif
*/
public void calculoCuc(float sobreposicaoX, float sobreposicaoY) {
//organiza em um array os valores sobrepostos
List<Float> listaSobreposicao = listaSobreposicao(sobreposicoes, sobreposicaoX, sobreposicaoY);
Float mediaSobreposicao;
@andregnhoato
andregnhoato / ColetaTableView.java
Created October 8, 2013 13:15
ColetaTableView, this class have the 'ColetaItem' this object should represent each cell.
package dr.ui.coleta;
import dr.model.Coleta;
import java.util.List;
import javafx.application.Platform;
import javafx.beans.property.SimpleFloatProperty;
import javafx.collections.ObservableList;
import javafx.scene.control.TableView;
/**
package dr.ui.coleta;
import dr.controller.PersistenceController;
import dr.dao.ColetaDAO;
import dr.dao.ColetaDAOImpl;
import dr.model.Coleta;
import dr.ui.ensaio.*;
import dr.model.Ensaio;
import dr.ui.coleta.ColetaTableView.ColetaItem;
import dr.ui.table.cell.NumericEditableTableCell;
@andregnhoato
andregnhoato / brother_lesson_2.cpp
Last active December 19, 2015 03:08
in short an algorithm to read a collection of positive values ​​and display the square root and cube root! c++ language! without vectors!
#include <iostream>
using namespace std;
int main ()
{
/*váriavel para armazenar a quantidade de valores*/
int quantidade_valores;
/*contador*/
int i=0;
@andregnhoato
andregnhoato / brother_lesson.cpp
Last active December 19, 2015 02:59
in short an algorithm to read a collection of positive values ​​and display the square root and cube root! c++ language!
#include <iostream>
using namespace std;
int main ()
{
/*váriavel para armazenar a quantidade de valores*/
int quantidade_valores;
/*contador*/
int i=0;