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
019-03-29T14:46:44.482309+00:00 heroku[run.3861]: Starting process with command `heroku logs --tail` | |
2019-03-29T14:46:44.653620+00:00 heroku[run.3861]: State changed from starting to up | |
2019-03-29T14:46:48.758996+00:00 heroku[run.3861]: State changed from up to complete | |
2019-03-29T14:46:48.747392+00:00 heroku[run.3861]: Process exited with status 127 | |
2019-03-29T15:47:27.622578+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=enrollyork.herokuapp.com request_id=bcd52fb1-df16-4bbb-8c51-55f19df2c3c0 fwd="199.212.64.77" dyno= connect= service= status=503 bytes= protocol=https | |
2019-03-29T15:47:28.134325+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=enrollyork.herokuapp.com request_id=a251b7b5-3ac4-4779-93a2-8a1e730ca037 fwd="199.212.64.77" dyno= connect= service= status=503 bytes= protocol=https | |
2019-03-29T16:08:55.571683+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET pa |
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
2019-03-29T14:46:44.457775+00:00 heroku[run.3861]: Awaiting client | |
2019-03-29T14:46:44.482309+00:00 heroku[run.3861]: Starting process with command `heroku logs --tail` | |
2019-03-29T14:46:44.653620+00:00 heroku[run.3861]: State changed from starting to up | |
2019-03-29T14:46:48.758996+00:00 heroku[run.3861]: State changed from up to complete | |
2019-03-29T14:46:48.747392+00:00 heroku[run.3861]: Process exited with status 127 | |
2019-03-29T15:47:27.622578+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=enrollyork.herokuapp.com request_id=bcd52fb1-df16-4bbb-8c51-55f19df2c3c0 fwd="199.212.64.77" dyno= connect= service= status=503 bytes= protocol=https | |
2019-03-29T15:47:28.134325+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=enrollyork.herokuapp.com request_id=a251b7b5-3ac4-4779-93a2-8a1e730ca037 fwd="199.212.64.77" dyno= connect= service= status=503 bytes= protocol=https | |
2019-03-29T16:08:55.571683+00:00 heroku[rout |
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
{ | |
"name": "scraper", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", |
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
class Dog | |
def initialize(name) | |
@name = name | |
end | |
def initialize(breed) | |
@breed = breed | |
end |
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
# Write a method, `only_vowels?(str)`, that accepts a string as an arg. | |
# The method should return true if the string contains only vowels. | |
# The method should return false otherwise. | |
def only_vowels?(vowels) | |
vowels.split.all? { |letter| "aeiou".include?(letter) } | |
end | |
p only_vowels?("aaoeee") # => true | |
p only_vowels?("iou") # => true |
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
# Write a method, coprime?(num_1, num_2), that accepts two numbers as args. | |
# The method should return true if the only common divisor between the two numbers is 1. | |
# The method should return false otherwise. For example coprime?(25, 12) is true because | |
# 1 is the only number that divides both 25 and 12. | |
p coprime?(25, 12) # => true | |
p coprime?(7, 11) # => true | |
p coprime?(30, 9) # => false | |
p coprime?(6, 24) # => 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
# Write a method, coprime?(num_1, num_2), that accepts two numbers as args. | |
# The method should return true if the only common divisor between the two numbers is 1. | |
# The method should return false otherwise. For example coprime?(25, 12) is true because | |
# 1 is the only number that divides both 25 and 12. | |
p coprime?(25, 12) # => true | |
p coprime?(7, 11) # => true | |
p coprime?(30, 9) # => false | |
p coprime?(6, 24) # => 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
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch({headless: false}); | |
const page = await browser.newPage(); | |
await page.goto("https://schedulebuilder.yorku.ca/vsb/"); | |
await page.screenshot({ path: 'example.png' }); | |
await page.type('#mli', '*****'); | |
await page.type('#password', '*****'); | |
page.keyboard.press('Enter'); |
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
^CRickys-MacBook-Pro:scraper Rtyer$ node AutoEnroll.js | |
Promise { <pending> } | |
(node:23433) UnhandledPromiseRejectionWarning: ReferenceError: document is not defined | |
at /Users/Rtyer/Documents/Puppeteer/scraper/AutoEnroll.js:18:15 | |
(node:23433) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) | |
(node:23433) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
(node:23433) UnhandledPromiseRejectionWarning: Error: Execution context was destroyed, most likely because of a navigation. | |
at rewriteError (/Users/Rtyer/Documents/Puppeteer/scraper/node_modules/puppeteer/lib/ExecutionContext.js:162:15) | |
at process.internalTickCallback (internal/process/next_tick.js:77:7) | |
-- ASYNC -- |
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
^CRickys-MacBook-Pro:scraper Rtyer$ node AutoEnroll.js | |
Promise { <pending> } | |
(node:23433) UnhandledPromiseRejectionWarning: ReferenceError: document is not defined | |
at /Users/Rtyer/Documents/Puppeteer/scraper/AutoEnroll.js:18:15 | |
(node:23433) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) | |
(node:23433) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
(node:23433) UnhandledPromiseRejectionWarning: Error: Execution context was destroyed, most likely because of a navigation. | |
at rewriteError (/Users/Rtyer/Documents/Puppeteer/scraper/node_modules/puppeteer/lib/ExecutionContext.js:162:15) | |
at process.internalTickCallback (internal/process/next_tick.js:77:7) | |
-- ASYNC -- |