mv ~/.vimrc ~/.vimrc.bak
mv ~/.vim/ ~/.vimbak/
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
PROMPT='%{$fg_bold[yellow]%} λ %c: %{$reset_color%}' | |
RPROMPT='$(git_prompt_info) $(git_prompt_short_sha) %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}Branch%{$reset_color%}%{$fg[grey]%} / %{$reset_color%}%{$fg[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[green]%}" | |
#ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%} %{$fg[yellow]%}| SHA:%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%} / %{$reset_color%}%{$fg[red]%}SHA:%{$reset_color%}%{$fg[green]%}" |
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
var express = require('express'); | |
var app = express(); | |
app.set('port', (process.env.PORT || 80)); | |
app.use(express.static(__dirname + '/../app')); | |
app.use(function(req, res) { | |
var newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url; | |
return res.redirect(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
# if the resource is not found then forward to backbone's router | |
app.use (req, res) -> | |
newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url | |
res.redirect 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
// Use absolute URLs to navigate to anything not in your Router. | |
var openLinkInTab = false; | |
// Only need this for pushState enabled browsers | |
if (Backbone.history && Backbone.history._hasPushState) { | |
$(document).keydown(function(event) { | |
if (event.ctrlKey || event.keyCode === 91) { | |
openLinkInTab = 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
var http = require('http'); | |
var fs = require('fs'); | |
var express = require('express'); | |
var app = express(); | |
// Read all static files from directory | |
app.use(express.static(__dirname + '/../app/')); | |
// Default HTML file for any requests | |
app.use(function(req,res){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>Decoupling jquery custom events.</title> | |
<style id="jsbin-css"> | |
body{ | |
font: 13px "Helvetica",Arial,sans-serif; | |
color: #333 |
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.config({ | |
paths: { | |
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min", | |
"fitText": "/js/vendor/jquery.fittext", | |
"fitVids": "/js/vendor/jquery.fitvids", | |
"mapbox": "//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox" | |
} | |
}); | |
require(['mapbox'], function() { |
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
{ | |
"theme": "Glacier.sublime-theme", | |
"color_scheme": "Packages/Theme - Glacier/glacier.tmTheme", | |
"color_inactive_tabs": true, | |
"detect_indentation": false, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |