Skip to content

Instantly share code, notes, and snippets.

View fer408's full-sized avatar

Fernando fer408

  • San Jose ,Ca, United States
View GitHub Profile
@fer408
fer408 / IBMCapstone.ipynb
Created December 30, 2018 02:49
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fer408
fer408 / IBMCapstone.ipynb
Created December 30, 2018 02:47
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fer408
fer408 / Project.ipynb
Created December 30, 2018 01:19
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fer408
fer408 / CapstoneIBMDataScience.ipynb
Created December 29, 2018 03:35
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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;
@fer408
fer408 / index.html
Created February 1, 2016 08:23
Intro to Programming Project 1
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>A Pen by fernando alarcon</title>
<link rel="stylesheet" href="css/style.css">
@fer408
fer408 / madlibs.py
Created February 1, 2016 08:20
Intro to Programming Project 2 Variation
#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
@fer408
fer408 / madlibs.py
Created February 1, 2016 08:18
Intro to programming Project 2 Tweak
#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"
@fer408
fer408 / finalMadlibsproject.py
Created February 1, 2016 08:16
Intro to programming Project 2
# 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"
@fer408
fer408 / entertainment_center.py
Created February 1, 2016 08:15
Intro to programming Project 3
#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",