This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
// func main() { | |
// Comienza con mayúscula EXPORTADO | |
// minuscula NO EXPORTADO | |
// fmt.Println("Hello, playground") | |
// fmt.Println(rand.Intn(100)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the setup function runs once when you press reset or power the board | |
void setup() { | |
Serial.begin(9600); | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); // LED_BUILTIN / 13 | |
digitalWrite(LED_BUILTIN, HIGH); | |
delay(2000); | |
Serial.println("HOLA MUNDO"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}\\+\\_]+", " "); |
NewerOlder