Skip to content

Instantly share code, notes, and snippets.

View RGkevin's full-sized avatar
🎯
Focusing

Kevin López RGkevin

🎯
Focusing
View GitHub Profile
@RGkevin
RGkevin / gist:9a0bdb7ca2b521e124d0da5520f26523
Created November 13, 2021 17:45
Full Stack Developer Project
RGPROGRA PROTOTIPO COMPLETO
Full Stack Development
BACKEND
- API
- HEROKU
- mySQL
- Notificaciones Push App Moviles
@RGkevin
RGkevin / dart-funciones.dart
Created October 22, 2021 01:50
funciones dart
void main() {
void Function(String) pruebaFn = (String paramNombre) {
print('hola ' + paramNombre);
};
pruebaFn('Kevin');
pruebaFn('Isaac');
pruebaFn('Melvin');
}

1 install node js

2 ejectuar (solo una vez porque es instalador global)

npm install express-generator -g

3 navegar a la carpeta donde se quiere guardar el proyecto

cd ~/MiCarpetaDev/carpetaProyecto

4 generar nuevo proyecto usando express

# created by: Kevin L. Valle (178852)
#
import math
# define catalog of combos
catalog_combos = [{
'id': 1,
'combo_name': 'Viaje a Pana',
'combo_price': 1234
@RGkevin
RGkevin / N.py
Created February 11, 2018 20:18
# 1: get N
# 2: iterate over N times
# 3: calculate numbers
# 4: mostrar los numeros posibles
N = int(input('Ingrese un número mayor a 0: '));
def calculate(i, n):
a1 = 0
b1 = 0
@RGkevin
RGkevin / N.py
Created February 11, 2018 20:18
# 1: get N
# 2: iterate over N times
# 3: calculate numbers
# 4: mostrar los numeros posibles
N = int(input('Ingrese un número mayor a 0: '));
def calculate(i, n):
a1 = 0
b1 = 0
# created on 03/02/2018
# Charecter is a helper class that add some
# utility functions to UsedRobot class
class Charecter(UsedRobot):
# turn around rebord
def turn_around(self):
repeat(self.turn_left, 2)
# turn reborg right
import Debug from 'debug';
import _ from 'lodash';
import FirebaseSalPersDefaultsFactory from '../firebase/salpers-defaults';
import SequelizeModelsFactory from '../sequelize';
export default function() {
const debug = Debug('byb-sales-admin-api:SalPersDefaultsCtrlFactory');
const FirebaseSalPersDefaults = FirebaseSalPersDefaultsFactory();
const SequelizeModels = SequelizeModelsFactory();
/**
* Created by kevinlopez on 4/1/17.
*/
var debug = require('debug')('fg-api:OAuthAccessTokensModel');
var Q = require('q');
var _ = require('lodash');
var momentTZ = require('moment-timezone');
var config = require('./../config');
@RGkevin
RGkevin / consumer.js
Created March 13, 2017 22:29
create a pdf
certificate : function (req, res) {
// get user name
var user_id = req.params.user_id;
var test_id = req.params.test_id;
var date = req.params.date || '';
var fullname = null;
// get user
UserModel