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
-- phpMyAdmin SQL Dump | |
-- version 4.7.0 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: 25-April-2020 at 13:12 | |
-- Server Version: 10.1.24-MariaDB | |
-- PHP Version: 7.1.6 | |
-- |
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
class Car: | |
def __init__(self, speed=0): | |
self.speed = speed | |
self.odometer = 0 | |
self.time = 0 | |
def say_state(self): | |
print("I'm going {} kph!".format(self.speed)) | |
def accelerate(self): |
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
import unittest | |
from Car import Car | |
class TestCar(unittest.TestCase): | |
def setUp(self): | |
self.car = Car() | |
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
class Car: | |
def __init__(self, speed=0): | |
self.speed = speed | |
self.odometer = 0 | |
self.time = 0 | |
def say_state(self): | |
print("I'm going {} kph!".format(self.speed)) | |
def accelarate(self): |
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
Comparator | Microprocessor | Microcontroller | |
---|---|---|---|
Top Device | Intel Core i7 7700K (liquid-cooled) | PIC32MZ (DA series) | |
Run Their Program | External Device like a Hard Drive or SSD | EBI - External Bus interface - DDR2 DRAM | |
More Often Used | Desktop Computers - Laptops | Levels not yet seen in embedded microcontroller apps | |
Used too | Tablets - and Cell Phones | 2D GPU - GUI - High Perfo_Designs | |
Domain Market | Automobile Cruiser - Intell.Thermostat - CPUs/TV/Cable/Satell./SetTop_Box | Embedded System - GUI - HQ Graphics Apps | |
Speed Clock | 4.2 GHz | 100 to 800 MHz | |
RAM | 32 GB | 32 MB | |
Number Of Pins | ~ 1000 | ~ 200 | |
~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
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
# https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
1 - Open PowerShell as Administrator and run: | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
2 - Restart your computer when prompted. |
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
/* | |
AnalogReadPot | |
Reads an analog input on pin 0, prints the result to the Serial Monitor. | |
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. | |
This example code is in the public domain. | |
http://www.arduino.cc/en/Tutorial/AnalogReadSerial | |
*/ |
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
/* "auto" makes the left and right margins center the wrapper */ | |
#wrap { | |
width: 150px; | |
margin: 0 auto; | |
} |
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
(function() { | |
var socket = io.connect(window.location.hostname + ':' + 3000); | |
var red = document.getElementById('red'); | |
var green = document.getElementById('green'); | |
var blue = document.getElementById('blue'); | |
function emitValue(color, e) { | |
socket.emit('rgb', { | |
color: color, | |
value: e.target.value | |
}); |
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
{ | |
"name": "arduino-rgb-sockets", | |
"version": "1.0.0", | |
"description": "Control a RGB LED using Websockets and johnny-five", | |
"main": "rgb.js", | |
"dependencies": { | |
"express": "^4.13.4", | |
"johnny-five": "^0.9.56", | |
"socket.io": "^1.4.6" | |
}, |