Skip to content

Instantly share code, notes, and snippets.

🔍
Searching home work

Carlos Delfino carlosdelfino

🔍
Searching home work
Block or report user

Report or block carlosdelfino

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
@carlosdelfino
carlosdelfino / README.md
Created Oct 12, 2019
HUFFMAN CODING IN C
View README.md

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 Oct 7, 2019
Exemplo de configuração e codificação usando VCPkg e CMaker
View CMakeLists.txt
# 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 Apr 13, 2019 — forked from mheadd/fastagi.js
Node.js script to execute FastAGI application
View Readme.md

Launch the node TCP server for FastAGI:

~$ node path/to/fastagi.js

Add a context for FastAGI testing:

[fastagi-test]
@carlosdelfino
carlosdelfino / gist:e5c90332100682b54b917591d352c14b
Created Feb 7, 2019
Arduinisk, buscando uma solução para comunicar com a porta Serial, recurso chamado SMDI, busco recurso que possa usar para envio e recebimento de dados pela porta serial, sem que seja pelo System() ou TrySystem().
View gist:e5c90332100682b54b917591d352c14b
[arduinisk]
exten => s,1,NoOp
exten => s,2,Set(regx="([a-zA-Z0-9]+)")
exten => s,3,Set(CCIDNAME=$["${CALLERIDNAME}": ${regx}])
exten => s,4,Set(regx="([0-9]+)")
exten => s,5,Set(CCIDNUM=$["${CALLERIDNUM}": ${regx}])
exten => s,6,ComunicaSerial("${DATETIME}, ${CCIDNAME},${CCIDNUM}")
View gist:af15621ed95fa00200c16c49b52e370a
[arduinisk]
exten => s,1,NoOp
exten => s,2,Set(regx="([a-zA-Z0-9]+)")
exten => s,3,Set(CCIDNAME=$["${CALLERIDNAME}": ${regx}])
exten => s,4,Set(regx="([0-9]+)")
exten => s,5,Set(CCIDNUM=$["${CALLERIDNUM}": ${regx}])
exten => s,6,ComunicaSerial("${DATETIME}, ${CCIDNAME},${CCIDNUM}")
View Vibration Meter - LCD out.ino
// Vibration meter
// v1.0, June 2014
// GrMis - RCGROUPS
// Mais Informações visite: http://forum.arduino.cc/index.php?topic=225776.0 ou https://www.rcgroups.com/forums/showthread.php?2197784-DIY-vibration-meter-for-propeller-or-motor-balancing-%28etc-%29-Arduino-MMA7361
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x20 // I2C for PCF8574A inside the MJKDZ
View tslint.json
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["node_modules/**/*.ts"]
},
"rules": {
"interface-over-type-literal": false,
"jsx-boolean-value": [true, "never"],
"jsx-no-lambda": false,
"no-console": false,
View gist:03ab7e43871b0ef33ef3bf870afde488
### Keybase proof
I hereby claim:
* I am carlosdelfino on github.
* I am carlosdelfino (https://keybase.io/carlosdelfino) on keybase.
* I have a public key whose fingerprint is 4504 30C3 504C AF58 ABB4 4238 153A 1E26 C8DB A2D4
To claim this, I am signing this object:
@carlosdelfino
carlosdelfino / watch config-manager.js
Last active Aug 6, 2018
Um sistema que permite manter as propriedades atualizadas conforme alterações de registros no banco de dados
View watch config-manager.js
const BaseManager = require('./base-manager');
const Config = require('../models/config');
let count = 0;
function checkProp(key) {
return typeof key === 'symbol' ||
(typeof key === 'object' && Object.prototype.toString.call(key) === '[object Symbol]') || ['model', 'isNew', 'errors'].indexOf(key.toString()) > -1 ||
!isNaN(key) ||
/^\$/.test(key) ||
@carlosdelfino
carlosdelfino / housing.ipynb
Last active Aug 2, 2018
handson-ml-scikit-tensorflow/housing.ipynb
View housing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.