Skip to content

Instantly share code, notes, and snippets.

View zafe's full-sized avatar
💭
Esslingen, Deutschland 🇩🇪

Fernando Zafe zafe

💭
Esslingen, Deutschland 🇩🇪
View GitHub Profile
package application.view.sueldo.cruds;
import application.model.info.CategoriaEmpleado;
import application.model.info.Empleado;
import application.model.sueldo.ConceptoSueldo;
import application.repository.info.CategoriaEmpleadoRepository;
import application.repository.sueldo.ConceptoSueldoRepository;
import application.repository.info.EmpleadoRepository;
import application.view.sueldo.EmpleadoALiquidar;
import javafx.collections.FXCollections;
@zafe
zafe / ocr2voice.py
Created November 21, 2018 07:58
OCR to voice
#by PradiptaSaha999
import tesseract
import cv2
import cv2.cv as cv
import numpy as np
import pyttsx
engine = pyttsx.init()
engine.setProperty('rate', 100)
@zafe
zafe / Matrices.cpp
Created March 19, 2020 16:50
Ejercicio con matrices y funciones en C++
#include <iostream>
using namespace std;
float promedio();
int main()
{
cout<< "El promedio es " << promedio();
public abstract class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected bool SetProperty<T>(ref T field, T newValue, [CallerMemberName]string propertyName = null)
{
if(!EqualityComparer<T>.Default.Equals(field, newValue))
{
field = newValue;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
public class ViewModel : ViewModelBase
{
public ICommand ChangeNameCommand { get; }
...
}
public class DelegateCommand : ICommand
{
private readonly Action<object> _executeAction;
func cropImage(using image: UIImage, in rectangle: CGRectMake ) -> UIImage {
//Note: CGRect CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height)
let cgImage = CGImageCreateWithImageInRect(image.CGImage, rectangle)
let croppedImage: UIImage = UIImage(CGImage: cgImage!)
return croppedImage
}
@zafe
zafe / CBUValidator.swift
Created August 23, 2023 00:37
CBU Validator
//
// CBUValidator.swift
// CBU Scanner
//
// Created by Fernando Zafe on 21/08/2023.
//
import Foundation
class CBUValidator {