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.6.4 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: localhost:3306 | |
-- Generation Time: Jun 22, 2017 at 06:57 PM | |
-- Server version: 5.6.33 | |
-- PHP Version: 7.0.12 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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 <IRremote.h> | |
IRsend irsend; | |
void setup() | |
{ | |
} | |
void loop() { | |
for (int i = 0; i < 3; i++) { |
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 <IRremote.h> | |
#include <string.h> | |
#include <Servo.h> | |
Servo leftServo; | |
Servo rightServo; | |
int RECV_PIN = 5; | |
IRrecv irrecv(RECV_PIN); |
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
<?php | |
include("dbh.php"); | |
$email = $_POST["email"]; | |
$password = $_POST["password"]; | |
$sql = "SELECT * FROM users WHERE email='$email' AND password='$password'"; | |
$results = $conn->query($sql); |
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
/* | |
SparkFun Inventor's Kit | |
Example sketch 04 | |
MULTIPLE LEDs | |
Make six LEDs dance. Dance LEDs, dance! | |
This sketch was written by SparkFun Electronics, |
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
ice_cream = "ice cream" | |
# method 1: | |
print("There is ice in ice cream: " + str("ice" in ice_cream)) | |
# or... | |
# method 2: | |
ice_in_ice_cream = "ice" in ice_cream | |
print("There is ice in ice cream: " + str(ice_in_ice_cream)) |
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
hello = "Hello there " | |
world = "wonderful world!" | |
hello_world = hello + world | |
print(hello_world) |
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
# Convert the string they entered to an integer | |
age = int(input("How old are you: ")) | |
# Determine how old the user will be after three years. | |
# You need to convert it to an integer because you cannot do math on a string. You'll get an error. Try it! | |
threeYears = age + 3 | |
# Tell the user how old they'll be in three years. | |
# The integer threeYears must be converted to a string in order to be printed. | |
print("In three years you'll be " + str(threeYears)) # This is concatenation, we'll learn this in the next lesson. |
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
# You can put the prompt in as a string directly | |
userName = input("What is your name? ") | |
# ...OR... | |
# The prompt can also be stored as a string in a variable like so: | |
prompt = "How old are you?" | |
userAge = input(prompt) |
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
var1 = 42 | |
var2 = 24 | |
# Evaluates to false since 24 is not greater than 42 | |
print(var2 > var1) |