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
/* http://canisbos.com/customreader */ | |
.page { | |
width: 70%; | |
border: none; | |
padding: 40px 0px; | |
background-color: #efefef; /* same as article */ | |
color: #000000; | |
font-family: Georgia !important; | |
text-rendering: optimizelegibility; | |
} |
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
# Taken from http://tldp.org/LDP/abs/html/tabexpansion.html | |
# file: td_completion | |
# td-completion.sh parameter-completion | |
_td_completion_func () | |
{ | |
local cur # pointer to current word | |
COMPREPLY=() | |
cur=${COMP_WORDS[COMP_CWORD]} | |
case "$cur" in |
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
tell application "iPhone Simulator" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "iPhone Simulator" | |
tell menu bar 1 | |
tell menu bar item "iOS Simulator" | |
tell menu "iOS Simulator" | |
click menu item "Reset Content and Settings…" |
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
#!/bin/sh | |
# | |
# Description: | |
# Installs the given *.docset so it is visible by Xcode, Dash, etc | |
# | |
# Usage: | |
# installDocumentation path/to/documentation.docset | |
# | |
# Check parameters |
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
# Check xcode-select to check Xcode + Developer tools are installed | |
command -v xcode-select >/dev/null 2>&1 || { echo >&2 "Make sure Xcode together with xcode-select command is installed. Aborting."; exit 1; } | |
XCODE_PATH=$(xcode-select --print-path 2>&1) | |
echo $XCODE_PATH |
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
export CLICOLOR=1 | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
export LS_COLORS=$LSCOLORS | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
#PS1='\[\e[0;33m\][\h:\W \u]$\[\e[m\] ' | |
PS1='\[\e[0;33m\][\w]$\[\e[m\] ' |
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
Show hidden characters
{ | |
"cmd": ["tsc","$file"], | |
"file_regex": "^(.+) \\((\\d+),(\\d+)\\): (.+)$", | |
"selector": "source.ts", | |
"osx": { | |
"path": "/usr/local/bin:/opt/local/bin" | |
} | |
} |
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
{ | |
"cmd": ["jsl", "-process", "$file", "-nologo", "-nocontext", "-nofilelisting"], | |
"file_regex": "^(.+\\.js)\\((\\d+)\\): (.+)$", | |
"selector": "source.js", | |
"osx": { | |
"path": "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
} | |
} | |
// Above settings are for output of the form: |
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
// Find and dismiss the UIAutocorrectionInlinePrompt view | |
// target is an instance of UITextView | |
NSArray *textviewSubviews = [target subviews]; | |
NSInteger correctionViewIndex = [textviewSubviews indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop) { | |
if ([[[obj class] description] isEqualToString:@"UIAutocorrectInlinePrompt"]) { | |
*stop = YES; | |
return YES; | |
} else { | |
return NO; | |
} |