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
| const request = require('request'); | |
| const fs = require('fs'); | |
| const deckIds = [ | |
| 'dDhaN6EmR', | |
| 'GXW_KkKzT', | |
| 'ae5b8c7e-fd3a-4835-b972-fbf0bed2b81c', | |
| 'cbWFJghWo', | |
| 'z3NzziPIo', | |
| ]; |
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
| tyObject_Sprite__6SI7Z6JkNJk4bH48mDwq9cg* T130_ = get__bgv7mB0Sx5tgxteTqul5yQkernel(ker__eVw9bIwosa9afHPUbhTNIC9cA, (*colonenv_).ent1); | |
| if (!(T130_ == NIM_NIL)) goto LA131_; | |
| { { | |
| elemOpenStart__jT9ak2GPlr8vyAtdF8LS2Dw(ui__42p17lckjk2cbmvFNLln6Q, TM__S749agSB2nly9aXIEQy7X8iA_143); | |
| class__Wcf4LbCEN0DO6tvGHX0ibA(ui__42p17lckjk2cbmvFNLln6Q, TM__S749agSB2nly9aXIEQy7X8iA_144); | |
| attr__xEhvO6yxNDrF9bpDFyTym9ag(ui__42p17lckjk2cbmvFNLln6Q, TM__S749agSB2nly9aXIEQy7X8iA_145, TM__S749agSB2nly9aXIEQy7X8iA_146); | |
| elemOpenEnd__oldwKjbyvASfe4As2cufZw_2(ui__42p17lckjk2cbmvFNLln6Q); | |
| { | |
| NI T135_ = JS_uiEventCount("click"); | |
| NI countX60gensym173_ = T135_; |
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
| const std = @import("std"); | |
| const console = @import("console.zig"); | |
| const gl = @import("gfx.zig").gl; | |
| const timing = @import("timing.zig"); | |
| const ui = @import("ui.zig"); | |
| // Rect demo | |
| // | |
| const rect_demo = struct { |
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
| proc loadEffect*(gfx: var Graphics, path: static string): Effect = | |
| ## Load an `Effect` based on the shader source file at the given path. | |
| ## The path must be statically known. The file should be present | |
| ## alongside the source code files of the application and is read at | |
| ## compile time. | |
| # Constant code string with preamble based on platform | |
| proc prepareCode(path: static string): string = | |
| when defined(emscripten): | |
| result.add("""#version 100 |
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 std/[math, random] | |
| import boot | |
| import timing, graphics, events, kernel | |
| type | |
| Depth = object | |
| depth: float |
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 other | |
| echo thing.exported | |
| #echo thing.notexported | |
| other.doStuff: | |
| echo thing.exported | |
| echo thing.notexported |
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 options | |
| type | |
| Thingy = object | |
| name: string | |
| age: int | |
| proc maybeMake(should: bool, name: sink string, age: int): Option[Thingy] = |
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 asyncdispatch | |
| import jester | |
| routes: | |
| get "/": | |
| resp "hello, world!" | |
| runForever() |
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
| #pragma once | |
| #include "precomp.h" | |
| #include "graphics.h" | |
| #include "kernel.h" | |
| #include "timing.h" | |
| using Vec2 = cpVect; |
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
| # Floats | |
| block: | |
| let f = 1.0 | |
| echo f.abs | |
| # `let`, `var`, `const`, ... | |
| block: | |
| block: # let |