Skip to content

Instantly share code, notes, and snippets.

View daniel7byte's full-sized avatar
:octocat:

Jose Daniel Posso Garcia daniel7byte

:octocat:
View GitHub Profile
@daniel7byte
daniel7byte / humanDateToUnix.php
Last active February 6, 2017 21:48
Author: josealvaradoo
<?php
/* __________________________________________________________________
/*
/* Fechas obtenidas desde la base de datos y desde el formulario
/* enviado por el usuario
/* _______________________________________________________________ */
$dateDataBase = "2/8/2014";
$dateMinUser = "3/11/2012";
$dateMaxUser = "5/12/2016";
@daniel7byte
daniel7byte / ProximitySQL.sql
Created February 6, 2017 19:17
Author: victor-basurto
/* Mi Ubicacion Actual */
/* Lat: 3.4227857999999998, Lng: -76.55079080000002 */
SELECT id, latitud, longitud, SQRT(
POW(69.1 * (latitud - '3.4227857999999998'), 2) +
POW(69.1 * ('-76.55079080000002' - longitud) * COS(latitud / 57.3), 2)) AS distance
FROM cali_sucursales HAVING distance < 0.5;
/* Donde 0.5 es el rango en millas */
class pdf417 {
decoder(String barCode){
var infoTarjeta = null;
if (barCode != null) {
var primerApellido = "", segundoApellido = "", primerNombre = "", segundoNombre = "",cedula = "",rh = "" ,fechaNacimiento = "",sexo = "";
var alphaAndDigits = barCode.replaceAll("[^\\p{Alpha}\\p{Digit}\\+\\_]+", " ");
#include <Keypad.h> //Include Keypad and servo library
#include <Servo.h>
Servo servoblue; //The servo is called „servoblue“ from now on
char* password = „123“; //We set the password. In this case „123“
int position = 0;
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into port D2 on the ESP8266
#define ONE_WIRE_BUS D2
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
package main
import "fmt"
// func main() {
// Comienza con mayúscula EXPORTADO
// minuscula NO EXPORTADO
// fmt.Println("Hello, playground")
// fmt.Println(rand.Intn(100))
// Librerias EST, Firebase y JSON
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>
// Librerias Fabricante
#include <OneWire.h>
#include <DallasTemperature.h>
// Constantes Token Firebase
#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
main()
{
char planeta[8], planetados[8];
int numerouno, numerodos, distanciaunoperihelio = 0, distanciaunoafelio = 0, distanciadosperihelio = 0, distanciadosafelio = 0;