- ➕ Create your project by clicking this template link: https://github.com/joeskeen/angular-io-game/generate
(link will be live at 8:00 PM MDT (UTC -6)) - 👨🏾💻 Make your own IO game based on the seed project
- 📝 Submit the game using the form: https://forms.gle/qNms32fdgkyMht2L6
⚠️ Submission deadline is 11:00 PM MDT (UTC -6) - 🎮 From 11pm-12am we will all play each other's games and winner will be
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
| // workaround script to keep TypeScript from crashing in VSCode | |
| // since Pulumi has too big of a package | |
| // run this script after installing NPM packages for infrastructure | |
| // originally created by Ankvi: | |
| // https://github.com/pulumi/pulumi-azure-native/issues/1997#issuecomment-1370835665 | |
| import { readdir, rm, writeFile, readFile } from "fs/promises"; | |
| import { join } from 'path'; | |
| const rootFolder = join(__dirname,'../node_modules/@pulumi/azure-native'); | |
| const enumsFolder = join(rootFolder,'types/enums'); |
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
| + umask 000 | |
| + GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="main" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR | |
| Cloning into '/opt/atlassian/pipelines/agent/build'... | |
| + git reset --hard 4c684f2c6785329c62e18489ded3dbaf3f76ac0f | |
| HEAD is now at 4c684f2 fix syntax error | |
| + git config user.name bitbucket-pipelines |
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
| 🕊️ 🖼️ 🍇 | |
| 🖍️🆕isMatch👌 | |
| 🖍️🆕matchPosition🍬🔢 | |
| 🖍️🆕matchLength🍬🔢 | |
| 🆕 🍼isMatch👌 🍼matchPosition🍬🔢 🍼matchLength🍬🔢 🍇🍉 | |
| 🆕▶️📙 🍇 | |
| 👎 ➡️ 🖍️isMatch | |
| 🤷 ➡️ 🖍️matchPosition | |
| 🤷 ➡️ 🖍️matchLength |
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
| var apples = new[] { new Apple("Red"), new Apple("Blue"), new Apple("Green") }; | |
| var oranges = new[] { new Orange(Size.Large), new Orange(Size.Small), new Orange(Size.Medium) }; | |
| // works | |
| Console.WriteLine(string.Join(',', apples.OrderBy(x => x))); | |
| // throws InvalidOperationException | |
| Console.WriteLine(string.Join(',', oranges.OrderBy(x => x))); | |
| class Apple : IComparable<Apple> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>ASCII Webcam</title> | |
| <style type="text/css"> | |
| html, | |
| body { |
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
| import { Observable, firstValueFrom, timer, isObservable, of } from "rxjs"; | |
| import { first, timeout, catchError } from "rxjs/operators"; | |
| import { TestScheduler } from "rxjs/testing"; | |
| describe("testing error cases in Jest", () => { | |
| describe("with RxJS", () => { | |
| /** | |
| * A test utility function for converting an Observable into a Promise for unit tests | |
| * Uses a TestScheduler to make things like the passage of time (timeouts, debounce, etc.) | |
| * happen instantaneously. |
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
| describe("testing error cases in Jest", () => { | |
| describe("errors (vanilla Jest)", () => { | |
| describe("when thrown synchronously", () => { | |
| function synchronousError() { | |
| throw new Error(""); | |
| } | |
| it("should require expect(action).toThrow()", () => { | |
| const action = () => synchronousError(); | |
| expect(action).toThrow(); |
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
| Things that squirt | |
| Things you shouldn't throw off a building | |
| Things grownups wish they could still do | |
| Things you shouldn't do In public | |
| Things you shouldn't play catch with | |
| Things that go bad | |
| Things you shouldn't lick | |
| Things you would rather forget | |
| Things you Shouldn't swallow | |
| Things that jiggle |