This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
import json | |
import os | |
from downloads import download_logs | |
from downloads import download_symbols | |
from macholib.MachO import MachO | |
from macholib.SymbolTable import SymbolTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import XCTest | |
// myString.stackPointer() -> UnsafePointer<Int8>?: | |
// Returns a pointer to the memory allocated on the stack for this string. | |
// | |
// myString.mutableStackPointer() -> UnsafeMutablePointer<Int8>? | |
// Returns a mutable pointer to the memory allocated on the stack for this string. | |
// | |
// myString.withUnsignedStackPointer(closure) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## This script makes it so that you don't have to type | |
## long file paths into `git diff` anymore. | |
## | |
## Add this script anywhere on your system and then | |
## in your ~/.gitconfig add the following: | |
## | |
## [alias] | |
## diff-list = !/Full/Path/To/Script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
let gridLocationsLock = DispatchSemaphore(value: 1) | |
var activeGridLocations:[CGPoint] = [] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.my.app; | |
import android.content.Context; | |
import android.graphics.Matrix; | |
import android.graphics.PointF; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
/** | |
* Class used to get detailed information about the size and position of an ImageView. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class used for converting between bases | |
* and custom bases using digit libraries. | |
* | |
* @see https://me.nathanf.tk/2019/05/02/creating-a-custom-numeric-base-in-php/ | |
* | |
* @author Nathan Fiscaletti | |
*/ | |
class Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.app; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
public class Reachability | |
{ | |
/** | |
* Connection Type Definitions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImageView Additions | |
// | |
// Created by Nathan Fiscaletti on 11/12/18. | |
// Copyright © 2018 Nathan Fiscaletti. All rights reserved. | |
// | |
// An extension for UIImageView that provides useful tools for | |
// handling the scaled size of the image, the padding added by | |
// the UIImageView and X/Y coordinate mapping. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CRASH=$1 | |
APP=$2 | |
ARCH=$3 | |
OUTPUT=$4 | |
# This script will fully symbolicate an iOS Crash Report | |
# Usage: ./symbolicate.sh mycrash.crash MyApp.app arch64 output.crash | |
# |
NewerOlder