Skip to content

Instantly share code, notes, and snippets.

View hekt's full-sized avatar
🗼

Kazutoshi Horie hekt

🗼
View GitHub Profile
@hekt
hekt / BigLetterView.h
Created November 17, 2014 13:34
MAC OS X COCOA プログラミング 23章で dragImage が使われているところ を beginDraggingSessionWithItems で書く
@interface BigLetterView : NSView <NSDraggingSource> {
NSColor *bgColor;
NSString *string;
NSMutableDictionary *attributes;
NSEvent *mouseDownEvent;
}
@hekt
hekt / .dir_colors
Created July 3, 2017 23:26
.dir_colors
# Configuration file for the color ls utility
# Synchronized with coreutils 8.5 dircolors
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
# off.
COLOR tty
@hekt
hekt / notion-disable-ctrl-shift-j-hotkey.user.js
Created December 5, 2022 11:30
disable ^J on notion.so
// ==UserScript==
// @name Notion ^J disabler
// @namespace https://kzt.sh/
// @version 0.1
// @description disable ^J on notion.so
// @author [email protected]
// @match https://www.notion.so/*
// @grant none
// @run-at document-start
// ==/UserScript==
@hekt
hekt / ctrl-g-to-esc-unless-iterm2.json
Last active December 6, 2022 00:45
^g => esc unless iTerm2
{
"title": "esc = ctrl + g unless iTerm2",
"rules": [
{
"description": "Control + g => Escape unless iTerm2",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {