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 the same regex/phrasing as the original step from the compendium | |
# It's just passes on the work to a method which can be used via code from other code | |
Then /^I save a screenshot with prefix (\w+)$/ do |prefix| | |
screenshotFromPrefix(prefix) | |
end | |
def screenshotFromPrefix prefix | |
# contruct filename based on the prefix and a timestamp (in millis to avoid overwriting screenshots taken close to each other) | |
filenameWithRelativePath = "#{prefix}_#{DateTime.now.strftime('%Q')}.png" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 http.requests.*; | |
// Sune for Hyper Hardware | |
// install the "HTTP Requests" library: "Sketc" > "Import Library" > "Add Library" and type "HTTP Requests". | |
// https://github.com/runemadsen/HTTP-Requests-for-Processing | |
int timer; | |
void setup() { | |
} |