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
cask_args appdir: "/Applications" | |
tap "homebrew/cask-fonts" | |
brew "mas" | |
#### LAPTOPS #### | |
#cask "tripmode" | |
#### LAPTOPS #### | |
mas "Boop", id: 1518425043 |
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 datetime | |
import json | |
import os | |
import subprocess | |
import sys | |
############# | |
### USAGE ### | |
############# |
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
//: A UIKit based Playground for presenting user interface | |
import SwiftUI | |
import PlaygroundSupport | |
struct SlideDemo: View { | |
@State var activePage = 0 | |
var body: some View { | |
// Change this VStack to a List and the animation breaks |
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
// | |
// RxUIWebViewDelegateProxy.swift | |
// | |
// Created by Casey Liss on 24/3/16. | |
// Copyright © 2016 Casey Liss. All rights reserved. | |
// | |
import Foundation | |
import RxSwift | |
import RxCocoa |
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
// This is intended to be dropped in a Playground. | |
import Foundation | |
let json = | |
""" | |
{ | |
"name": "Casey's Corner", | |
"menu": [ | |
{ |
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/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
######################## Functions ######################### |
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 Foundation | |
import Combine | |
public struct RatingsFetcher { | |
/// Asynchronously gets the number of ratings for the current version of the given app. | |
/// - Parameter appId: App ID to look up | |
/// - Returns: Count of ratings for the current version | |
public static func ratingsForCurrentVersion(appId: Int) async throws -> Int { | |
guard let url = URL(string: "https://itunes.apple.com/lookup?id=\(appId)") else { |
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 UIKit | |
import SwiftUI | |
import PlaygroundSupport | |
/* ***************************************** | |
* GeometryReader with PreferenceKey | |
* *****************************************/ | |
struct HeightPreferenceKey: PreferenceKey { | |
static let defaultValue: CGFloat = 0 |
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
public class DebugTimer : IDisposable | |
{ | |
private readonly System.Diagnostics.Stopwatch _watch; | |
private readonly string _blockName; | |
/// <summary> | |
/// Creates a timer. | |
/// </summary> | |
/// <param name="blockName">Name of the block that's being timed</param> | |
public DebugTimer(string blockName) |
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 UIKit | |
public typealias RowSectionPair = (row: Int, section: Int) | |
extension IndexPath: RawRepresentable { | |
public typealias RawValue = RowSectionPair | |
public init?(rawValue: RowSectionPair) { | |
self = IndexPath(row: rawValue.row, section: rawValue.section) | |
} |
NewerOlder