Skip to content

Instantly share code, notes, and snippets.

View Amzd's full-sized avatar
🚀

Casper Zandbergen Amzd

🚀
View GitHub Profile
@Amzd
Amzd / rl-tracker-network-disable-charts.user.js
Created April 25, 2019 10:04
Disables the line charts on the live tracker page, there is too many of them and they make the page lag.
// ==UserScript==
// @name Tracker Network Disable Live Line Charts
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description Disables the line charts on the live tracker page, there is too many of them and they make the page lag.
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.3.1.min.js
@Amzd
Amzd / rl-tracker-network-filter-feed.user.js
Created April 25, 2019 13:44
Filter by gamemode in the feed.
// ==UserScript==
// @name Tracker Network Filter Feed
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description Filters to gamemode in the feed.
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant GM_addStyle
// ==/UserScript==
@Amzd
Amzd / rl-tracker-network-share-session.user.js
Last active April 25, 2019 15:10
Share the session with a url
// ==UserScript==
// @name Tracker Network Share Session
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description Share the session to a url
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.3.1.min.js
@Amzd
Amzd / rl-tracker-network-2s-3s.user.js
Last active April 25, 2019 15:25
DONT USE WITH MY OTHER SCRIPT. Only shows 2v2 and 3v3 rank using css on https://rocketleague.tracker.network/live
// ==UserScript==
// @name Tracker Network 2s, 3s
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant GM_addStyle
// @run-at document-start
// @require http://code.jquery.com/jquery-3.3.1.min.js
@Amzd
Amzd / rl-tracker-network-clear-session.user.js
Created April 26, 2019 08:37
Adds delete all players button
// ==UserScript==
// @name Tracker Network Clear Session
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description Share the session to a url
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.3.1.min.js
@Amzd
Amzd / rl-tracker-network-sort-players.user.js
Last active April 26, 2019 09:23
Adds sorting buttons for Rocket League tracker players
// ==UserScript==
// @name Tracker Network Sort Players
// @namespace https://rocketleague.tracker.network
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://rocketleague.tracker.network/live*
// @grant GM_addStyle
// ==/UserScript==
@Amzd
Amzd / Instructions.md
Last active June 19, 2019 10:35 — forked from alloy/Instructions.md
Run iOS unit tests (in a Xcode workspace) when a file changes and *only* those tests related to the changed file. Also trims otest output and colors test results.
@Amzd
Amzd / NestedPublished.swift
Last active July 20, 2020 11:12
Moved to repo so you can use it in Swift Package Manager: https://github.com/Amzd/NestedPublished
/// Just like @Published this sends willSet events to the enclosing ObservableObject's ObjectWillChangePublisher
/// but unlike @Published it also sends the wrapped value's published changes on to the enclosing ObservableObject
@propertyWrapper @available(iOS 13.0, *)
public struct NestedPublished<Value: ObservableObject> where Value.ObjectWillChangePublisher == ObservableObjectPublisher {
public init(wrappedValue: Value) {
self.wrappedValue = wrappedValue
self.cancellable = nil
startListening(to: wrappedValue)
}
@Amzd
Amzd / SheetHeight.swift
Created October 17, 2019 10:37
SwiftUI Sheet with height value
//
// SheetHeight.swift
// Created by Casper Zandbergen on 17/10/2019.
//
import SwiftUI
import UIKit
extension View {
/// Presents a sheet.
@Amzd
Amzd / Publisher+void.swift
Last active January 16, 2021 22:35
Void publisher result
extension Publisher {
func void() -> Publishers.Map<Self, Void> {
self.map { _ in () }
}
}