Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
import Foundation | |
struct Country { | |
let name: String | |
let capital: String | |
var visited: Bool | |
} | |
extension Country: Equatable { | |
static func == (lhs: Country, rhs: Country) -> Bool { |
Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
#!/bin/sh | |
set -e | |
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff. | |
# by default CONTINUE will be false | |
CONTINUE=false | |
echo "" | |
echo "You are about to download, compile, and install stuff on your computer." |
let styles: [UIFont.TextStyle] = [ | |
// iOS 17 | |
.extraLargeTitle, .extraLargeTitle2, | |
// iOS 11 | |
.largeTitle, | |
// iOS 9 | |
.title1, .title2, .title3, .callout, | |
// iOS 7 | |
.headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
] |
# Install QEMU OSX port with ARM support | |
sudo port install qemu +target_arm | |
export QEMU=$(which qemu-system-arm) | |
# Dowload kernel and export location | |
curl -OL \ | |
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
# Download filesystem and export location |
Generated within the iPhone Simulator (iOS Version 8.4 (12H141))
XS | S | M | L | XL | XXL | XXXL | Accessibility M | AccessibilityL | AccessibilityXL | AccessibilityXXL | AccessibilityXXXL | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
UIFontTextStyleHeadline | 14.0 | 15.0 | 16.0 | 17.0 | 19.0 | 21.0 | 23.0 | 23.0 | 23.0 | 23.0 | 23.0 | 23.0 |
UIFontTextStyleSubheadline | 12.0 | 13.0 | 14.0 | 15.0 | 17.0 | 19.0 | 21.0 | 21.0 | 21.0 | 21.0 | 21.0 | 21.0 |
UIFontTextStyleBody | 14.0 | 15.0 | 16.0 | 17.0 | 19.0 | 21.0 | 23.0 | 28.0 | 33.0 | 40.0 | 47.0 | 53.0 |
UIFontTextStyleFootnote | 12.0 | 12.0 | 12.0 | 13.0 | 15.0 | 17.0 | 19.0 | 19.0 | 19.0 | 19.0 | 19.0 | 19.0 |
UIFontTextStyleCaption1 | 11.0 | 11.0 | 11.0 | 12.0 | 14.0 | 16.0 | 18.0 | 18.0 | 18.0 | 18.0 | 18.0 | 18.0 |
UIFontTextStyleCaption2 | 11.0 | 11.0 | 11.0 | 11.0 | 13.0 | 15.0 | 17.0 | 17.0 | 17.0 | 17.0 | 17.0 | 17.0 |
/// Observes a run loop to detect any stalling or blocking that occurs. | |
/// | |
/// This class is thread-safe. | |
@interface GHRunLoopWatchdog : NSObject | |
/// Initializes the receiver to watch the specified run loop, using a default | |
/// stalling threshold. | |
- (id)initWithRunLoop:(CFRunLoopRef)runLoop; | |
/// Initializes the receiver to detect when the specified run loop blocks for |
<!-- You can change the parent around to whatever you normally use --> | |
<style name="DebugColors" parent="Theme.AppCompat"> | |
<!-- System colors --> | |
<item name="android:windowBackground">@color/__debugWindowBackground</item> | |
<item name="android:colorPressedHighlight">#FF4400</item> | |
<item name="android:colorLongPressedHighlight">#FF0044</item> | |
<item name="android:colorFocusedHighlight">#44FF00</item> | |
<item name="android:colorActivatedHighlight">#00FF44</item> |
import Foundation | |
import ObjectiveC.runtime | |
let myString = "foobar" as NSString | |
println(myString.description) | |
let myBlock : @objc_block (AnyObject!) -> String = { (sself : AnyObject!) -> (String) in | |
"✋" | |
} |
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; The .data section is for storing and naming constants. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
section .data | |
msg: db "Hello world!", 10 | |
.len: equ $ - msg |