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
import os
import win32clipboard # You have to install with: pip install pywin32
# this program will change the default credential of aws in .aws/credentials file
# example input in your clipboard
# [791718719052_AWSPowerUserAccess]
# aws_access_key_id=ABCDEFGHIJKLMNOPQRST
# aws_secret_access_key=ABCDEFGHIJKLMNOPQRST
# aws_session_token=ABCDEFGHIJKLMNOPQRST
@daniel7byte
daniel7byte / install nano.sh
Created July 17, 2021 16:12 — forked from BlakeGardner/install nano.sh
Syntax highlighting in nano on Mac OS
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
# install nano from homebrew
brew install nano
# update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
#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;
// 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
package main
import "fmt"
// func main() {
// Comienza con mayúscula EXPORTADO
// minuscula NO EXPORTADO
// fmt.Println("Hello, playground")
// fmt.Println(rand.Intn(100))
#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.
/*************************************************************
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 <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;
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}\\+\\_]+", " ");