Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Juan morjuax

🎯
Focusing
View GitHub Profile
@morjuax
morjuax / @inputWithSet
Last active Jul 30, 2021
Input angular with set
View @inputWithSet
@Input()
set parameterInput({ prop1, prop2 }: Interface) {
this.prop1 = prop1;
this.prop2 = prop2;
}
@morjuax
morjuax / gist:116cfef39c7dc15a5636251a0e8155bd
Created Dec 22, 2020
Design responsive template email
View gist:116cfef39c7dc15a5636251a0e8155bd
https://webdesign.tutsplus.com/es/articles/creating-a-simple-responsive-html-email--webdesign-12978
@morjuax
morjuax / breakPointResponsive.txt
Created Dec 21, 2020
Break Point Responsive css
View breakPointResponsive.txt
/* RESPONSIVE
========================================================================= */
/* Tablets en horizonal y escritorios normales
------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
}
/* Móviles en horizontal o tablets en vertical
------------------------------------------------------------------------- */
@morjuax
morjuax / gist:202b8fbad0d0ab627006ee5abd0f42e2
Last active Dec 10, 2020
Rebase Interactivo, para unir commits en 1 solo
View gist:202b8fbad0d0ab627006ee5abd0f42e2
En algunos casos cuando nos toca desplegar master y no queremos subir todos commits de tu ramma, nos puede tocar unir commits.
El *git rebase* puede ayudar, Ojo: Se pierde el historial de commits, lo recomendable es hacer esto local y no commits pusheados
Ejemplo tienes 4 commits
e5c49d9 (HEAD -> cambio3) [ADD]
f584ba1 cam3
eed9d9a [ADD] cam333.txt
c427b35 [ADD] cambio 1
@morjuax
morjuax / install_docker.md
Created Mar 15, 2020
Instalar docker en SO mas importantes
View install_docker.md

Instalar Docker

Config file /lib/systemd/system/docker.service

CentOS


Utilidades

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

@morjuax
morjuax / vsCode.md
Last active Feb 5, 2020
Configure Env VS code
View vsCode.md
  1. "workbench.editor.enablePreview": false

Extensions:

  1. Material icons
  2. Prettier (format)
@morjuax
morjuax / install_yarn_ubuntu.md
Last active Feb 3, 2020
Install yarn ubuntu
View install_yarn_ubuntu.md
View entryPointServerJs.md

ES6

import express from 'express';

const app = express(); const port = process.env.PORT || 3000;

app.listen(port, () => console.log('Server on port ', port));

@morjuax
morjuax / utils_install.md
Last active Jan 10, 2020
Utils installations
View utils_install.md

Update NPM

npm i -g npm@latest
npm cache clean --force

@morjuax
morjuax / init_node_typescript.md
Last active Feb 4, 2020
Create Project Node + Typescript
View init_node_typescript.md

Init

  1. mkdir typescript-starter
  2. cd typescript-starter
  3. npm init -y
  4. npm install typescript --save-dev
  5. npm install @types/node --save-dev
  6. npx tsc --init
  7. mkdir src
  8. touch src/index.ts
  9. into index => write => console.log("Hellow World")