Skip to content

Instantly share code, notes, and snippets.

View kaishin-r's full-sized avatar
🎯
Focusing

Kaishin R. kaishin-r

🎯
Focusing
  • Tokyo, Japan
  • 23:40 (UTC +09:00)
View GitHub Profile
@mobilinked
mobilinked / gist:9b6086b3760bcf1e5432932dad0813c0
Last active February 9, 2024 13:03
SwiftUI - prevent auto dismiss the sheet by drag down
//
// Created by https://quickplan.app on 2020/11/8.
//
import SwiftUI
/// Control if allow to dismiss the sheet by the user actions
/// - Drag down on the sheet on iPhone and iPad
/// - Tap outside the sheet on iPad
/// No impact to dismiss programatically (by calling "presentationMode.wrappedValue.dismiss()")
@LeonardoCardoso
LeonardoCardoso / GPG-Tower
Last active April 21, 2023 11:53
How to setup Tower to use the GPG Suite
# GPG on Tower
@ankurk91
ankurk91 / github_gpg_key.md
Last active June 7, 2024 14:31
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@franciscojma86
franciscojma86 / MKSnapshotter
Last active July 7, 2020 00:22
MKSnapshotter Implementation
#import "MyViewController.h"
#import <MapKit/MapKit.h>
@interface MyViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *mapImageView;
@end
//helper method to get the rect in the map for an array of points
MKMapRect MapRectBoundingMapPoints(MKMapPoint points[], NSUInteger pointCount){
double minX = INFINITY, maxX = -INFINITY, minY = INFINITY, maxY = -INFINITY;