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
/* Prompt the user for the number of coin flips. | |
Flip the count the designated number of times - displaying the number of the coin flip and the result | |
Display the number of coin heads and number of tails! | |
How many flips would you like? 4 | |
1. heads | |
2. tails | |
3. heads | |
4. heads |
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
// <First Name> <Last Name> | |
// <Class period> | |
// Directions: Fill in the missing variables and methods to create the Store class. | |
// Their will only be 3 pieces of data for each store: the type of store (pet or grocery), the time the store opens and the time the store closes. | |
// To simplify the opening and closing times, our stores will only open and close on the hour. The times will be stored in 24-hour format, so we will not be | |
// storing am or pm. For example, 7 am will be stored as 7. 7pm will be stored as 19 (because 12 + 7 = 19). | |
// If a store has been created, you can assume that the closing time is after the opening time (and no stores are open 24 hours a day). |
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
public class StoreTester | |
{ | |
public static void main(String[] args) | |
{ | |
//1. First Constructor and toString | |
Store store1 = new Store("grocery"); | |
System.out.println("1. \nOUTPUT: Grocery store is open from 10am to 9pm"); | |
System.out.println("YOUR OUTPUT: "+store1); | |
System.out.println(); |
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
""" | |
Mr. Riley's PygameWall class v1.20190308 | |
3/8/2019 | |
How to use this Wall class | |
1) from pygamewall import * | |
2) Instanciate a wall by passing x, y, width, and height. Like this: | |
mywall = Wall(400,400,100,10) | |
3) Draw the wall inside of the draw() loop. Like this: | |
mywall.draw(screen) | |
4) Use the touching method to determine if an actor is touching the wall. |
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
// At the bottom of override func didMove() | |
// add this below the tapGestureRecognizer | |
let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:))) | |
let rightSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:))) | |
leftSwipe.direction = .left | |
rightSwipe.direction = .right | |
view.addGestureRecognizer(leftSwipe) | |
view.addGestureRecognizer(rightSwipe) | |
} | |
@objc func handleSwipes(_ sender:UISwipeGestureRecognizer) { |
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
#AvengersEndgame | a4 | a4leak | a4leaked | a4spoiler | a4spoilers | Ameenah Kaplan | ant man | Ant Man | ant-man | Anthony Mackie | antman | Ariana Greenblatt | Aunt May | avengers | Avengers | Avengers 4 | Avengers: Endgame | avengersendgame | AvengersEndgame | avengersendgameleak | avengersendgameleaked | avengersendgamespoiler | avengersendgamespoilers | avispa | Ayo | Benedict Cumberbatch | Benedict Wong | Benicio Del Toro | black panther | Black Panther | black widow | Black Widow | box office | Box Office | Bradley Cooper | Brie Larson | Bruce Banner | bucky | Bucky Barnes | Cap | capitán america | capitana marvel | Captain | captain america | Captain America | captain marvel | carol danvers | Carol Danvers | Carrie Coon | Chadwick Boseman | characters | Chris Evans | Chris Hemsworth | Chris Pratt | Clark Gregg | Collector | Corvus Glaive | Cull Obsidian | Danai Gurira | Dave Bautista | doctor strange | Doctor Strange | Don Cheadle | Dr Strange | Drax | Ebony Maw | Eitri | Elizabeth Olsen | end game | End Game | End-game | End-Game | endgame | Endgame | endgameleak | endgameleaked | endgamespoiler | endgamespoilers | Ethan Dizon | Falcon | far from home | Far Fro |
---|
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
# Truth Table Generator | |
# Complete the seven ### comments so that 50% of the time it | |
# adds the first option and 50% of the time it adds the second | |
from random import * | |
while True: | |
outputString = "(" | |
# True / False | |
if random() >= 0.5: |
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 url(https://fonts.googleapis.com/css?family=Press+Start+2P); | |
tw-story { | |
/* The following changes the text */ | |
color: darkgreen; /* Set text to green or other color */ | |
text-shadow: 1px 1px lightgreen; /* Green text shadow */ | |
font-size: 20px; | |
font-family: "Press Start 2P","Helvetica","Arial",sans-serif; | |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Hello World</h1> | |
<p>I'm hosted with GitHub Pages.</p> | |
</body> | |
</html> |
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
""" Mr. Riley's Wall class v1.20200207 | |
2/07/20 | |
How to use this Wall class | |
1) from wall import * | |
2) Instanciate the screen. Like this: | |
screen = Screen() |