This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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:
This file contains hidden or 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 <SoftwareSerial.h> | |
| SoftwareSerial softSerial(10, 11); | |
| void setup() { | |
| softSerial.begin(9600); | |
| Serial.begin(9600); | |
| softSerial.println("Setup!"); | |
| Serial.println("Setup!"); | |
| } |
This file contains hidden or 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
| // 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>(); |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
This file contains hidden or 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 com.example.testSingleton; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.widget.Toast; | |
| public class ActivityA extends Activity { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { |