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
// ==UserScript== | |
// @name Cohost Toaster Overlay | |
// @namespace https://cohost.org/ | |
// @version 0.1 | |
// @description bring back teh toasters | |
// @author \phi | |
// @match https://cohost.org/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
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
; -- Ancilla Example -- | |
!AssembleExampleAncilla = 1 ; Boolean to enable assembling the subroutines | |
; for the Example ancilla object. | |
; 1 = Yes; 0 = No | |
if !AssembleExampleAncilla != 0 | |
AncillaExt_AddExample: ; Subroutine to create ancilla object | |
LDA #$44 ; `A` register must be the ancilla object's id/index | |
JSL AddAncillaLong ; Call this to actually create the object |
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
import Base: iterate | |
struct Reverse{T} | |
itr::T | |
end | |
reverse(itr) = Reverse(itr) | |
reverse(r::AbstractRange) = Base.reverse(r) | |
Base.eltype(::Type{Reverse{T}}) where T = eltype(T) |
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
Copyright © 2021 Fcard | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEA |
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
/benchmarks | |
/bench |
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
/popbench_gist | |
/popsh | |
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
""" | |
exports fmt and @fmt, functions to build | |
format specifiers in an alternate | |
way to @fmt_str | |
""" | |
module Cons | |
export fmt, @fmt | |
import Base: @pure | |
import ..GenPrintf: PrintArgument, PrintValue, | |
PrintBoth, FormatSpecifier |
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
#!/usr/bin/env julia | |
module PrideFlag | |
using Cairo | |
function make_flag(n, file; line_width=1) | |
@assert n <= 256 | |
i = 0 | |
f = filtered_colors(n) | |
w = length(f) * line_width |
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
module ExprKw | |
export Missing, @kw, @arg, @noarg | |
type Missing{Var,T} <: Exception ex::T end | |
Base.showerror{Var}(io::IO, err::Missing{Var}) = println(io, "Missing variable $Var in expression ($(err.ex))") | |
@generated function check_for_missing(args...) | |
for i in eachindex(args) | |
args[i] <: Missing && return :(throw(args[$i])) | |
end |
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
" Command: Command | |
" | |
" A different take on command creation, | |
" Command creates a namespace for which | |
" its implementation functions can be | |
" stored in. The command name also comes | |
" first, followed by its argument type | |
" in parentheses, to mimic function | |
" definitions. name Anything preceding a ':=' | |
" command body. |
NewerOlder