Skip to content

Instantly share code, notes, and snippets.

View morjuax's full-sized avatar
🎯
Focusing

Juan morjuax

🎯
Focusing
View GitHub Profile
@morjuax
morjuax / breakPointResponsive.txt
Created December 21, 2020 15:09
Break Point Responsive css
/* 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 December 10, 2020 14:29
Rebase Interactivo, para unir commits en 1 solo
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 March 15, 2020 21:14
Instalar docker en SO mas importantes

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 February 5, 2020 13:48
Configure Env VS code
  1. "workbench.editor.enablePreview": false

Extensions:

  1. Material icons
  2. Prettier (format)
@morjuax
morjuax / install_yarn_ubuntu.md
Last active February 3, 2020 17:42
Install yarn ubuntu
@morjuax
morjuax / entryPointServerJs.md
Last active January 11, 2020 14:46
Server NodeJs

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 January 10, 2020 02:33
Utils installations

Update NPM

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

@morjuax
morjuax / init_node_typescript.md
Last active February 4, 2020 14:15
Create Project Node + Typescript

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")
@morjuax
morjuax / angular_init.md
Last active February 4, 2020 13:58
Tips: Create Angular Project

Create Project

ng new new-app

Init project

ng serve --open

Create new service

ng generate service services/[name_service] OR ng generate service [name_service]

@morjuax
morjuax / install_docker_in_ubuntu.md
Last active February 4, 2020 14:00
Install Docker in ubuntu

update repositories linux

sudo apt-get update

Install utilities

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Install gpg

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

verify apt-key fingerprint