Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package app.sunshine.com.example.android.sunshine; | |
import android.os.Bundle; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.view.View; | |
import android.view.Menu; | |
import android.view.MenuItem; |
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 > | |
<head> | |
<meta charset="UTF-8"> | |
<title>A Pen by fernando alarcon</title> | |
<link rel="stylesheet" href="css/style.css"> |
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
#this is to ask the user which difficulty he/she would like to use. | |
print "what difficulty would you like to choose?" | |
print "press 1 for easy, 2 for medium or 3 for hard" | |
#these are the possible strings associated with each difficuty level. | |
string1 = " Today i saw a NOUN on my VERB to the park earlier. So as i went to the bathroom to VERB a NOUN came out of nowhere" | |
string2 = "I like to VERB while playing with my favorite NOUN. my NOUN likes to VERB" | |
string3 = "Mike's favorite NOUN likes to VERB all over his bed.Mike likes to VERB in the Bathroom" | |
easy = 1 | |
medium = 2 |
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
#this is to ask the user which difficulty he/she would like to use. | |
print "what difficulty would you like to choose?" | |
print "press 1 for easy, 2 for medium or 3 for hard" | |
#these are the possible strings associated with each difficuty level. | |
parts_of_speech = ["PLACE","JOB","HOBBY","VERB","NOUN","ACTIVITY"] | |
string1 = " Today i saw a NOUN on my VERB to my JOB earlier.On another note i plan to ACTIVITY later on tonight" | |
string2 = "I like to VERB while playing with my favorite NOUN. my NOUN likes to VERB around my favorite PLACE " | |
string3 = "Mike's favorite NOUN likes to VERB all over his bed.Mike likes to HOBBY at his favorite PLACE" |
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
# this greets the user | |
print "Welcome to my reverse madLibs generator, My name is Fernando, I hope you enjoy the game." | |
#this is to ask the user which difficulty he/she would like to use. | |
print "What difficulty would you like to choose?" | |
print "Press 1 for easy, 2 for medium or 3 for hard" | |
# possible strings | |
string1 = "I'd rather _1_ on my _2_ than _3_ on my _4_ " | |
answer1 = ["die","feet","live","knees"] | |
string2 = "They _1_ to bury _2_,they did _3_ know _4_ were seeds" |
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
#allows for this code to be viewed in a static webpage. | |
import fresh_tomatoes | |
#allows me to use the class Movie. | |
import media | |
#following is code for my favorite movies. | |
#code for toy story. | |
toy_story = media.Movie("Toy Story", |
NewerOlder