Skip to content

Instantly share code, notes, and snippets.

Avatar
🚴‍♂️
forward

Cristian Leyes cristiandley

🚴‍♂️
forward
View GitHub Profile
@cristiandley
cristiandley / README.md
Last active Sep 2, 2020
Ejemplo de Readme
View README.md

Contenido

Informacion General

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

@cristiandley
cristiandley / log4j.properties
Last active Sep 18, 2017
POM EJEMPLO PARA ALUMNOS
View log4j.properties
# Root logger option
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
@cristiandley
cristiandley / giraMotor.js
Created Jun 15, 2017
[RASPBERRY] Gira el motor depues de encender tocar un boton
View giraMotor.js
var gpio = require("pi-gpio");
function despuesDelEncendido() {
/**
* Habilita la salida 11 (GPIO 11)
*/
gpio.open(11, "output", function(err) {
gpio.write(11, 1, function() {
gpio.close(11);
});
@cristiandley
cristiandley / tp_clinica_db.sql
Last active Jun 22, 2017
TP CLINICAS BASE DE DATOS 2017
View tp_clinica_db.sql
-- 1
SELECT
t.fecha,
t.hora,
e.nombre AS 'Nombre de Especialidad',
p.nombre AS 'Nombre de Paciente',
m.nombre AS 'Nombre de Medico'
FROM turnos as t
@cristiandley
cristiandley / VideoClub2.sql
Last active May 24, 2017
SCHEMA VIDEO CLUB
View VideoClub2.sql
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_PELICULAS_ACTORES]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[PELICULAS] DROP CONSTRAINT FK_PELICULAS_ACTORES
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_PELICULAS_DIRECTORES]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[PELICULAS] DROP CONSTRAINT FK_PELICULAS_DIRECTORES
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_PELICULAS_GENEROS]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[PELICULAS] DROP CONSTRAINT FK_PELICULAS_GENEROS
@cristiandley
cristiandley / productionWebpack.js
Created May 23, 2017
Production Webpack Config
View productionWebpack.js
const webpack = require("webpack");
const { join, resolve } = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const BabiliPlugin = require('babili-webpack-plugin');
// DOC: https://webpack.js.org/configuration/
module.exports = env => {
return {
entry: {
app: join(__dirname, "../src/index.js")
@cristiandley
cristiandley / FlatArray.js
Created Dec 20, 2016
Flat Array of Integers
View FlatArray.js
/**
* Preset: ES2015
* The reduce() method applies a function against an accumulator and
* each value of the array (from left-to-right) to reduce it to a single value.
*
* Compatibility Mobile: ALL
* Compatibility Desktop:
* Chrome (Yes) | Firefox 3.0(1.9) | IE 9 | Opera 10.5 | Safari 4.0
*/
@cristiandley
cristiandley / react-heatmap.js
Last active Oct 13, 2020
Heatmapjs React integration
View react-heatmap.js
import _ from 'lodash';
import h337 from 'heatmap.js';
import ReactDOM, { render } from 'react-dom';
import React, {Component, PropTypes} from 'react';
class ReactHeatmap extends Component {
constructor(props, context) {
super(props, context);
this.state = { cfg: null };
@cristiandley
cristiandley / react-leaflet-heatmap.js
Last active Jan 16, 2017
Trying to migrate leaflet-heatmap to react
View react-leaflet-heatmap.js
import _ from 'lodash';
import L from 'leaflet';
import React from 'react';
import h337 from 'heatmap.js';
import { MapLayer } from 'react-leaflet';
import ReactDOM, { render } from 'react-dom';
class ReactLeafletHeatmap extends MapLayer {
constructor(props, context) {
View pascal.pp
program ejercicio12sept;
uses crt;
uses sysutils;
{ --------------------- DECLARACION ---------------------}
{resultados tabla categoria - cantidad - total sueldo}
var cant_a, cant_b, cant_c,total_a, total_b, total_c: integer;
{resultados tabla captication - cantidad - confirmado}
var conf_office, conf_tango, conf_redes: integer;