This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CBUValidator.swift | |
// CBU Scanner | |
// | |
// Created by Fernando Zafe on 21/08/2023. | |
// | |
import Foundation | |
class CBUValidator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ViewModel : ViewModelBase | |
{ | |
public ICommand ChangeNameCommand { get; } | |
... | |
} | |
public class DelegateCommand : ICommand | |
{ | |
private readonly Action<object> _executeAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
float promedio(); | |
int main() | |
{ | |
cout<< "El promedio es " << promedio(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#by PradiptaSaha999 | |
import tesseract | |
import cv2 | |
import cv2.cv as cv | |
import numpy as np | |
import pyttsx | |
engine = pyttsx.init() | |
engine.setProperty('rate', 100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
CONCEPTO_SUELDO.idCodigoConcepto, | |
CONCEPTO_SUELDO.descripcion, | |
CONCEPTO_SUELDO.cantidad, | |
CONCEPTO_SUELDO.tipo_concepto | |
FROM | |
CONCEPTO_SUELDO | |
INNER JOIN | |
TIPO_LIQUIDACION ON TIPO_LIQUIDACION.CONCEPTO_SUELDO_idCodigoConcepto = CONCEPTO_SUELDO.idCodigoConcepto | |
INNER JOIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import FBSDKCoreKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER $$ | |
-- Returns value in Km (Kilometers) | |
CREATE FUNCTION distance_points (lat1 FLOAT, lng1 FLOAT, lat2 FLOAT, lng2 FLOAT) | |
RETURNS FLOAT | |
DETERMINISTIC | |
BEGIN | |
RETURN (acos(sin(radians(lat1)) * sin(radians(lat2)) + | |
cos(radians(lat1)) * cos(radians(lat2)) * | |
cos(radians(lng1) - radians(lng2))) * 6371); | |
END$$ |
NewerOlder