Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
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
/* | |
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message | |
* Digest Algorithm, as defined in RFC 1321. | |
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 | |
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |
* Distributed under the BSD License | |
* See http://pajhome.org.uk/crypt/md5 for more info. | |
*/ | |
/* |
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
// Playground is where kids play | |
import CoreData | |
@objc(City) | |
class City: NSManagedObject { | |
@NSManaged var name: String | |
} | |
var cityEntity = NSEntityDescription() |
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 Foundation | |
extension URLRequest { | |
/** | |
Returns a cURL command representation of this URL request. | |
*/ | |
public var curlString: String { | |
guard let url = url else { return "" } | |
var baseCommand = #"curl "\#(url.absoluteString)""# |
- Springboard.swift - a Springboard utility that can delete apps and reset settings
- XCTest-Private.h - private headers used by
Springboard
- add the contents to your UITesting target
- import
XCTest-Private.h
into your UITesting target bridging header - in your
XCTestCase
tearDown()
method use theSpringboard
utility to delete the app and/or reset Location and Privacy Settings
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 Foundation | |
import FirebaseAuth | |
import FirebaseUI | |
import FirebaseFirestore | |
import FirebaseFunctions | |
import FirebaseStorage | |
struct FirebaseError: LocalizedError { | |
enum ErrorDomain { | |
case auth(code: AuthErrorCode, userInfo: [String: Any]) |
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. Create 'ci_scripts' folder in your main project directory | |
# 2. Create 'ci_post_xcodebuild.sh' inside of it | |
# 3. Make it an executable by running 'chmod +x $ci_post_xcodebuild.sh' | |
set -e # fails build if any command fails | |
if [ ${CI_XCODEBUILD_EXIT_CODE} != 0 ] | |
then | |
exit 1 | |
fi |