I hereby claim:
- I am stevebrun on github.
- I am sbrun (https://keybase.io/sbrun) on keybase.
- I have a public key ASDdAuz7l8NXr4dTieWLCCHVHVrxezxED0cYXn5kPvymyAo
To claim this, I am signing this object:
import Foundation | |
struct Zip3Sequence<Sequence1, Sequence2, Sequence3>: Sequence | |
where Sequence1: Sequence, Sequence2: Sequence, Sequence3: Sequence { | |
typealias Element = Iterator.Element | |
typealias Iterator = Zip3Iterator<Sequence1.Iterator, Sequence2.Iterator, Sequence3.Iterator> | |
private var s1: Sequence1 | |
private var s2: Sequence2 | |
private var s3: Sequence3 |
struct CycleIterator<Element>: IteratorProtocol, ExpressibleByArrayLiteral { | |
private var elements: [Element] | |
private var offset: Int = 0 | |
init(_ elements: [Element]) { | |
self.elements = elements | |
} | |
init(arrayLiteral elements: Element...) { | |
self.init(elements) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env swift | |
// | |
// Copyright 2021 Steven Brunwasser | |
// | |
// 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: |
#!/bin/bash | |
# | |
# Launch Steam Desk's "Desktop Mode" from within "Gaming Mode". | |
# https://www.reddit.com/r/SteamDeck/comments/wycp1r/comment/ilw1cov/ | |
# https://www.reddit.com/user/FineWolf/ | |
# Friday, August 26, 2022 | |
# | |
# Commented by Steven Brunwasser | |
# Sunday, October 23, 2022 | |
# |
#!/bin/bash | |
## | |
## Launch Firefox from Steam Deck's "Gaming Mode". | |
## | |
## Although it doesn't provide a perfect browsing experience, this script | |
## at least makes sure that menus and windows appear as they're supposed to. | |
## | |
## INSTRUCTIONS: | |
## | |
## - Save this file to the ~/.local/bin directory. |
// | |
// ConstantClass.m | |
// | |
// An example for how to create compile-time constant Objective-C objects that | |
// can be assigned to any static const variable. | |
// | |
// Compile with -fno-objc-arc to allow overriding of retain/release methods. | |
// | |
#import <Foundation/Foundation.h> |
#include "iexp.h" | |
#include <float.h> | |
#include <math.h> | |
#include <stddef.h> | |
// https://stackoverflow.com/questions/7812044/finding-trailing-0s-in-a-binary-number/36791297#36791297 | |
// Manually get two's compliment with (~integer + 1) instead of arithmatic | |
// negation because signed integer representation is implementation-defined | |
// behavior, so we can't always assume that negative integers are represented | |
// with two's complement instead of one's complement or signed magnitude. |
// | |
// let_if.h | |
// | |
// A control-flow construct in C for scoped variable declarations that satisfy | |
// a follow-up conditional expression. | |
// | |
// let_if (<declaration>; <condition>) { | |
// <code-block> | |
// } | |
// |
There are special combinations of inline and multiline comments in C that you
abuse exploit take advantage of utilize to comment out one of two
mutually-exclusive code blocks, and then easily swap between them.
In this example, the first main
function is compiled, while the second is
commented out.