Skip to content

Instantly share code, notes, and snippets.

View nighthawk's full-sized avatar
🌊

Adrian Schönig nighthawk

🌊
View GitHub Profile
//
// MiniMenu.swift
//
// Created by Adrian Schönig on 21/8/2025.
//
// Gist: https://gist.github.com/nighthawk/3612e002f90d86b05024fec7a53230e2
//
import SwiftUI
@nighthawk
nighthawk / evaltest.swift
Created July 29, 2019 20:18
Eval suffix issue
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)
@nighthawk
nighthawk / _config.yml
Created August 16, 2017 17:53
Jekyll config for microposts
collections:
microposts:
output: true
permalink: /micro/:year/:month/:name.html
defaults:
- scope:
path: ""
type: microposts
values: