Skip to content

Instantly share code, notes, and snippets.

View kaixin-l's full-sized avatar
๐ŸŽฏ
Focusing

Kaixin L. kaixin-l

๐ŸŽฏ
Focusing
  • Tokyo, Japan
  • 14:00 (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 March 17, 2025 10:05
How to setup Tower to use the GPG Suite
# GPG on Tower
@ankurk91
ankurk91 / github_gpg_key.md
Last active April 14, 2025 13:42
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;