Skip to content

Instantly share code, notes, and snippets.

View douglastaquary's full-sized avatar

Douglas Taquary douglastaquary

View GitHub Profile
@douglastaquary
douglastaquary / SkeletonView
Created August 14, 2023 15:29 — forked from ArchieGoodwin/SkeletonView
Basic skeleton view for usage in SwiftUI app.
public struct SkeletonGradientAnimationView: View {
@State var offset: CGFloat = 0
public var body: some View {
ZStack {
GeometryReader { reader in
let largestSide = reader.size.width > reader.size.height ? reader.size.width : reader.size.height
LinearGradient(
@douglastaquary
douglastaquary / ExampleTabbedView.swift
Created April 2, 2020 01:37 — forked from amelnychuck/ExampleTabbedView.swift
Example SwiftUI TabbedView Implementation (Xcode Beta 3)
import SwiftUI
struct ExampleTabbedView : View {
@State private var selection = 1
var body: some View {
TabbedView(selection: $selection) {
Text("Tab 1")
.tabItem({
@douglastaquary
douglastaquary / Dangerfile
Created May 11, 2019 23:37 — forked from candostdagdeviren/Dangerfile
Sample Dangerfile for iOS Project
# PR is a work in progress and shouldn't be merged yet
warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]"
# Warn when there is a big PR
warn "Big PR, consider splitting into smaller" if git.lines_of_code > 500
# Ensure a clean commits history
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
fail "Please rebase to get rid of the merge commits in this PR"
end
@douglastaquary
douglastaquary / iterm2-solarized.md
Created April 3, 2018 17:20 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@douglastaquary
douglastaquary / diferença-de-angulos.m
Created August 9, 2016 00:50 — forked from ezefranca/diferença-de-angulos.mm
diferença de angulos objective-c
#define RADIANOS_PARA_GRAUS(radians) ((radians) * (180.0 / M_PI))
-(float)anguloEntreCoordenadas:(CLLocationCoordinate2D)primeiraCoordenada
toCoordinate:(CLLocationCoordinate2D)segundaCoordenada {
float deltaLongitude = segundaCoordenada.longitude - primeiraCoordenada.longitude;
float deltaLatitude = segundaCoordenada.latitude - primeiraCoordenada.latitude;
// lembrando que M_PI * .5f = pi / 2
float angulo = (M_PI * .5f) - atan(deltaLatitude / deltaLongitude);