Skip to content

Instantly share code, notes, and snippets.

💻
Building things 👨‍💻

Danny Feliz DannyFeliz

💻
Building things 👨‍💻
Block or report user

Report or block DannyFeliz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DannyFeliz
DannyFeliz / cloudSettings
Last active Jan 30, 2020
vs-code-settings.json
View cloudSettings
{"lastUpload":"2020-01-30T20:53:36.651Z","extensionVersion":"v3.4.3"}
@DannyFeliz
DannyFeliz / agenda.md
Last active Aug 20, 2019
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);
View apec-assistant.js
/*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
View response.crentro.costo.con.elementos.json
// 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": [
{
View VagrantConfig.md

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 Sep 13, 2016
Add timestamp to webpack
View webpack.config.js
/**
* 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();
You can’t perform that action at this time.