Skip to content

Instantly share code, notes, and snippets.

View JeffersonBenzan's full-sized avatar
馃幆
Focusing

Jefferson Benzan Tapia JeffersonBenzan

馃幆
Focusing
View GitHub Profile
@JeffersonBenzan
JeffersonBenzan / decoder.js
Last active September 26, 2023 16:34
Devfest decoder
const encodedString = "8757%TLSNRTI%TYSFX%YXJK[JI%YF%^YWFU%JPFP%JMY%SNTO";
const decode = (encodedString) => {
const decodedMessage = encodedString.split('').reverse().reduce((acc, char) => {
if (char !== '%') {
const decodedChar = String.fromCharCode(char.charCodeAt(0) - 5);
acc += decodedChar;
} else {
acc += ' ';
}
@JeffersonBenzan
JeffersonBenzan / vite-testing-config.md
Created July 3, 2022 04:51 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalaci贸n y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Jefferson Benzan Tapia",
"label": "Software Engineer at BairesDev",
"image": "",
"email": "[email protected]",
"phone": "",
"url": "",
"summary": "Results-focused Front End Developer with over 6 years of experience in problem solving and application development. Specialized in web applications and open source technologies. Using Node, React and Angular.",
@JeffersonBenzan
JeffersonBenzan / validador.sql
Last active September 29, 2019 09:32
t-sql validador de cedula dominicana sql server
alter FUNCTION [dbo].[fn_validar_cedula]
(
@ced nvarchar(11)
)
RETURNS nvarchar(2)
AS
BEGIN
DECLARE @numero integer = 0
@JeffersonBenzan
JeffersonBenzan / exec_orafn.js
Created August 1, 2019 14:35 — forked from isabolic/exec_orafn.js
node js execute oracle pl sql stored function on database
(function() {
var db = require('oracledb');
var plSQLFun = "begin " +
" :ret := pkb_demo.f_get_price(:p1); " +
"end; ";
var executeOnDb = function() {
var bindvars = {
ret: { dir: oracledb.BIND_OUT, type: oracledb.NUMBER },
p1: 'Y'