Skip to content

Instantly share code, notes, and snippets.

View jorandradefig's full-sized avatar

Jorge Andrade jorandradefig

View GitHub Profile
Firefox Developer Edition
Google Chrome
Xcode
Fabric
Android Studio
Genymotion
Expo
Visual Studio Code
Evernote

Angular

npm install -g @angular/cli

ng new my-new-project --style=<scss|sass|less|stylus> --routing --skip-install
ng set --global packageManager=yarn

ng g component my-new-component
ng g directive my-new-directive
ng g pipe my-new-pipe
var member = {
  name: 'Julia',
  age: 28,
  hobbies: ['swimming','music'],
  address: { name: 'Chapultepec', number: 275, city: 'Mexico City' },
  childs: false
}

var member = {
@jorandradefig
jorandradefig / Quiz 2
Created August 14, 2017 13:45
quiz2.md
1. Declara un array de objetos `animal` que tenga 5 propiedades (nombre, especie, número de extremidades, edad y nacionalidad) cada uno.
2. Después de creado el array, haz una función que añada a cada objeto del array una propiedad `gènero`.
  1. Crea una clase Humano que imprima su nombre y su edad
  2. Crea tres objetos diferentes de la clase Humano
  3. Crea una clase Mexicano que herede de la clase Humano e imprima su nacionalidad
  4. Crea tres objetos diferentes de la clase Mexicano
@jorandradefig
jorandradefig / variablesquiz.md
Created August 21, 2017 01:42
Variables Quiz
  1. Crea un objeto restaurante que tenga las siguientes propiedades: nombre, direccion, telefono, website, platillos, postres y menu del día.

Google Cloud SDK

brew cask install google-cloud-sdk

gcloud auth login

gcloud components update

gcloud components install app-engine-go

Dart SDK

brew tap dart-lang/dart
brew install dart --with-content-shell --with-dartium
git clone https://github.com/onlyangel/EmiLeanProPlatform.git

cd EmiLeanProPlatform

Install

brew install ansible

localhost

In Terminal:

Create dump

pg_dump -h 127.0.0.1 -p 5432 -U <user> -W -F t <database> | gzip > <gzipfile>.gz