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 grails.util.Environment | |
// don't include console plugin in prod | |
if ( Environment.current != Environment.PRODUCTION ) { | |
compile ":console:1.3" | |
} |
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
[ | |
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
// shortcuts for home and end keys because of the 6 row lenovo keyboard layout | |
{ "keys": ["ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
// shift shortcuts to select text with home & end shortcuts | |
{ "keys": ["shift+ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": true} }, | |
{ "keys": ["shift+ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": true} }, |
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
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_selector": "source, comment, text", | |
"caret_style": "solid", | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"detect_indentation": true, | |
"draw_minimap_border": true, | |
"find_selected_text": true, | |
"file_exclude_patterns": | |
[ |
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
/************************************************************* | |
Patch for highlight_modified_tabs | |
This tweak will make your modified tabs much more visible by setting them to a dark/purple-ish | |
background. Make a backup of your existing Default.sublime-theme first, and it's usually | |
necessary to reapply this patch after installing an updated version of ST2. Note that this | |
should work regardless of whether you have a dark or light theme in use. | |
This is done in the default Sublime theme, found at C:\Documents and Settings\username\ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Coda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
// slate javascript config | |
// global configs | |
slate.log("-- setting up global configs --"); | |
slate.configAll({ | |
defaultToCurrentScreen: false, | |
orderScreensLeftToRight: true, | |
checkDefaultsOnLoad: true, | |
nudgePercentOf: "screenSize", |
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
# directory shortcuts | |
alias home='cd ~' | |
alias work='cd ~/workspace' | |
alias proj='cd ~/projects' | |
alias doc='cd ~/Documents' | |
alias down = 'cd ~/Downloads' | |
# navigation shortcuts | |
alias ..='cd ..' | |
alias ..2='cd ../..' |
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
// Single stack frame. Returns the "Nth" Fibonacci number - aka the Nth number in the sequence. | |
def fibIter | |
fibIter = { int step, int endStep, long currVal, long nextVal -> | |
if ( step == endStep ) return currVal | |
fibIter.trampoline( ++step, endStep, nextVal, currVal+nextVal ) | |
}.trampoline() | |
def fibonacci = { int seqNum -> | |
if ( seqNum < 0 ) println "fail" // needs better error handling |
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
// comparing my thoughts on how to answer this common question, vs what was found at the following link: | |
// http://www.programmerinterview.com/index.php/data-structures/reverse-a-linked-list/ | |
// In the link above, the recursive solution works in an interview to prove you can think recursively, | |
// but doesn't work in a real-world scenario because it's prone to stack overflow errors. | |
class Node { | |
Node next | |
Integer i | |
String toString() { i as String } |
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
# history tweaks (Setting HISTSIZE and HISTFILESIZE to something nonnumeric makes for no limits) | |
export HISTFILESIZE="SAVE_IT_ALL_YO" | |
export HISTSIZE="SAVE_IT_ALL_YO" | |
export HISTTIMEFORMAT='%Y-%m-%d %H:%M.%S | ' | |
export HISTIGNORE="ll:exit:history:[bf]g:jobs" | |
export HISTCONTROL=ignorespace | |
shopt -s histappend | |
# think about separating out history files | |
#export HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME}_$$" |
OlderNewer