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
// Task 1 | |
function isOldEnoughToDrink(age) { | |
var output; | |
if (age >= 18) { | |
output = true; | |
console.log(`isOldEnoughToDrink: ${output}`); // --> true | |
} else { | |
output = false; | |
console.log(`isOldEnoughToDrink: ${output}`); // --> 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
// src/app.ts | |
import * as PIXI from 'pixi.js' | |
const canvasWidthHeight = Math.min(Math.min(window.innerHeight, window.innerWidth), 512); | |
const GRAVITY = 9.8; | |
const GAME_SPEED_X = 40; | |
const BIRD_FRAME_LIST = [ | |
'./assets/images/frame-1.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
""" | |
This module defines the `main()` coroutine for the Apify Actor, executed from the `__main__.py` file. | |
Feel free to modify this file to suit your specific needs. | |
To build Apify Actors, utilize the Apify SDK toolkit, read more at the official documentation: | |
https://docs.apify.com/sdk/python | |
""" | |
from apify import Actor |