Skip to content

Instantly share code, notes, and snippets.

View carlosdelfino's full-sized avatar
💭
Estudando Salesforce e seu ecosistema

Carlos Delfino carlosdelfino

💭
Estudando Salesforce e seu ecosistema
View GitHub Profile
@carlosdelfino
carlosdelfino / main.c
Created January 18, 2020 23:47
Japanese Taiko Drum Sensei
/*
File: main.c
Date: November 28th, 2012
Description: This file implements the Japanese Taiko Drum Sensei.
-----------
See Bruce Land's "CORNELL ECE 4760" Website for description of project:
< http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/ >
Authors:
@carlosdelfino
carlosdelfino / _README.md
Created January 18, 2020 19:41 — forked from mauriciopoppe/_README.md
MathJax numbered equation preview on Jekyll

MathJax numbered equation preview

No need to click on an a tag to see the equation, just hover on any <a> tag created using \eqref{label} and that's it!

Contents:

@carlosdelfino
carlosdelfino / Testes com Piezo Eletrico
Created January 17, 2020 18:39
Código para analise de funcionamento do Piezo Eletrico
/*
* Favor manter este cabeçalho e citar meu nome e meu site (carlosdelfino.eti.br) quando referir-se a este código.
* Autor Carlos Delfino {professor@carlosdelfino.eti.br}
*/
void setup() {
Serial.begin(9600);
pinMode(A0,OUTPUT);
pinMode(A2,OUTPUT);
pinMode(A3,OUTPUT);
@carlosdelfino
carlosdelfino / exemplo.c
Last active January 7, 2020 21:38
Exemplo de Algorítimo para uso com shields que usam botões pela porta analógica (https://www.autocorerobotica.com.br/display-lcd-shield-com-teclado)
/**
* Shield indicado: https://www.autocorerobotica.com.br/display-lcd-shield-com-teclado
*/
byte readButton() {
int botao = analogRead (BUTTON_PORT);
if (botao < BUTTON_LIMIAR_DIREITA) {
return BUTTON_RIGHT;
} else if (botao < BUTTON_LIMIAR_CIMA) {
return BUTTON_UP;
} else if (botao < BUTTON_LIMIAR_BAIXO) {
@carlosdelfino
carlosdelfino / .dockerignore
Last active November 25, 2019 17:35
adjusts in docker files to use in quran.com project frontend v1
*.DS_Store
.vscode
.idea/
.awcache
.circleci
.github
.storybook
.git
build
dist
@carlosdelfino
carlosdelfino / .dockerignore
Created November 25, 2019 12:06
adjusts in docker files to use in quran.com project frontend v1
*.DS_Store
.vscode
.idea/
.awcache
.circleci
.github
.storybook
.git
build
dist
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.6.5'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.0.beta1'
@carlosdelfino
carlosdelfino / README.md
Created October 12, 2019 18:57
HUFFMAN CODING IN C

HUFFMAN CODING IN C

Huffman coding is a compression method which generates variable-length codes for data – the more frequent the data item, the shorter the code generated. This allows more efficient compression than fixed-length codes. This is an implementation of the algorithm in C. The function huffman() takes arrays of letters and their frequencies, the length of the arrays, and a callback which is called for each code generated. The algorithm requires a priority queue, and I used a min-heap for the purpose.

DYNAMIC ARRAY IN C

A dynamic array is one that grows to accommodate new items, overcoming the limitations of fixed-size arrays. New items can be added at the head or tail, or inserted in the middle. Existing elements are moved to accommodate new ones as necessary.

MIN-HEAP IN C

@carlosdelfino
carlosdelfino / CMakeLists.txt
Last active October 7, 2019 13:45
Exemplo de configuração e codificação usando VCPkg e CMaker
# CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project("Hello World OpenCV com VCPkg e CMake")
find_package(OpenCV CONFIG REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE opencv_core opencv_imgproc opencv_videoio opencv_highgui)
@carlosdelfino
carlosdelfino / Readme.md
Last active April 13, 2019 16:51 — forked from mheadd/fastagi.js
Node.js script to execute FastAGI application

Launch the node TCP server for FastAGI:

~$ node path/to/fastagi.js

Add a context for FastAGI testing:

[fastagi-test]