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
require 'io/console' | |
# Reads keypresses from the user including 2 and 3 escape character sequences. | |
def read_char | |
STDIN.echo = false | |
STDIN.raw! | |
input = STDIN.getc.chr | |
if input == "\e" then | |
input << STDIN.read_nonblock(3) rescue 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
``` | |
Optional Features: | |
--disable-option-checking ignore unrecognized --enable/--with options | |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
--enable-load-relative resolve load paths at run time | |
--disable-werror don't make warnings into errors even if a compiler | |
support -Werror feature [disabled by default unless | |
development version] | |
--enable-pthread obsolete, and ignored |
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
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key 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
import sublime_plugin | |
import sublime | |
import time | |
import os | |
class MyEvents(sublime_plugin.EventListener): | |
def on_deactivated_async(self, view): | |
s = view.file_name() | |
if s: |
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
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
export PATH=$PATH:$HOME/tools/git-tools | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export GREP_OPTIONS='--color=always' | |
export GREP_COLOR='1;35;40' | |
export CLICOLOR=1 | |
alias ll='ls -la' | |
alias fixcam='sudo pkill "VDCAssistant"' |