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
#lang racket
(provide (all-defined-out))
(define (primo num a s)
(for ([i (in-range 0 num)])
(if (= (remainder num (+ 1 i)) 0)
(set! a (+ 1 a))
0
)
@mhdelta
mhdelta / pygame
Last active April 12, 2018 12:43
https://inventwithpython.com/makinggames.pdf
http://slav0nic.org.ua/static/books/python/beginning-game-development-with-python-and-pygame-from-novice-to-professional.9781590598726.29808.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
@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
/*
* 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;
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");
gistup
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;
if (varType == "@DT")
{
int start = i + 4; // starting (
int end = config.IndexOf(")", start);
string format = config.Substring(start, end - start);
}