Skip to content

Instantly share code, notes, and snippets.

#define irLedPin 4 // IR Led on this pin
#define irSensorPin 5 // IR sensor on this pin
int irRead(int readPin, int triggerPin); //function prototype
void setup()
{
pinMode(irSensorPin, INPUT);
pinMode(irLedPin, OUTPUT);
Serial.begin(9600);
String fontPath = "Face Your Fears.ttf";
Typeface tf = Typeface.createFromAsset(getAssets(), fontPath);
TextView appName = (TextView) findViewById(R.id.textView1);
appName.setTypeface(tf);
$( document ).ready(function() {
var lista = $('.block-post-title');
for(var i = 0; i < lista.length; i++){
var url = $(lista[i]).find('a').attr('href');
console.log(url);
window.open(url);
}
});
close all, clear all, clc;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Computacao neuronal e sistemas difusos - mestrado integrado em engenharia
%biomedica 2014/2015
%Elaborado por:
%Gabriela Lopes Costa
%Jose Pedro Oliveira
%
%duvidas ou sugestoes: jpdo@student.fisica.uc.pt
package dataBaseClothesPk;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
public class getServerConnection {
array = [mat2cell(networkName),mat2cell(num2str(numberOfHydenLayers)),mat2cell(transferFunction),mat2cell(num2str(Delay)),mat2cell(num2str(sensitivity)),mat2cell(num2str(specificity)),mat2cell(num2str(accuracy))];
sucess = xlsappend('data.xlsx',array);
%data.xlsx é o teu ficheiro. Ele vai adicionar à linha abaixo da ultima preenchida.
function [sensitivity,specificity,accuracy] = getPerformance(output,testFinalTarget)
%
% [sensitivity,specificity,accuracy] = getPerformance(output,testFinalTarget)
%
% based on:
%
% sensitivity = truePositives / (truePositives + falseNegatives);
% specificity = trueNegatives / (falsePositives + trueNegatives);
% accuracy = (truePositives + trueNegatives) / (truePositives + trueNegatives + falsePositives + falseNegatives);
%
%% CREATING NETWORK
beep
networkName = 'layrecnet';
disp(strcat('network type: ',networkName));
% networkName = 'feedforwardnet';
% networkName = 'newrb';
beep
Delay =input('Delay: ');
%% CREATING NETWORK
beep
networkName = 'layrecnet';
disp(strcat('network type: ',networkName));
% networkName = 'feedforwardnet';
% networkName = 'newrb';
beep
Delay =input('Delay: ');
package adefault.com.pointt;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.media.Image;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;