Skip to content

Instantly share code, notes, and snippets.

View NoahKamara's full-sized avatar
🪲
Debugging

Noah Kamara NoahKamara

🪲
Debugging
View GitHub Profile
@NoahKamara
NoahKamara / darkreader.js
Created March 6, 2022 21:14 — forked from kfur/darkreader.js
Dark Reader userscript for Safari browser
// ==UserScript==
// @name DarkReader
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
// MIT License
// Copyright (c) 2019 Alexander Shutau
@NoahKamara
NoahKamara / pipeverywhere.user.js
Created May 29, 2022 00:26 — forked from MRuy/pipeverywhere.user.js
Userscript: PiP everywhere
// ==UserScript==
// @name PictureInPicture
// @namespace pip
// @version 1.0.0
// @description PiP everywhere
// @author You
// @include *
// @grant GM_registerMenuCommand
// ==/UserScript==
@NoahKamara
NoahKamara / CompoundPredicate.swift
Last active October 29, 2024 21:19
Combining New Swift Predicates
import Foundation
@available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/// Allows you to use an existing Predicate as a ``StandardPredicateExpression``
struct VariableWrappingExpression<T>: StandardPredicateExpression {
let predicate: Predicate<T>
let variable: PredicateExpressions.Variable<T>
func evaluate(_ bindings: PredicateBindings) throws -> Bool {
// resolve the variable