Skip to content

Instantly share code, notes, and snippets.

View pmattos's full-sized avatar
🏢
Working from  Vancouver

Paulo Mattos pmattos

🏢
Working from  Vancouver
View GitHub Profile
@pmattos
pmattos / PDFView+Helpers.swift
Last active March 22, 2019 20:20
Disables vertical scroll bouncing in a PDFView
import UIKit
import WebKit
import PDFKit
import PlaygroundSupport
extension PDFView {
func disableBouncing() {
for subview in subviews {
if let scrollView = subview as? UIScrollView {
@pmattos
pmattos / BWImage.png
Last active March 11, 2019 14:36
An Horizontal, Black & White Image Representation with Otimized Storage 🤔
BWImage.png
import XCTest
/// Sign up flow UI tests.
///
/// All tests assume that no user is currently logged in.
final class SignUpUITests: AppUITests {
private var newUser: TestUser!
override func setUp() {
/*
The MIT License (MIT)
Copyright (c) 2014-2018 Paulo Roberto Ribeiro Mattos, William Lewis
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do so,
/*
The MIT License (MIT)
Copyright (c) 2018 Paulo Roberto Ribeiro Mattos
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do so,
/*
The MIT License (MIT)
Copyright (c) 2018 Paulo Roberto Ribeiro Mattos
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do so,