Skip to content

Instantly share code, notes, and snippets.

@cristiandley
cristiandley / README.md
Last active September 2, 2020 17:14
Ejemplo de Readme

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 September 18, 2017 21:17
POM EJEMPLO PARA ALUMNOS
# 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 June 15, 2017 15:57
[RASPBERRY] Gira el motor depues de encender tocar un boton
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 June 22, 2017 21:15
TP CLINICAS BASE DE DATOS 2017
-- 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 01:33
SCHEMA VIDEO CLUB
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 11:56
Production Webpack Config
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 December 20, 2016 04:06
Flat Array of Integers
/**
* 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 November 30, 2021 09:13
Heatmapjs React integration
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 January 16, 2017 09:10
Trying to migrate leaflet-heatmap to react
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) {
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;