Skip to content

Instantly share code, notes, and snippets.

View evallesv's full-sized avatar
🎯
Focusing

Eduardo Valle evallesv

🎯
Focusing
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
Index,User Id,First Name,Last Name,Sex,Email,Phone,Date of birth,Job Title
1,5f10e9D33fC5f2b,Sara,Mcguire,Female,tsharp@example.net,(971)643-6089x9160,1921-08-17,"Editor, commissioning"
2,751cD1cbF77e005,Alisha,Hebert,Male,vincentgarrett@example.net,+1-114-355-1841x78347,1969-06-28,Broadcast engineer
3,DcEFDB2D2e62bF9,Gwendolyn,Sheppard,Male,mercadojonathan@example.com,9017807728,1915-09-25,Industrial buyer
4,C88661E02EEDA9e,Kristine,Mccann,Female,lindsay55@example.com,+1-607-333-9911x59088,1978-07-27,Multimedia specialist
5,fafF1aBDebaB2a6,Bobby,Pittman,Female,blevinsmorgan@example.com,3739847538,1989-11-17,Planning and development surveyor
6,BdDb6C8Af309202,Calvin,Ramsey,Female,loretta85@example.com,001-314-829-5014x1792,2017-08-31,Therapeutic radiographer
7,FCdfFf08196f633,Collin,Allison,Male,yvaughn@example.net,(314)591-7413,1979-11-21,Administrator
8,356279dAa0F7CbD,Nicholas,Branch,Male,greerjimmy@example.net,+1-667-666-5867,2006-01-21,Fisheries officer
9,F563CcbFBfEcf5a,Emma,Robinson,Female,charleshiggi
@evallesv
evallesv / iris.csv
Created May 18, 2025 01:44
Iris Dataset
sepal_len sepal_wid petal_len petal_wid class
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3.0 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5.0 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5.0 3.4 1.5 0.2 Iris-setosa
4.4 2.9 1.4 0.2 Iris-setosa
@evallesv
evallesv / clasificacion.md
Created April 24, 2025 02:53
Clasificación

Okay, let's create an example of document text classification using Microsoft.ML.TorchSharp.

The Microsoft.ML.TorchSharp package provides deep learning capabilities within ML.NET, and one of the trainers that leverages this is the TextClassificationTrainer. This trainer is designed specifically for text classification tasks and uses deep learning models (like Bi-LSTM or Transformer variants, depending on the exact implementation details and versions) under the hood, powered by TorchSharp.

You don't explicitly write the TorchSharp model code yourself when using this trainer; ML.NET handles the model definition and training loop internally using the TorchSharp backend.

Prerequisites:

  1. Install .NET 6 or later SDK.
  2. Create a new .NET Console Application project.
@evallesv
evallesv / NuevoCertificado.ps1
Created February 18, 2025 23:59
Generación de un nuevo certificado autofirmado generado para 10 años y compatible con las nuevas versiones de Edge y Chrome
# Variables de organización
$orgName = "Empresa"
$subjectName = "Nombre de Servidor o aplicación"
$deptName = "Departamento de la organización"
$location = "Ubicacion de la empresa"
$country = "Pais de la empresa"
$domains = "nombre-de-servidor", "nombre-de-servidor.empresa.local"
$securePassword = "53cUr3P@ssw0rd!"
$currentPath = Get-Location
<div><a href="https://my.anydesk.com/v2/api/v2/custom-clients/downloads/YMGQFMDDONBU/AnyDesk Client.exe"><img src="https://get.anydesk.com/_static/dl-btn-wr-large.png" alt="Download AnyDesk"/></a></div>
using System.Reflection;
using System.Xml;
//Nombre de la variable que quieras cambiar
string xpath = "[configuration/userSettings]";
string key= "[CONFIGURACION]";
string value = "[VALORE ]";//valor
public void function UpdateConfig (string xpath, string key, string value){
XmlDocument xmlDoc = new XmlDocument();
@evallesv
evallesv / index.html
Created October 29, 2021 00:37
Electron-issue-31569
<!DOCTYPE html>
<html lang="en">
<head>
<title>IPC Example</title>
</head>
<body>
<h1>IPC Example</h1>
<p>Open the developer tools to see the IPC in action.</p>
<script>
require('./renderer.js')
@evallesv
evallesv / transfer.cmd
Created January 7, 2021 22:42
Transfer data between Sqlite databases (FAST)
#Having sqlite command line installed from https://sqlite.org/download.html
sqlite3 destination.sqlite #open database
ATTACH origin.sqlite as orig #attach the origin database
.databases #see all databases
.tables #see all tables
BEGIN TRANSACTION
INSERT INTO destTable SELECT * FROM orig.originTable;
END TRANSACTION;
@evallesv
evallesv / datatranfer.cs
Created January 7, 2021 22:30
Data transfer from sqlite databases (SLOW)
using System;
using System.Threading.Tasks;
using Microsoft.Data.Sqlite;
namespace DataTransfer
{
class datatransfer
{
static async Task Main(string[] args)
{