Skip to content

Instantly share code, notes, and snippets.

{"formatVersion":"1.0","generatedAt":"2021-06-16T07:37:35Z","generatedBy":{"name":"Mapbox"},"keywords":["mapbox","navigation","map","routing"],"name":"Mapbox Swift Packages","overview":"","packages":[{"keywords":["macos","linux","swift","ios","navigation","tvos","watchos","directions","osrm","openstreetmap","routing","traffic","map-matching","valhalla","mapbox-directions"],"license":{"name":"ISC","url":"https://raw.githubusercontent.com/mapbox/mapbox-directions-swift/main/LICENSE.md"},"readmeURL":"https://raw.githubusercontent.com/mapbox/mapbox-directions-swift/main/README.md","summary":"Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux","url":"https://github.com/mapbox/mapbox-directions-swift","versions":[{"defaultToolsVersion":"5.3.0","manifests":{"5.3.0":{"minimumPlatformVersions":[{"name":"macos","version":"10.12"},{"name":"ios","version":"10.0"},{"name":"watchos","version":"3.0"},{"name":"tvos","version":"12.0"}],"packageName":"MapboxDirections","products":[{"name
@S2Ler
S2Ler / lldb-debugging.md
Created December 23, 2018 08:45 — forked from alanzeino/lldb-debugging.md
LLDB debugging with examples

LLDB Debugging Cheat Sheet

Commands

LLDB Commands

LLDB comes with a great set of commands for powerful debugging.

help

Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help for more information on a command. Type help to get help for a specific option in a command too.

import Foundation
extension URLComponents {
public mutating func whyThisFails() {
guard let currentComponentString = components.string,
let components = URLComponents(string: currentComponentString) else { return }
self = components
}
@S2Ler
S2Ler / ObjectObserver.swift
Created April 6, 2017 06:22
KVO observer in Swift
import Foundation
public final class ObjectObserver<Object: NSObject>: NSObject {
private var observationContext = 0
// MARK: - Init
public typealias KeyPath = String
private let observers: [KeyPath: (KeyPath, Object) -> Void]
@S2Ler
S2Ler / debug_swift_compilation_time.xcconfig
Created March 24, 2017 09:41
Swift Compilation Time Debug
OTHER_SWIFT_FLAGS= $(inherited) -Xfrontend -warn-long-function-bodies=120 -Xfrontend -debug-time-expression-type-checking -Xfrontend -debug-time-function-bodies
@S2Ler
S2Ler / Tools.md
Last active March 26, 2021 08:02
My Tools
@S2Ler
S2Ler / update_git_author.sh
Created February 26, 2017 09:16
Update Git Author
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="OLD_EMAIL"
CORRECT_NAME="CORRECT_NAME"
CORRECT_EMAIL="CORRECT_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
void permute(int *, int, int);
@S2Ler
S2Ler / keybase.md
Last active April 30, 2020 21:52
keybase.md

Keybase proof

I hereby claim:

  • I am diejmon on github.
  • I am s2ler (https://keybase.io/s2ler) on keybase.
  • I have a public key ASCTpGgttv5gAJZjmj695dMJfp8y_jPZzUhnZ2eTxGXz0go

To claim this, I am signing this object:

@S2Ler
S2Ler / BuildWorksheet.scpt
Created May 16, 2016 20:28
BillingTimer build worksheet from timers
function buildWorkLog(timers) {
var worklog = ''
for (t in timers) {
worklog += timers[t].pause_date() + ': ' + timers[t].name() + ' ' + timers[t].formatted_time() + '\n'
}
return worklog
}
function saveWorkLog(worklog) {
finder = Application("Finder")