Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Building things 👨‍💻

Danny Feliz DannyFeliz

💻
Building things 👨‍💻
View GitHub Profile
View entidades.md

Requerimientos

Entidades

El nombre de las tablas debe estar en plural, por ejemplo: Users, Currencies, Companies, ...

Company

Columna Tipo Características
@DannyFeliz
DannyFeliz / job.json
Created Jan 29, 2021
Job response - faker
View job.json
{
"Id": 210,
"CreatedAt": "2020-11-01T15:18:39.271Z",
"UpdatedAt": "2021-01-28T18:39:29.314Z",
"DeletedAt": null,
"IsActive": true,
"LocationId": 15,
"Location": {
"Id": 15,
"CreatedAt": "2020-06-23T10:38:36.549Z",
View LoginPageObject.js
class LoginPageObject {
getEmailInput() {
return cy.get("#email");
}
getPasswordInput() {
return cy.get("#password");
}
}
View LoginPage.spec.js
/// <reference types="cypress" />
import LoginPageObject from "./page/LoginPageObject";
describe('Login Page', () => {
const invalidEmail = "invalid@email";
const validEmail = "fake@email.com";
const loginPage = new LoginPageObject();
beforeEach(() => {
cy.visit("https://memod.com");
View Guide.md

Hide desktop icons

gsettings set org.gnome.shell.extensions.desktop-icons show-home false
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false
@DannyFeliz
DannyFeliz / cloudSettings
Last active May 27, 2020
vs-code-settings.json
View cloudSettings
{"lastUpload":"2020-05-27T16:49:55.692Z","extensionVersion":"v3.4.3"}
@DannyFeliz
DannyFeliz / agenda.md
Last active Mar 11, 2022
ejercicio agenda para estudiantes
View agenda.md

Agenda

  • Realizar una agenda de contactos que cuente con el siguiente menú:

Bienvenido a la Agenda

  • 1 - Listado de Contactos (4)
  • 2 - Crear Contactos
  • 3 - Eliminar Contactos
  • 4 - Salir de la Agenda
@DannyFeliz
DannyFeliz / myprofile.json
Created Jun 24, 2019
windows terminal settigs
View myprofile.json
{
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
"keys": ["ctrl+w"]
@DannyFeliz
DannyFeliz / timeout.js
Last active Aug 4, 2018
for loop with timeout
View timeout.js
const timeoutList = [5000, 2500, 4500];
async function initInterval() {
for(const timeout of timeoutList) {
await runTimeout(timeout);
}
}
function runTimeout(timeout) {
return new Promise(resolve => {
@DannyFeliz
DannyFeliz / job_grades_table.sql
Created Sep 2, 2017
JOB_GRADES TABLE - ORACLE
View job_grades_table.sql
CREATE TABLE job_grades (
grade CHAR(1),
lowest_sal NUMBER(8,2) NOT NULL,
highest_sal NUMBER(8,2) NOT NULL
);
ALTER TABLE job_grades
ADD CONSTRAINT jobgrades_grade_pk PRIMARY KEY (grade);
INSERT INTO job_grades VALUES ('A', 1000, 2999);