Skip to content

Instantly share code, notes, and snippets.

View dornad's full-sized avatar

Daniel Rodriguez dornad

View GitHub Profile
@dornad
dornad / movies.json
Last active February 17, 2017 20:06
{
"page": 1,
"results": [
{
"poster_path": "/tvSlBzAdRE29bZe5yYWrJ2ds137.jpg",
"adult": false,
"overview": "Princess Leia is captured and held hostage by the evil Imperial forces in their effort to take over the galactic Empire. Venturesome Luke Skywalker and dashing captain Han Solo team together with the loveable robot duo R2-D2 and C-3PO to rescue the beautiful princess and restore peace and justice in the Empire.",
"release_date": "1977-05-25",
"genre_ids": [
12,
@startuml;
actor User;
participant "First Class" as A;
participant "Second Class" as B;
participant "Last Class" as C;
User -> A: DoWork;
activate A;
@dornad
dornad / ios990_before.uml
Last active September 8, 2017 20:39
IOS-990 Class Diagram - Before
@startuml
class Create_DesignCardViewController
class PPCreateInputAccessoryBar
class PPCreateInputManager
class EJBindingPPBridge
class PPCreateViewPort
class ImageUploadManager
class PPURLSession
class PPAPIImageUploader
@dornad
dornad / feedbackkit.uml
Last active September 14, 2017 21:51
FeedbackKit Class Diagram
@startuml
class FeedbackKit {
+{static} FeedbackKit sharedInstance
+{static} FeedbackKitSettings? _settings
+configure(settings:)
+shouldShowDialog(): Bool
+present(dialog:presenter:result:)
+present(dialog:presenter:triggerPoint:result:)
+present(dialog:presenter:triggerPoint:analyticsDelegate:result:)
@dornad
dornad / feedbackkit_other.uml
Last active September 15, 2017 18:49
FeedbackKit other classes uml
@startuml;
class UIKit.UIPresentationController;
interface FeedbackKit.NonRatingFeedbackDialogType;
class FeedbackKitTrackablePPAnalyticsEvent;
class FeedbackDialogPresentationController;
class FeedbackDialogRoundedButton;
class FeedbackDialogViewController;
class FeedbackDialogViewModel;
@dornad
dornad / ios990.uml
Last active September 27, 2017 17:55
IOS-990 Class Diagram -- After
@startuml
class Create_DesignCardViewController
class PPCreateInputAccessoryBar
class PPCreateInputManager
class EJBindingPPBridge
class PPCreateViewPort
class PPAccountImage
class PPInputViewTypeImageTool
class ImageUploadCoordinator
@dornad
dornad / ShareExtensionGist.swift
Created May 10, 2018 17:14
Share Extension Spike Gist
//
// ViewController.swift
// ShareSpike
//
// Created by Daniel Rodriguez on 5/10/18.
// Copyright © 2018 Daniel Rodriguez. All rights reserved.
//
import UIKit
@dornad
dornad / UIStackView+SpacerViews.swift
Created February 18, 2022 17:36
UIStackView SpacerView
/**! Currently these two cause this warning:
This NSLayoutConstraint is being configured with a constant that exceeds internal limits.
A smaller value will be substituted, but this problem should be fixed.
Break on BOOL _NSLayoutConstraintNumberExceedsLimit(void) to debug. This will be logged only once.
This may break in the future.
*/
extension UIStackView {
/// A vertical spacer view that will expand to fill the available space
fileprivate func verticalSpacer() -> UIView {
let v = UIView()
@dornad
dornad / vto-easter-egg.json
Last active September 6, 2023 14:57
VTO Easter Egg JSON
{
"1346034": [
{
"identifier": "com.warbyparker.vto.easter-egg-spidey-test",
"name": "Easter Egg GIF Test",
"type": {
"backgroundSegmentation": {
"name": "spidey",
"extension": "gif",
"type": "dynamic"
@dornad
dornad / diagram-1-ecomios-1104.mermaid
Last active September 7, 2023 16:03
[ECOMIOS-1104] VTO Easter Egg - Diagram 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.