Couldn't find the text of this for a while...
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 express = require('express'), | |
| httpProxy = require('http-proxy'), | |
| app = express(); | |
| var proxy = new httpProxy.RoutingProxy(); | |
| function apiProxy(host, port) { | |
| return function(req, res, next) { | |
| if(req.url.match(new RegExp('^\/api\/'))) { | |
| proxy.proxyRequest(req, res, {host: host, port: port}); |
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
| @mixin retina { | |
| /* Target any and all high-density screens on any browser currently known (October 2012) */ | |
| @media (min--moz-device-pixel-ratio: 1.5), | |
| (-o-min-device-pixel-ratio: 3/2), | |
| (-webkit-min-device-pixel-ratio: 1.5), | |
| (min-resolution: 1.5dppx) { | |
| @content; | |
| } | |
| } |
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
| /** | |
| * Backbone sessionStorage Adapter | |
| * Based on https://github.com/jeromegn/Backbone.localStorage | |
| */ | |
| (function() { | |
| // A simple module to replace `Backbone.sync` with *sessionStorage*-based | |
| // persistence. Models are given GUIDS, and saved into a JSON object. Simple | |
| // as that. |
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
| #!/bin/sh | |
| # This shell script is used to bootstrap the app and update external libraries | |
| # | |
| # ====== IMPORTANT ====== | |
| # | |
| # it may break application if 3rd party libs aren't backwards compatible | |
| # or if libs were edited locally, use with care !!! |
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
| #! /bin/bash | |
| x=`identify -format "%w" $1` | |
| y=`identify -format "%h" $1` | |
| data=`openssl base64 < $1 | tr -d '\n'` | |
| type=`file --mime-type -b $1` | |
| echo "display:block; | |
| font:0/0 a; | |
| color:transparent; |
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
| /** | |
| * adds a pause and unpause method to Mousetrap | |
| * this allows you to enable or disable keyboard shortcuts | |
| * without having to reset Mousetrap and rebind everything | |
| */ | |
| Mousetrap = (function(Mousetrap) { | |
| var self = Mousetrap, | |
| _original_stop_callback = self.stopCallback, | |
| enabled = true; |
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
| /*----------------------------------------------------------------------------------------*/ | |
| /* Opt-in typography - http://goo.gl/H6sGd | |
| * Zero off common semantic elements to stop re-definition | |
| * Use .text class on the parent of anything requiring text styles | |
| /*----------------------------------------------------------------------------------------*/ | |
| $baseline: 1.5em; | |
| @mixin zero-text-elements { | |
| h1, h2, h3, h4, h5, h6, blockquote, pre, |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: