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
function logResult(winningMove, losingMove, computerWins) { | |
console.log(winningMove + " beats " + losingMove + "! You " + (computerWins ? "lose" : "win") + "! \n Player: " + playerScore + " \n Computer: " + computerScore); | |
} | |
logResult(playerSelection, computerSelection, false); |
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
func addSubview(subView:UIView, toView parentView:UIView) { | |
parentView.addSubview(subView) | |
var viewBindingsDict = [String: AnyObject]() | |
viewBindingsDict["subView"] = subView | |
parentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|[subView]|", options: [], metrics: nil, views: viewBindingsDict)) | |
parentView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|[subView]|", options: [], metrics: nil, views: viewBindingsDict)) | |
} |
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 json | |
from textblob import TextBlob | |
linenum = 0 | |
sentiment = [] | |
Apple= [] | |
AmericanExpress= [] | |
BankofAmerica = [] | |
Caterpillar = [] |