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 XCTest | |
import Eval // https://github.com/tevelee/Eval | |
class MiniExpressionStandardLibraryTest: XCTestCase { | |
private func evaluate<R>(_ expression: String, inputs: [String: Any] = [:]) -> R? { | |
let context = Context(variables: inputs) | |
let interpreter = TypedInterpreter(dataTypes: MiniExpressionStandardLibrary.dataTypes, functions: MiniExpressionStandardLibrary.functions, context: context) | |
let result = interpreter.evaluate(expression) |
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 XCTest | |
import Eval // https://github.com/tevelee/Eval | |
class MiniExpressionStandardLibraryTest: XCTestCase { | |
private func evaluate<R>(_ expression: String, inputs: [String: Any] = [:]) -> R? { | |
let context = Context(variables: inputs) | |
let interpreter = TypedInterpreter(dataTypes: MiniExpressionStandardLibrary.dataTypes, functions: MiniExpressionStandardLibrary.functions, context: context) | |
let result = interpreter.evaluate(expression) |
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
collections: | |
microposts: | |
output: true | |
permalink: /micro/:year/:month/:name.html | |
defaults: | |
- scope: | |
path: "" | |
type: microposts | |
values: |
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 webbrowser, os, pprint | |
# Include the Dropbox SDK libraries | |
#from dropbox import client, rest, session | |
import dropbox | |
# Configuration | |
TOKEN_FILENAME = 'PythonistaDropbox.token' | |
# Get your app key and secret from the Dropbox developer website | |
APP_KEY = '<your dropbox app_key>' | |
APP_SECRET = '<your dropbox app_secret>' |
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
post_install do |installer| | |
# installer.pods_project.targets.each do |target| # 0.38+ | |
installer.project.targets.each do |target| # 0.37 | |
# https://github.com/AFNetworking/AFNetworking/issues/2321 | |
# https://github.com/CocoaPods/CocoaPods/blob/master/CHANGELOG.md#highlighted-enhancement-that-needs-testing | |
# This can get removed in AFNetworking 2.6.0+ | |
# Make sure to have 'deduplicate_targets: false' in ' ~/.cocoapods/config.yaml' | |
if target.name == "Pods-MYAPPNAME-AFNetworking" | |
target.build_configurations.each do |config| |