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
// Note: This must be used in an Xcode project that contains a bridging header | |
// that includes <asl.h> | |
import Foundation | |
/// Provides high-level methods to access the raw data in | |
/// an ASL message. | |
struct SystemLogEntry { | |
/// Key-value pairs read from ASL message | |
let data: [String : String] |
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
def main(argv) do | |
argv | |
|> parse_args | |
|> process | |
end | |
def parse_args(argv) do | |
parse = OptionParser.parse(argv, switches: [ help: :boolean], | |
aliases: [ h: :help ]) |
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
--- | |
- name: Xcode installation | |
hosts: mac-servers | |
remote_user: xxx | |
vars: | |
- apple_username: "abc" | |
- apple_password: "123" | |
# vars_prompt: |
##To Install libwkhtmltox
- Clone the wkhtmltopdf repo
git clone --recursive https://github.com/wkhtmltopdf/wkhtmltopdf.git
- You need the fpm gem to install
sudo gem install fpm --no-ri --no-rdoc
- it will be installed in/usr/bin
so make sure that's in your path. - Checkout the latest release tag IE
git checkout tags/0.12.2.
- In the directory and run
scripts/build.py osx-cocoa-x86-64
(this will take a while! You're building Qt) - If you get an error like:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: bin/libwkhtmltox.0.12.2.2.dylib (No such file or directory)
all you need to do is match the version in theVERSION
file in the base directory to the number betweenlibwkhtmltox.
and.dylib
of the compiled file instatic-build/osx-cocoa-x86-64/app/bin
- If you're not on OS X, refer to
INSTALL.md
in thewkhtmltopdf
repo for build instructions.
I hereby claim:
- I am q231950 on github.
- I am q231950 (https://keybase.io/q231950) on keybase.
- I have a public key ASBKcMZqb-XbxjrKgGJwINXBiQaf4xRgpO4eojHhQfW_dgo
To claim this, I am signing this object:
//
// KeychainManager.swift
// BTLB
//
// Created by Martin Kim Dung-Pham on 09.09.18.
// Copyright © 2018 elbedev. All rights reserved.
//
import Foundation
This step allows you to add, well, steps to be taken in your test without the need of wrapping them in a subclass of Step
.
You can write things like this. Notice that the GeneralStep
can contain anything:
expect(in: &context) {
Given {
GeneralStep("I log in") {
self.login(name: "John Doe", login: "123456789", password: "***", library: "Bücherhallen Hamburg")
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 CenteredTextView: UITextView { | |
override init(frame: CGRect, textContainer: NSTextContainer?) { | |
super.init(frame: frame, textContainer: textContainer) | |
setup() | |
} | |
required init?(coder: NSCoder) { | |
super.init(coder: coder) |