python3 lispytest.py
python3 lispy.py factorial.lsp
Source pages are:
https://norvig.com/lispy.htmlhttps://norvig.com/lispy2.html
python3 lispytest.py
python3 lispy.py factorial.lsp
Source pages are:
https://norvig.com/lispy.htmlhttps://norvig.com/lispy2.htmlIn order to keep filters up to date, please use this repo.
| import AppKit | |
| import ScriptingBridge | |
| @objc public protocol SBObjectProtocol: NSObjectProtocol { | |
| func get() -> Any! | |
| } | |
| @objc public protocol SBApplicationProtocol: SBObjectProtocol { | |
| func activate() | |
| var delegate: SBApplicationDelegate! { get set } |
| /* | |
| Jig for GoSund WP3 Serial Flash | |
| Version 3.0 | |
| Created May 27, 2021 | |
| Modified May 28, 2021 | |
| NOTES: |
| def producer(name : String, &generator : -> T) forall T | |
| Channel(T).new.tap { |ch| | |
| spawn(name: name) do | |
| loop do | |
| ch.send generator.call | |
| end | |
| end | |
| } | |
| end |
| import json | |
| import urllib | |
| import urllib.request | |
| import os | |
| import sys | |
| import hashlib | |
| # BUF_SIZE is totally arbitrary, change for your app! | |
| BUF_SIZE = 65536 # lets read stuff in 64kb chunks! |