This file contains hidden or 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
| [ | |
| // Drawn from http://www.sublimetext.com/forum/viewtopic.php?f=2&t=7477#p31755 | |
| // Kills the annoying default of cmd-left jumping to the start of a line's | |
| // code, rather than column 0. | |
| { "keys": ["super+left"], "command": "move_to", "args": {"to": "hardbol", "extend": false} }, | |
| { "keys": ["super+right"], "command": "move_to", "args": {"to": "hardeol", "extend": false} } | |
| ] |
This file contains hidden or 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
| <!-- save to ~/Library/Application Support/Sublime Text 2/Packages/User --> | |
| <snippet> | |
| <content><![CDATA[console.log($1);$0]]></content> | |
| <tabTrigger>log</tabTrigger> | |
| <scope>source.html,source.javascript</scope> | |
| </snippet> |
This file contains hidden or 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 SHELL=/bin/bash | |
| # system paths | |
| export PATH=/usr/local/bin:/bin:/usr/sbin:/sbin:$HOME/bin:$PATH | |
| # MySQL | |
| export PATH="/usr/local/mysql/bin:$PATH" | |
| # node.js | |
| export NODE_PATH="$HOME/local/node:$HOME/local/node/lib/node_modules" |
This file contains hidden or 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
| var oldTimeout = setTimeout; | |
| window.setTimeout = function(callback, timeout) { | |
| var date = new Date(); | |
| console.log(("** " + timeout + "ms"), callback); | |
| oldTimeout(function() { callback(); }, timeout); | |
| } |
This file contains hidden or 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 EDITOR=nano | |
| # http://git-blame.blogspot.com/2012/02/anticipating-git-1710.html | |
| export GIT_MERGE_AUTOEDIT=no | |
| export CC=clang | |
| export CFLAGS=-Qunused-arguments | |
| export CPPFLAGS=-Qunused-arguments | |
| ############################################################################### |
This file contains hidden or 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 parse_git_branch () { | |
| local git_status="`git status -unormal 2>&1`" | |
| # fatal: Not a git repository (or any of the parent directories): .git | |
| if [[ $git_status == fatal* ]] ; then | |
| echo "" | |
| # On branch master | |
| # |
This file contains hidden or 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 'sinatra' | |
| require 'action_mailer' | |
| class Mailer < ActionMailer::Base | |
| def contact | |
| mail( | |
| :to => "[email protected]", | |
| :from => "[email protected]", | |
| :subject => "Test") do |format| | |
| format.text |
This file contains hidden or 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 "sinatra/base" | |
| module Sinatra | |
| # = Sinatra::JsonApi | |
| # | |
| # <tt>Sinatra::JsonApi</tt> is an extension meant for use with Backbone-style | |
| # apps that use the backend strictly as an API. It assumes that full page | |
| # loads should serve only to bootstrap the frontend application. | |
| # | |
| # == Usage |
This file contains hidden or 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
| source "https://rubygems.org" | |
| ruby "1.9.3" | |
| gem "flickraw" |
This file contains hidden or 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 be () { | |
| bundle exec $@ | |
| } | |
| function ber () { | |
| bundle exec rake $@ | |
| } |