Skip to content

Instantly share code, notes, and snippets.

View Helam24's full-sized avatar

Jacob Kelly Helam24

View GitHub Profile
import lldb
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f SwiftPrinter.printer pjson')
def printer(debugger, command, result, internal_dict):
debugger.HandleCommand('p print(String(data: try! JSONSerialization.data(withJSONObject:' + command + ', options: .prettyPrinted), encoding: .utf8 )!)')
@edwardsanchez
edwardsanchez / SpringAnimation.swift
Created March 11, 2020 23:47
Spring Animation Playground - Calculating stiffness and damping with a given duration and dampingRatio.
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class MyViewController : UIViewController {
override func loadView() {
let view = UIView()
view.backgroundColor = .white
self.view = view