This file contains hidden or 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
| package com.ontometrics.util; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| /** | |
| * Provides a fluent builder interface for constructing Dates and DateTimes. | |
| */ | |
| public class DateBuilder { |
This file contains hidden or 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 re | |
| import sublime | |
| import sublime_plugin | |
| import webbrowser | |
| REG_RENAME = re.compile("\.(asciidoc|adoc|asc|ad)$") | |
| EXT = re.compile(".*\.(asciidoc|adoc|asc|ad)$") | |
| COMMAND = "asciidoctor -b html5" |
This file contains hidden or 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
| let testExpectation = expectation(description: "<#description#>") | |
| // do something then call fulfill (in callback) | |
| testExpectation.fulfill() | |
| waitForExpectations(timeout: <#timeout#>){ error in | |
| if error != nil { | |
| XCTFail("timed out waiting on expectation: \(testExpectation)") | |
| } | |
| } |