- https://github.com/fourseven/meteor-scss
- https://github.com/iron-meteor/iron-router
- https://github.com/meteor-typescript/meteor-typescript-libs
- https://github.com/meteor-useraccounts/core
- https://github.com/meteorhacks/flow-router
- https://github.com/zimme/meteor-iron-router-active
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 Foundation | |
/** | |
Provides the default transaction block for perform a Realm transaction. | |
:param: block The block to perform the transaction. The realm is used to store the transaction. | |
*/ | |
func realmTransaction(block: (realm: RLMRealm) -> Void) { | |
let realm = RLMRealm.defaultRealm() | |
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
var options = { | |
tls: { | |
key: fs.readFileSync(path.join(__dirname, "private/key/key.pem"), 'utf-8'), | |
cert: fs.readFileSync(path.join(__dirname, "private/key/certificate.pem"), 'utf-8') | |
} | |
}; | |
var https = new hapi.Server("localhost", configuration["api-port"], options); |
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
var goodResult = ... | |
switch goodResult { | |
case let .Success(valueHere): | |
print("\(valueHere)") | |
default: | |
break | |
} | |
func myFunc() { |
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
#!/bin/sh | |
# tested on debian 6.x | |
NODE_ENV="production" | |
# the name for the pid and the log file, should be unique for the environment | |
FNAME="script-name" | |
APP_DIR="/var/webapps/example.com/src/nodejs" | |
NODE_APP="server.js" | |
PORT="7707" |
Provides links to select Christian and biblical resources.
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
// | |
// AppNotify.swift | |
// | |
// Created by Christopher Bess on 6/30/15. | |
// MIT License | |
// | |
import Foundation | |
/// Represents the app notification. |
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 Foundation | |
/// Represents the Log facilities | |
struct Log { | |
/// Prints in debug only | |
static func debug(_ msg: String, line: Int = #line, fileName: String = #file, funcName: String = #function) { | |
#if DEBUG | |
let fname = (fileName as NSString).lastPathComponent | |
print("[\(fname) \(funcName):\(line)]", msg) | |
#endif |
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
extension List { | |
/// Return a new array from the List elements | |
func newArray() -> [T] { | |
var items = [T]() | |
for item in self { | |
items.append(item) | |
} | |
return items | |
} |