Skip to content

Instantly share code, notes, and snippets.

View victorsanunes's full-sized avatar
🎯
Focusing

Sassa victorsanunes

🎯
Focusing
  • Nubank
  • São Paulo - Brazil
View GitHub Profile
@victorsanunes
victorsanunes / gist:cf40f15e622a0c5d470bec9dc067fc79
Created July 24, 2019 12:30 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@victorsanunes
victorsanunes / euclideanDistance.c
Last active August 17, 2018 18:30
Calculation of euclidean distance using polar coordinates
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#define N 16
#define MAX_THREADS 2
#define MAX_RANGE 100
@victorsanunes
victorsanunes / funcao_prox_estado.v
Last active September 29, 2023 16:22
Maquina de Estados Finitos em Verilog
module maquina_de_estados(clock_placa, reset, up_down, display);
input clock_placa ,reset;
wire clock_dividido;
input [1:0] up_down;
reg [3:0] saida;
output [6:0] display;
reg [3:0] estadoAtual;
parameter S2 = 4'd0, S1 = 4'd1, S8 = 4'd2, S3 = 4'd3,
S7 = 4'd4, S0 = 4'd5, S4 = 4'd6, S3I = 4'd7, S6 = 4'd8,
@victorsanunes
victorsanunes / display7segmentos.v
Last active December 17, 2015 00:17
Projeto de somador de 2 bits em verilog
module display_verilog(W, X, Y, Z, saida);
wire [3:0]entrada;
input W, X, Y, Z;
output reg[6:0]saida;
//reg saida;
assign entrada = {W, X, Y, Z};
always@(*)
begin
case (entrada)
module display_verilog(W, X, Y, Z, saida);
wire [3:0]entrada;
input W, X, Y, Z;
output reg[6:0]saida;
//reg saida;
assign entrada = {W, X, Y, Z};
always@(*)
begin
case (entrada)
package threads;
public class ContaNum implements Runnable{
public int cont;
public int ini;
public int fim;
public ContaNum(int ini, int fim){
cont = 0;
this.ini = ini;
#Implementation of ORB algorithm using OpenCV
#Tutorial 1 - http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_orb/py_orb.html
#Tutorial 2 - http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html
import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('letras.png',0) #train image
#initiate detector
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "opencv2\opencv.hpp"
#include <opencv2\nonfree\features2d.hpp>
using namespace std;
using namespace cv;
@victorsanunes
victorsanunes / sift.cpp
Created November 25, 2015 11:18 — forked from lxc-xx/sift.cpp
OpenCV's SIFT implementation
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
@victorsanunes
victorsanunes / vigilancia2.cpp
Created November 25, 2015 11:08 — forked from marcoscastro/vigilancia2.cpp
PAA - Problema Vigilância - Solução 2
#include <iostream>
using namespace std;
void permuta(string s, int indice, int s_size,
int proibidos[], int pos_proibidos[], int total_size)
{
if(indice == s_size)
{
int index_string = 0;