I hereby claim:
- I am wft on github.
- I am willft (https://keybase.io/willft) on keybase.
- I have a public key ASAyqXXcLCfWQ8u15BLYAXKazFg6reqWo_BUcogRSoIDFwo
To claim this, I am signing this object:
| import AudioToolbox | |
| import Foundation | |
| func check(_ status: OSStatus, line: Int = #line) { | |
| if status != noErr { | |
| fatalError("Error on line \(line): OSStatus \(status) - https://osstatus.com/search/results?search=\(status)") | |
| } | |
| } | |
| import Foundation | |
| // Reads a plist with top-level dictionary and converts to JSON. JSON printed to stdout. | |
| // Run like this: `swift plist-to-json.swift myplist.plist` | |
| guard CommandLine.arguments.count == 2 else { | |
| let msg = "Usage: \(CommandLine.arguments[0]) <path-to-input.plist>\n" | |
| try FileHandle.standardError.write(contentsOf: Data(msg.utf8)) | |
| exit(1) | |
| } |
| from cryptography import x509 | |
| from cryptography.hazmat.primitives.asymmetric import ec | |
| from cryptography.hazmat.primitives import hashes, serialization | |
| from cryptography.x509.oid import NameOID | |
| import jwt | |
| import cattrs | |
| import datetime | |
| from base64 import b64encode | |
| from uuid import uuid4 |
| #!/bin/bash | |
| if [[ $# -eq 1 ]]; then | |
| open "https://osstatus.com/search/results?search=$1" | |
| else | |
| echo "Usage: osstatus NUMBER" | |
| exit 1 | |
| fi |
| public struct Bar { | |
| public struct Foo: CustomStringConvertible { | |
| public var description: String { return "Foo!" } | |
| public init() { } | |
| } | |
| public static func food() -> Foo { return Foo() } | |
| } |
| #!/bin/bash | |
| set -e | |
| if [[ $# -eq 1 || $# -eq 2 ]]; then | |
| url="file://$(realpath "$1" | sed 's/ /%20/g')" | |
| xcrun simctl openurl ${2:-booted} "$url" || | |
| echo "$url" could not be opened | |
| else | |
| echo "USAGE: $0 PATH [SIM_NAME]" |
I hereby claim:
To claim this, I am signing this object:
| // Super simple access to your most recently interacted with GitHub repo | |
| function fetch(route, callback) { | |
| // Ignoring old browsers... | |
| var request = new XMLHttpRequest(); | |
| request.onreadystatechange = function() { | |
| if (request.readyState === 4) | |
| callback(request.responseText); | |
| } | |
| request.open('GET', route); |
| ;;; A simple VCS | |
| ;; Operation creation functions | |
| (defmacro make-operation (position operation &rest rest) | |
| `(list :operation ,operation :pos ,position ,@rest)) | |
| (defun insert (string position) | |
| (make-operation position :insert :string string)) |
| skeleton 0 0 0 { | |
| vary j 1 360 1 90 | |
| sphere 1 1 1 0 0 0 0 0 0 | |
| bone 3 0 0 { | |
| cube 1.5 1 1 0 0 0 1.5 0 0 | |
| sphere 1 1 1 0 0 0 3 0 0 | |
| bone 3 3 0 { | |
| cube 1 1.5 1 0 0 0 3 1.5 0 | |
| sphere 1 1 1 0 0 0 3 3 0 | |
| bone 3 3 3 { |