This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Owner | |
* @dev Set & change owner | |
*/ | |
contract Main { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
# cambiar "felizmenteqa.sena.edu.co" por la url de produccion | |
server_name felizmenteqa.sena.edu.co; | |
return 301 https://felizmenteqa.sena.edu.co$request_uri; | |
} | |
server { | |
listen 443 ssl default_server; | |
ssl_certificate /etc/ssl/certs/felizmente/certificate.crt; | |
ssl_certificate_key /etc/ssl/certs/felizmente/key.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# | |
# Note: You should disable gzip for SSL traffic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
include /usr/share/nginx/modules/*.conf; | |
events { | |
worker_connections 1024; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react' | |
const defaualtAPIConfig = config => { | |
return Object.assign( | |
{ | |
method: 'POST', | |
mode: 'same-origin', | |
cache: 'no-cache', | |
credentials: 'same-origin', | |
headers: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reduzca a forma normal las siguientes abstracciones: | |
1. (\x.xx)(\x.xx) | |
2. (\x.xxx)(\x.xxx) | |
3. (\x.\y.xy)(\y.y)e # Para evitar confusion, use una abstraccion Alpha-equivalente para el combinador Identidad | |
4. (\m.\n.( | |
(n (\a.\b.\c. | |
( | |
b((ab)c) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dadas las siguientes funciones: | |
f(x)=xx+1; g(t)=11; h(m,n)=g(m)-f(n) | |
Resuelva | |
f(3) | |
g(11) | |
g(12) | |
h(3,4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// expressJS route | |
router.get('/search', function(req, res, next) { | |
Product.find({ $text: { $search: req.param('title') } } , function(err, docs){ | |
res.render('shop/search', {products: docs} ); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var validate = require('mongoose-validator'); | |
var Schema = mongoose.Schema; | |
var crypto = require('crypto'); | |
var utilities = require('../services/utilities'); | |
var userSchema = new Schema({ | |
firstname: { type : String, trim : true }, | |
lastname: { type : String, trim : true }, | |
username: { type: String, required: true, unique: true, lowercase: true, trim : true, index : true }, |