Skip to content

Instantly share code, notes, and snippets.

View peterwarbo's full-sized avatar

Peter Warbo peterwarbo

View GitHub Profile
@peterwarbo
peterwarbo / gist:1139351
Created August 11, 2011 10:36
ASIDownload Cache logging
Log from Xcode with a fresh download:
2011-08-11 11:43:10.885 Acando Debug[25240:11303] -[OfficesParser download] [Line 569] download running
2011-08-11 11:43:10.886 Acando Debug[25240:11303] -[OfficesParser downloadOffices] [Line 458] downloadOffices running
2011-08-11 11:43:10.886 Acando Debug[25240:11303] [STATUS] Starting asynchronous request <ASIHTTPRequest: 0x73b6400>
2011-08-11 11:43:10.892 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 581] operationCount: (null)
2011-08-11 11:43:10.892 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 583] requestStarted running
2011-08-11 11:43:10.893 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 586] request.tag == 1
2011-08-11 11:43:10.936 Acando Debug[25240:16703] [STATUS] Request <ASIHTTPRequest: 0x73b6400> received response headers
2011-08-11 11:43:10.937 Acando Debug[25240:16703] [STATUS] Request <ASIHTTPRequest: 0x73b6400> finished downloading data (1941 bytes)
@peterwarbo
peterwarbo / gist:1301292
Created October 20, 2011 14:31
UIWebView bug?
<html>
<head>
<link rel="stylesheet" type="text/css" href="career.css" />
</head>
<body>
<p><strong></strong>&nbsp;</p><p><strong>Microsoft har nyligen släppt den senaste versionen av Dynamics AX 2012. Nu har du möjlighet att ta del av alla nyheter tillsammans med Acando i Nice.
Konferensen är tekniskt fokuserad och innehåller tre fullmatade dagar med information från utvecklarna av den nya versionen.</strong></p><p>&nbsp;</p><p><strong>Vilka bör deltaga?<br /></strong>
Kunder som vill få en djupare förståelse för hur man kan dra nytta av den nya<br />funktionaliteten och de nya teknologierna som lanseras.<br /><br />Utvecklare som jobbar med
Microsoft Dynamics AX utvecklingsplattform.
<br />
@peterwarbo
peterwarbo / gist:d4e4e65b004a3d991b6e1225aab9dc3e
Created August 5, 2022 18:26
Test of equal width hstack layout
import SwiftUI
import PlaygroundSupport
struct MyEqualWidthHStack: Layout {
/// Returns a size that the layout container needs to arrange its subviews
/// horizontally.
/// - Tag: sizeThatFitsHorizontal
func sizeThatFits(
proposal: ProposedViewSize,
subviews: Subviews,
@peterwarbo
peterwarbo / hstacks.swift
Created August 6, 2022 08:11
Comparing custom HStack with default HStack
//: A UIKit based Playground for presenting user interface
import SwiftUI
import PlaygroundSupport
struct MyEqualWidthHStack: Layout {
/// Returns a size that the layout container needs to arrange its subviews
/// horizontally.
/// - Tag: sizeThatFitsHorizontal
func sizeThatFits(