Skip to content

Instantly share code, notes, and snippets.

View mhdelta's full-sized avatar

Miguel Ángel Henao mhdelta

  • Universidad Tecnológica de Pereira
View GitHub Profile
  1. npm install -g firebase-tools
  2. firebase login
  3. firebase init
  4. firebase init hosting

After this you will be asked the following question “What do you want to use as your public directory?” In Angular 7 you must include your application’s name in this field: “dist/YourProjectName.” . Before Angular 6 using “dist” was sufficient. Next specify “yes” to configuring as a single-page application and “no” to overwriting your existing index.html (if applicable).

  1. ng build --prod
  2. firebase deploy

npm install -g firebase-tools firebase login firebase init firebase init hosting ng build --prod firebase deploy

if (varType == "@DT")
{
int start = i + 4; // starting (
int end = config.IndexOf(")", start);
string format = config.Substring(start, end - start);
}
server {
listen *:80;
autoindex on;
server_name servername;
root /var/www/observatorio/html/observatorio-app/dist/observatorio-app;
index index.html;
location /api/ {
root www/observatorio/html/observatorio-app/dist/observatorio-app/obs-api;
proxy_pass http://127.0.0.1:1337;
gistup
MongoCon database = new MongoCon();
// create collection
// database.createCollection("clientes");
// Document doc = new Document();
//
// doc.append("nombre", "Miguel");
// doc.append("apellido", "Henao");
// doc.append("DNI", "12345678");
MongoCon database = new MongoCon();
// create collection
// database.createCollection("clientes");
// Document doc = new Document();
//
// doc.append("nombre", "Miguel");
// doc.append("apellido", "Henao");
// doc.append("DNI", "12345678");
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package MongoConection;
import com.mongodb.MongoClient;
import com.mongodb.MongoCredential;
import com.mongodb.client.FindIterable;
@mhdelta
mhdelta / DessingPatterns.txt
Last active April 17, 2018 13:04
Dessing patterns
https://cdn.preterhuman.net/texts/manuals/Addison%20Wesley%20-%20Design%20Patterns%20Explained%20(2001).pdf
http://hxz.es/Design%20Patterns%20For%20Dummies.pdf
@mhdelta
mhdelta / BDQuerys
Last active April 16, 2018 16:52
bd consultas
Miguel Ángel Henao Pérez
1.
SELECT idfab, idproducto, descripcion, precio, (precio * 1.19) as 'precio con iva' FROM `productos` WHERE 1
2.
SELECT NUMPEDIDO, fab, producto, CANT, (IMPORTE / cant) AS "precio unitario" FROM `pedidos` WHERE 1