I hereby claim:
- I am lilyball on github.
- I am lilyball (https://keybase.io/lilyball) on keybase.
- I have a public key ASBtGqwn5mVxxk8Mx0dzcbre1Tf9FyO9dJeKBkcWTgWvQwo
To claim this, I am signing this object:
| @interface NSObject (Cast) | |
| + (instancetype)cast:(id)from; | |
| @end | |
| @implementation NSObject (Cast) | |
| + (instancetype)cast:(id)from { | |
| if ([from isKindOfClass:self]) { | |
| return from; | |
| } | |
| return nil; |
| #!/usr/bin/env lua | |
| local pbpaste = io.popen("pbpaste") | |
| for line in pbpaste:lines() do | |
| if line ~= "" then -- ignore empty lines | |
| local match = line:match("(%w+)%s*;") | |
| if match then | |
| print("@synthesize " .. match .. ";") | |
| end | |
| end | |
| end |
| type primality = Prime | Composite | Unknown | |
| type sieve = primality array | |
| exception Out_of_bounds | |
| let make n = | |
| if n < 2 then invalid_arg "Sieve.make" | |
| else | |
| let sieve = Array.make n Unknown in | |
| sieve.(0) <- Composite; | |
| sieve.(1) <- Composite; |
| // Provide string-matching based on fnmatch.3 | |
| package fnmatch | |
| // There are a few issues that I believe to be bugs, but this implementation is | |
| // based as closely as possible on BSD fnmatch. These bugs are present in the | |
| // source of BSD fnmatch, and so are replicated here. The issues are as follows: | |
| // | |
| // * FNM_PERIOD is no longer observed after the first * in a pattern | |
| // This only applies to matches done with FNM_PATHNAME as well | |
| // * FNM_PERIOD doesn't apply to ranges. According to the documentation, |
| import CoreGraphics | |
| func printDisplays() { | |
| var displayCount: UInt32 = 0; | |
| var result = CGGetActiveDisplayList(0, nil, &displayCount) | |
| if (result != 0) { | |
| println("error: \(result)") | |
| return | |
| } | |
| let allocated = Int(displayCount) |
| # ... | |
| command script import ~/path/to/viewControllers.py | |
| # ... |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: deep-green; icon-glyph: calendar-alt; | |
| let widget = createWidget() | |
| if (!config.runsInWidget) { | |
| await widget.presentMedium() | |
| } | |
| Script.setWidget(widget) | |
| Script.complete() |
| self: super: | |
| { | |
| zalgo = | |
| # make sure we aren't overwriting a package from nixpkgs | |
| assert !super?zalgo; | |
| self.stdenv.mkDerivation { | |
| name = "zalgo"; |
I hereby claim:
To claim this, I am signing this object: