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
1.3.1 |
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
# Make a new directory for ImageMagick local settings and cd into it | |
mkdir ~/.magick | |
cd ~/.magick | |
# Grab script to find all fonts on system and store them in a config file | |
curl http://www.imagemagick.org/Usage/scripts/imagick_type_gen > type_gen | |
# Run script, telling it where my fonts are and create "type.xml" file with list | |
find /System/Library/Fonts /Library/Fonts ~/Library/Fonts -name "*.[to]tf" | perl type_gen -f - > type.xml |
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
/// Structure holding value that should be accessed and mutated on | |
/// some dispatch queue. | |
/// | |
/// Note: changing this to struct triggers a bug that 'forgets' mutations | |
public class AccessibleOnQueue<T> { | |
public init(_ value: T) { | |
_value = value | |
} | |
/// Creates a writer that can access and change stored value |
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
public struct ConstantAccessTimeDictionaryView<Key: Hashable, Value> { | |
public typealias IndexType = | |
Versioned<_ConstantAccessTimeDictionaryView<Key, Value>.IndexType> | |
public init(dict: [Key : Value]) { | |
view = Versioned(_ConstantAccessTimeDictionaryView(dict)) | |
} | |
public func index(key: Key) -> IndexType? { | |
return view.value.index(key).map { IndexType($0, version: self.view.version) } |
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
public struct Versioned<T> { | |
public init(_ value: T) { | |
self.value = value | |
self.version = VersionGenerator.generateVersion() | |
} | |
public init(_ value: T, version: VersionGenerator.VersionType) { | |
self.value = value | |
self.version = version | |
} |
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
script ('SenTestingKit' in [x.file.basename for x in lldb.target.modules] and lldb.thread.GetProcess().Continue()) |
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
Show hidden characters
{ | |
"cmd": ["osascript", "-e", "tell app \"Terminal\"\nactivate\ndo script \"clear; ruby $file; tput setaf 7; echo '\n\n\n\nPress any key to close.'; tput sgr0; read -n 1 -s; exit\"\nend tell"] | |
} |
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
Feature: Main Window | |
As a user I expect application to display its main window with correct title. | |
(The title should be a short application name according to Mac HIG). | |
Another essential window part is a sidebar, providing access to main application | |
features. | |
Scenario: Application displays main window | |
I see a window titled "Make Buzz!" | |
Scenario: Application window has sidebar |
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
#! /usr/bin/env python | |
# | |
# A report generator for gcov 3.4 | |
# | |
# This routine generates a format that is similar to the format generated | |
# by the Python coverage.py module. This code is similar to the | |
# data processing performed by lcov's geninfo command. However, we | |
# don't worry about parsing the *.gcna files, and backwards compatibility for | |
# older versions of gcov is not supported. | |
# |
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
waxsim -f iphone -e CFFIXED_USER_HOME="/Users/ihunter/Library/Application Support/iPhone Simulator/5.0" \ | |
-e DYLD_FALLBACK_FRAMEWORK_PATH="/Developer/Library/Frameworks" \ | |
-e DYLD_FRAMEWORK_PATH="/Users/ihunter/Work/MyApp/build/Debug-iphonesimulator" \ | |
-e DYLD_INSERT_LIBRARIES="/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection" \ | |
-e DYLD_LIBRARY_PATH="/Users/ihunter/Work/MyApp/build/Debug-iphonesimulator" \ | |
-e DYLD_ROOT_PATH="/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk" \ | |
-e IPHONE_SIMULATOR_ROOT="/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk" \ | |
-e NSUnbufferedIO=YES \ | |
-e XCInjectBundle="/Users/ihunter/Work/MyApp/build/Debug-iphonesimulator/Functest.octest" \ | |
-e XCInjectBundleInto="/Users/ihunter/Work/MyApp/build/Debug-iphonesimulator/MyApp.app/MyApp" |