Skip to content

Instantly share code, notes, and snippets.

View brpereyra's full-sized avatar
👨‍💻
Working on Brpereyra.github.io

Bryan Pereyra brpereyra

👨‍💻
Working on Brpereyra.github.io
View GitHub Profile
@brpereyra
brpereyra / index.js
Created June 19, 2024 22:13
Calculadora de tiempo con dias habiles, fechas no laborales y horarios habiles
const { DateTime } = require("luxon");
// datos de entrada
const currentDate = DateTime.now().setZone("America/New_York");
const horasDeSla = 12; //300 min
// horas de configuracion
const horaDeInicioDeJornada = 8;
const horaDeInicioDeAlmuerzo = 12;
const horaDeFinDeJornada = 17;
@brpereyra
brpereyra / index.html
Last active August 5, 2018 20:29
Crear imagen desde javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
font-family: calibri;
margin: 0;
padding: 0;
@brpereyra
brpereyra / index.html
Last active August 5, 2018 20:30
Generate image or make from canvas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
font-family: calibri;
margin: 0;
padding: 0;
using System;
using System.Text;
namespace App1
{
class Perceptron
{
//peceptron simple
static void Main(string[] args)
{
#importacion de metodo random
from random import uniform as rand
#declaracion de variables
aprendiendo=True
weights=[rand(-1,1),rand(-1,1)]
bias=rand(-1,1)
iteraciones=0
#tabla de la verdad y datos de entrada y saldia
datos=[
[1,1,1],