Skip to content

Instantly share code, notes, and snippets.

View DannyFeliz's full-sized avatar
💻
Building things 👨‍💻

Danny Feliz DannyFeliz

💻
Building things 👨‍💻
View GitHub Profile
@DannyFeliz
DannyFeliz / cloudSettings
Last active May 27, 2020 16:50
vs-code-settings.json
{"lastUpload":"2020-05-27T16:49:55.692Z","extensionVersion":"v3.4.3"}
@DannyFeliz
DannyFeliz / agenda.md
Last active March 11, 2022 15:57
ejercicio agenda para estudiantes

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 June 24, 2019 00:15
windows terminal settigs
{
"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 August 4, 2018 03:43
for loop with timeout
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 September 2, 2017 21:31
JOB_GRADES TABLE - ORACLE
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);
@DannyFeliz
DannyFeliz / apec-assistant.js
Created August 22, 2017 13:07
APEC Assistant
/*Danny Feliz - 20152015*/"use strict";function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var styles="\n <style>\n .bg-white {\n background-color: white;\n }\n\n .up-arrow {\n border: solid black;\n border-width: 0 3px 3px 0;\n display: inline-block;\n padding: 3px;\n transform: rotate(-135deg);\n -webkit-transform: rotate(-135deg);\n }\n\n .text-green {\n color: darkgreen;\n }\n\n .text-red {\n color: darkred;\n }\n\n .available-size {\n font-size: xx-large;\n text-align: center;\n }\n\n .text-center {\n text-align: center;\n }\n\n .scroll3{\n width: 100%;\n position: relative;\n overflow: visible;\n }\n </style>\n";$("body").append(styles);var courseInformation=[],daysOfWeek={L:"LUNES",K:"MARTES",M:"MI\xC9RCOLES",J:"JUEVES",V:"VIERNES",S:"S\xC1BADO",D:"DOMINGO"},MAX_HEIGHT_AL
@DannyFeliz
DannyFeliz / response.crentro.costo.con.elementos.json
Last active March 25, 2017 01:07
Respuesta de centro de costos
// Campo: esta_en_uso = true|false
// URL: http://oorden.io/apiv2?modelo=centro-costo&include=centroCosto.elementos
{
"status": {
"type": "SUCCESS",
"message": "Lista de resultados"
},
"data": [
{
@DannyFeliz
DannyFeliz / VagrantConfig.md
Last active March 1, 2017 02:49
Vagrant.config

Vagrant Meteor Development Environment Installation & Configuration

Overview

Only the VirtualBox and Vagrant versions specified below will work. Later versions have problems, so do not try to use them (we tried almost all of them).

Vagrant Installation

  • Install VirtualBox version 4.2.24, from here
@DannyFeliz
DannyFeliz / webpack.config.js
Created September 13, 2016 08:00
Add timestamp to webpack
/**
* Get current time
* @example 10:34:12 am
* @param {Date} date
* @returns {string}
*/
function getTime(date) {
var hours = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();