This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "esc = ctrl + g unless iTerm2", | |
"rules": [ | |
{ | |
"description": "Control + g => Escape unless iTerm2", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "g", | |
"modifiers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface BigLetterView : NSView <NSDraggingSource> { | |
NSColor *bgColor; | |
NSString *string; | |
NSMutableDictionary *attributes; | |
NSEvent *mouseDownEvent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
@IBOutlet weak var window: NSWindow! | |
@IBOutlet weak var textField: NSTextField! | |
@IBOutlet weak var textLabel: NSTextField! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
@IBOutlet weak var window: NSWindow! | |
@IBOutlet weak var textField: NSTextField! | |
let speechSynth = NSSpeechSynthesizer(voice: nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class LotteryEntry: NSObject { | |
var entryDate: NSDate | |
var firstNumber: Int | |
var secondNumber: Int | |
init(initWithEntryDate theDate: NSDate) { | |
entryDate = theDate | |
firstNumber = random() % 100 + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jsLoader() { | |
"use strict"; | |
var scripts = [].slice.call(arguments); | |
var reserves = []; | |
var thisScript = document.scripts[0] || document.querySelector("script"); | |
var head = thisScript.parentNode; | |
if ("async" in thisScript) | |
parallel(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var urls = ['http://b.hatena.ne.jp/entry/', | |
'http://zenback.itmedia.co.jp/contents/', | |
'http://ceron.jp/url/']; | |
chrome.tabs.onUpdated.addListener(function(tabid, inf, tab) { | |
for (var i = 0; i < urls.length; i++) { | |
if (inf.url.indexOf(urls[i]) === 0) { | |
var newUrl = inf.url.replace(/^(https?:\/\/).*?\/.*?\/(.*)$/, '$1$2'); | |
chrome.tabs.update(tabid, {"url": newUrl}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in "$@" | |
do | |
/usr/local/bin/convert -crop 486x331+647+408 "$f" "$HOME/Dropbox/Photos/Borderlands Weapons/${f##*/}" | |
done |
NewerOlder