I hereby claim:
- I am gf3 on github.
- I am gf3 (https://keybase.io/gf3) on keybase.
- I have a public key ASBSUcu3p7hJhvRo-yZRFSGw8dpcfC6SjR2A8PQHo84l1go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import AppKit | |
| import ScriptingBridge | |
| @objc public protocol SBObjectProtocol: NSObjectProtocol { | |
| func get() -> Any! | |
| } | |
| @objc public protocol SBApplicationProtocol: SBObjectProtocol { | |
| func activate() | |
| var delegate: SBApplicationDelegate! { get set } |
| import AppKit | |
| import ScriptingBridge | |
| @objc public protocol SBObjectProtocol: NSObjectProtocol { | |
| func get() -> Any! | |
| } | |
| @objc public protocol SBApplicationProtocol: SBObjectProtocol { | |
| func activate() | |
| var delegate: SBApplicationDelegate! { get set } |
| // XCode 8.3 | |
| // Swift 3.1 | |
| import Cocoa | |
| class SomeViewController: NSViewController { | |
| @IBOutlet weak var artwork: NSImageView! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
| " Rename buffer (:Rename) {{{ | |
| function! s:RenameBuffer(name) | |
| silent! execute 'saveas! ' . a:name | |
| let l:old_buffer = bufnr("#") | |
| let l:old_filename = expand("#:t") | |
| let l:new_buffer = bufnr("%") | |
| let l:new_filename = expand("%:t") | |
| silent! execute '!rm ' . shellescape(expand("#"), 1) | |
| silent! execute 'bd' l:old_buffer | |
| echom 'Renamed `' . l:old_filename . '` to `' . l:new_filename . '`' |
| /** | |
| * Convert a number or array of integers to a string of padded hex octets. | |
| */ | |
| function asHex(value: Array<number> | Uint8Array): string { | |
| return Array.from(value).map(i => ('00' + i.toString(16)).slice(-2)).join(''); | |
| } | |
| /** | |
| * Attempt to securely generate random bytes/ | |
| */ |
| /** | |
| * @flow | |
| */ | |
| import request from 'lib/request'; | |
| type F<T> = (response: T) => bool; | |
| const BACKOFF_MAX = 60; // seconds | |
| const BACKOFF_ATTEMPTS = 60; |
| // | |
| // NaturalMotion.swift | |
| // | |
| // Created by Maciej Swic on 2014-06-06. | |
| // Released under the MIT license. | |
| // | |
| import UIKit | |
| extension UIView { |
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
| class Foo | |
| autoload :Bar, 'foo/bar' | |
| autoload :Baz, 'foo/baz' | |
| end |