Skip to content

Instantly share code, notes, and snippets.

View p-larson's full-sized avatar

Peter Larson p-larson

View GitHub Profile
import ComposableArchitecture
/*
Hey Point-Free Community 👋,
Please share your experience, perspectives and opinions to help us gain
insight and visibility on how TCA and other Point-Free libraries are being
used. We're looking forward to learning more about who the community is and
sharing how these libraries fit in your tech-stack.
import SwiftUI
import Foundation
import CoreGraphics
import AVFoundation
import VideoToolbox
import ComposableArchitecture
struct ContentView: View {
let store: Store<CameraState, CameraAction>
//
// ContentView.swift
// Aiden-1
//
// Created by Peter Larson on 7/23/20.
// Copyright © 2020 Peter Larson. All rights reserved.
//
import SwiftUI
//
// SwiftUIViewDemo.swift
//
// Created by Peter Larson on 5/25/20.
// Copyright © 2020 Peter Larson. All rights reserved.
//
import SwiftUI
import SwiftUIPager
@p-larson
p-larson / OverlayLayer.swift
Created June 14, 2019 01:13
OverlayLayer.swift Fix
import UIKit
// Bug Recreation Playground
// Peter Larson
// Util
extension UIColor {
func lighter(by percentage: CGFloat = 25.0) -> UIColor {
return self.adjust(by: abs(percentage) ) ?? self
import UIKit
// Bug Recreation Playground
// Peter Larson
// Util
extension UIColor {
func lighter(by percentage: CGFloat = 25.0) -> UIColor {
return self.adjust(by: abs(percentage) ) ?? self
@p-larson
p-larson / Tasky.java
Last active December 14, 2019 20:34
Util for BukkitRunnables
package com.wowserman;
import java.lang.ref.WeakReference;
import java.util.function.Consumer;
import org.bukkit.plugin.Plugin;
import org.bukkit.scheduler.BukkitRunnable;
/**
* Tasky.java
@p-larson
p-larson / jobConfig.yml
Last active April 7, 2017 16:01
Balanced jobConfig.yml for Jobs Reborn - Wowserman
# Jobs configuration.
#
# Stores information about each job.
#
# For example configurations, visit http://dev.bukkit.org/server-mods/jobs/.
#
# Configuration settings designed by Wowserman.
#
Jobs: