This file contains hidden or 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 bash | |
| set -euo pipefail | |
| # === CONFIGURE THESE === | |
| ASE_DIR="$HOME/src/aseprite" # base directory for the work | |
| SKIA_TAG="m124-08a5439a6b" # adjust based on Aseprite’s required Skia version Eg. m124-08a5439a6b | |
| SKIA_URL="https://github.com/aseprite/skia/releases/download/${SKIA_TAG}/Skia-macOS-Release-arm64.zip" | |
| # You may need to update SKIA_TAG/URL based on the version listed in the INSTALL.md of Aseprite. | |
| APP_NAME="Aseprite.app" | |
| # ======================= |
This file contains hidden or 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
| // 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |