This Gist was automatically created by Carbide, a free online programming environment.
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
| pub use inner::*; | |
| #[rustfmt::skip] | |
| mod inner { | |
| use femtovg::Color; | |
| use lazy_static::lazy_static; | |
| lazy_static!{ pub static ref WHITE: Color = Color::rgb(0xff, 0xff, 0xff); } | |
| lazy_static!{ pub static ref BLACK: Color = Color::rgb(0x00, 0x00, 0x00); } | |
| lazy_static!{ pub static ref GRAY_0: Color = Color::rgb(0xf8, 0xf9, 0xfa); } |
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
| Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html |
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 { | |
| component$, | |
| useSignal, | |
| $, | |
| } from "@builder.io/qwik" | |
| import { loader$, DocumentHead } from "@builder.io/qwik-city" | |
| import { scan, Subject } from "rxjs" | |
| export const timeLoader = loader$(() => new Date()) |
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
| out/ |
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/[strformat, strutils, bitops] | |
| import pixie, chroma | |
| # define `nort` when opengl or windows system is not available. | |
| when not defined(nort): | |
| import nimgl/[glfw, opengl] | |
| proc `{}`(image: var Image, x, y: int): var ColorRGBX = | |
| ## Accessing any pixels outside the bounds of the image is error | |
| when not defined(danger): |
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
| =begin pod | |
| Example Usage: | |
| =begin code | |
| use OpenGL::GLFW:from<Perl5> qw<:all>; | |
| use lib "."; | |
| use ConstCaller; | |
| constant GLFW = ConstCaller.new :package(OpenGL::GLFW.WHO) :prefix<GLFW>; |
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
| %YAML 1.2 | |
| --- | |
| # See http://www.sublimetext.com/docs/3/syntax.html | |
| file_extensions: [p6, pm6, pod6, raku, rakumod, rakudoc, rakutest, nqp, crotmp] | |
| scope: source.raku | |
| contexts: | |
| # The prototype context is prepended to all contexts but those setting | |
| # meta_include_prototype: false. | |
| prototype: |
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 Data.Colist | |
| InfiniteBits : Type | |
| InfiniteBits = Colist Bool | |
| -- 1.bits << n | |
| record RealData where | |
| constructor MkRealData | |
| n: Int | |
| bits: InfiniteBits |
- SIGSEGV proof: able to handle SIGFPE/SIGABRT/SIGSEGV (ususally cause by calling c library)
| name | Panic proof | SIGSEGV proof |
|---|---|---|
| tokio (tested with xtra) | Yes; thread 'tokio-runtime-worker' panicked | No |
| bastion | Yes; error with tracing |
No |