Scratch es un entorno de programación amigable basado en bloques que nos permite crear proyectos digitales.
Creado por el MIT Media Lab Lifelong Kindergarten Group.
| // This is the first game developed by the Raspberry Hackers team. | |
| // 23 December, 2016. Las Norias (Almería). | |
| // Reference: https://www.youtube.com/watch?v=JGW5ecDOjjk | |
| int w; | |
| int h; | |
| int bs = 20; | |
| ArrayList<Integer> x = new ArrayList<Integer>(); | |
| ArrayList<Integer> y = new ArrayList<Integer>(); |
| #include <SoftwareSerial.h> | |
| SoftwareSerial softSerial(10, 11); | |
| void setup() { | |
| softSerial.begin(9600); | |
| Serial.begin(9600); | |
| softSerial.println("Setup!"); | |
| Serial.println("Setup!"); | |
| } |
Este es el repositorio con la extensión para NanoPlayBoard:
De momento sólo está subido el código que manipula el led RGB.
Para añadir la extensión a tu mBlock tienes que crear un .zip con el directorio extension.
Una vez abierto mBlock seleccionas Extensions> Manage Extensions y pulsas sobre el botón Add extension.
Referencias:
| DROP DATABASE IF EXISTS agencia_viajes; | |
| CREATE DATABASE agencia_viajes CHARACTER SET utf8; | |
| USE agencia_viajes; | |
| CREATE TABLE agencia ( | |
| id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
| direccion VARCHAR(128) NOT NULL, | |
| telefono VARCHAR(9) NOT NULL |
| PROVINCIA(#id, nombre) | |
| LOCALIDAD(#id, nombre, id_provincia) | |
| id_provincia: FK de PROVINCIA | |
| CLIENTE(#id, nombre, apellido1, apellido2, dirección, código_postal, teléfono, id_localidad) | |
| id_localidad: FK de PROVINCIA | |
| TIENDA(#id, dirección, código_postal, id_localidad) | |
| id_localidad: FK de LOCALIDAD |
| #!/bin/bash | |
| # Credenciales de Telegram | |
| TOKEN="" | |
| CHATID="" | |
| # API de Telegram | |
| URL="https://api.telegram.org/bot$TOKEN/sendMessage" | |
| DROP DATABASE IF EXISTS jardineria; | |
| CREATE DATABASE jardineria CHARACTER SET utf8mb4; | |
| USE jardineria; | |
| CREATE TABLE oficina ( | |
| codigo_oficina VARCHAR(10) NOT NULL, | |
| ciudad VARCHAR(30) NOT NULL, | |
| pais VARCHAR(50) NOT NULL, | |
| region VARCHAR(50) DEFAULT NULL, | |
| codigo_postal VARCHAR(10) NOT NULL, |