Skip to content

Instantly share code, notes, and snippets.

View lacyrhoades's full-sized avatar
💭
Typing frantically!

Lacy lacyrhoades

💭
Typing frantically!
View GitHub Profile
2018-07-27 15:04:56.292767-0400 Fobo[1734:523812] [DYMTLInitPlatform] platform initialization successful
2018-07-27 15:04:56.657926-0400 Fobo[1734:523743] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-07-27 15:04:56.661879-0400 Fobo[1734:523743] [MC] Reading from public effective user settings.
2018-07-27 15:04:57.036655-0400 Fobo[1734:523743] [Crashlytics] Version 3.10.5 (130)
2018-07-27 15:04:57.316786-0400 Fobo[1734:523818] __NSCFLocalDownloadFile: error 2 opening for ioChannel, file: /private/var/mobile/Containers/Data/Application/1552F399-1B2C-4922-800A-2888468695F6/tmp/CFNetworkDownload_cMhpvR.tmp
2018-07-27 15:04:57.316970-0400 Fobo[1734:523818] __NSCFLocalDownloadFile: error 2 opening for ioChannel, file: /private/var/mobile/Containers/Data/Application/1552F399-1B2C-4922-800A-2888468695F6/tmp/CFNetworkDownload_cMhpvR.tmp
2018-07-27 15:04:57.380430-0400 Fobo[1734:523816] [Fa
@lacyrhoades
lacyrhoades / Log-1.txt
Last active July 24, 2018 19:40
Crashlytics debug mode
2018-07-24 15:29:09.549775-0400 Fobo[768:147768] [DYMTLInitPlatform] platform initialization successful
2018-07-24 15:29:09.985461-0400 Fobo[768:147589] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-07-24 15:29:09.986268-0400 Fobo[768:147589] [MC] Reading from public effective user settings.
2018-07-24 15:29:10.141059-0400 Fobo[768:147589] [Fabric] Crashlytics initialization disabled via Info.plist key firebase_crashlytics_collection_enabled
2018-07-24 15:29:10.278071-0400 Fobo[768:147833] 5.4.1 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.50001000 started
2018-07-24 15:29:10.278473-0400 Fobo[768:147833] 5.4.1 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2018-07-24 15:29:10.331095-0400 Fobo[768:147589] [Crashlytics] Version 3.10.5 (130)
2018-07-24 15:29:10.331349-
struct DropboxRequest: SyncRequest {
var uploadRequest: UploadRequest<Files.FileMetadataSerializer, Files.UploadErrorSerializer>?
init(_ req: UploadRequest<Files.FileMetadataSerializer, Files.UploadErrorSerializer>) {
self.uploadRequest = req
}
var listRequest: RpcRequest<Files.ListFolderResultSerializer, Files.ListFolderErrorSerializer>?
init(_ req: RpcRequest<Files.ListFolderResultSerializer, Files.ListFolderErrorSerializer>) {
self.listRequest = req
}
extension UIImage {
func imageCenterCroppedTo(cropSize: CGSize) -> UIImage {
let cropWidth: CGFloat = cropSize.width // 200
let cropHeight: CGFloat = cropSize.height // 200
let cropRatio = cropWidth / cropHeight
let naturalRatio = self.size.width / self.size.height
var scaledWidth = cropWidth
$ git push origin master
The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ ls ~/.ssh
diff --git a/Common/ImageProcessor.swift b/Common/ImageProcessor.swift
index 5afa17c..71d098f 100644
--- a/Common/ImageProcessor.swift
+++ b/Common/ImageProcessor.swift
@@ -23,9 +23,9 @@ class ImageProcessor {
assetFetcher?.images(ofType: .originalImage, forItemID: item.id, completion: { (images) in
var allFiltered: [UIImage] = []
+ self.processingQueue.async {
var filterIterator = item.filters.makeIterator()
func debug() {
let manager = ThingManager()
let thing1 = Thing(name: "thing1")
manager.addThing(thing1)
manager.sawSomeThing(named: thing1.name)
print("Manager has this many things: ", manager.things.count)
Timer.scheduledTimer(withTimeInterval: 10.0, repeats: false, block: { (timer) in
// By now, the manager should have forgotten about the thing
print("Manager has this many things: ", manager.things.count)
})
@lacyrhoades
lacyrhoades / IndexingIterator+Infinite.swift
Last active October 5, 2017 16:46
Circular iterator in Swift
extension IndexingIterator {
mutating func next(wrapping: Bool) -> IndexingIterator.Element? {
if let result = self.next() {
return result
} else {
self = self.makeIterator()
return self.next()
}
}
}
​$ curl -I https://dl.dropboxusercontent.com/content_link/lPgRAQvSdMOHDRb2GLvRj5mX8H6XJC8G7QmWnubTOO9aHZ5eH8FZSHF6l8HRZzJR/file?dl=1
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 07 Sep 2017 14:29:34 GMT
Content-Type: application/binary
Content-Length: 26453
Connection: keep-alive
referrer-policy: no-referrer
x-content-type-options: nosniff
content-disposition: attachment; filename="fobo-66_2017090710145701.jpg"; filename*=UTF-8''fobo-66_2017090710145701.jpg
#include "usb_dev.h"
const int pinLED = 13;
void setup() {
pinMode(pinLED, OUTPUT);
usb_init();
while (usb_configuration == 0) {