I hereby claim:
- I am raphaeltraviss on github.
- I am rtraviss (https://keybase.io/rtraviss) on keybase.
- I have a public key ASCJ-rgURfxuDoJ4XXWn006b4ADRsqLOkbyQBspwcSHWeQo
To claim this, I am signing this object:
hs.hotkey.bind({"ctrl", "shift", "cmd"}, "Left", function() | |
local win = hs.window.focusedWindow() | |
local f = win:frame() | |
local screen = win:screen() | |
local max = screen:frame() | |
f.x = max.x | |
f.y = max.y | |
f.w = max.w / 2 | |
f.h = max.h |
#!/bin/bash | |
# Usage: | |
# copy image to pasteboard via CMD-C | |
# then call pbresize on command line | |
# or call with a custom scale e.g. pbresize 0.7 | |
SCALE_FACTOR=${1:-0.5} | |
pngpaste /tmp/ss.png |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
# add command and project completion to tmuxinator | |
# add custom file path completion to your specific “my_project” project | |
# use this inside a ~/.tmuxinator/my_project.yml via <%= @args[0] %> | |
# e.g. set the root project path via ```root: <%= @args[0] %>``` | |
#compdef _tmuxinator tmuxinator | |
_tmuxinator() { | |
local commands projects | |
commands=(${(f)"$(tmuxinator commands zsh)"}) |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
I hereby claim:
To claim this, I am signing this object:
import { assign, interpret, Machine, Interpreter, EventObject } from 'xstate'; | |
// Phaser implicitly available | |
interface PawnContext { | |
moveTowards?: Phaser.Math.Vector2, | |
} |
import Foundation | |
import UIImageColors | |
import Haneke | |
extension UIImageColors : DataConvertible, DataRepresentable { | |
public typealias Result = UIImageColors | |
public static func convertFromData(_ data: Data) -> Result? { | |
let representation = NSKeyedUnarchiver.unarchiveObject(with: data) as? [String: Data] | |
guard let colorData = representation else { return nil } |
import AppKit | |
// This class will manufacture a delegate object for use with NSOutlineView, | |
// given the following: | |
// - A setup function, that will take an NSTableViewCell or subclass of the | |
// given type, and fill in its views. | |
// - A cell identifier from the storyboard, associated to the outline view. | |
// - A function that is called when a selection is made... | |
// Since the selection handler doesn't actually provide the selected node, | |
// you need to seal a reference to your outline view inside your Selection |
import AppKit | |
// This class will manufacture a datasource object for use with NSOutlineView, | |
// given the following: | |
// - A type, specifying what type of object the datasource will provide. | |
// - A root object, which contains the heirarchy of its children | |
// - A function that can be called on the object type, to return its children. | |
// - A function that can be called on the object type, to return its identity. | |
// - A pasteboard type that can be used for drag and drop. | |
// - Side effects for insert and move actions. |