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
# If you do not have homebrew installed | |
# use this command to install it, or go check it out at http://brew.sh/ | |
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# You will also need to turn on USB Debugging in the Developer Options menu under Settings. | |
# If that menu does not exist go to the About Phone menu and click the Build Number 7 times | |
# and it should make it show up | |
# Otherwise follow the steps below: | |
brew install android-sdk |
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
#!/usr/bin/env python | |
def generateRandomBinaryVector(p,n): | |
outcomes = np.zeros((n,1)) | |
for index in range(0,n): | |
outcomes[index] = generateRandomCoinFlip(p) | |
return outcomes |
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
require 'watir-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.add_extension File.join(Rails.root, "/JSErrorCollector.xpi") | |
browser = Watir::Browser.new :firefox, :profile => profile | |
browser.goto 'www.google.com' | |
errors = browser.execute_script("return window.JSErrorCollector_errors.pump()") | |