- Separate front end "client" deployment and build process from backend deployment.
- Not necessarily have to create two completely distinct applications (because of authentication difficulties etc), but could go in that direction if needed.
- Migratable to from the asset pipeline & compatible with rails.
- Support coffeescript, sass compilation.
- Allow lightweight "staging" clients to be deployed using the existing backend. Ideally even use the production backend with a development client.
- Fast compilation and deployment.
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> | |
<meta charset="utf-8"> | |
<title>Bacon.js Infinite Scroll Attempt #2</title> | |
<p>Keep scrolling down to see more numbers.</p> | |
<div id="results"></div> | |
<img id="throbber" src="http://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif" style="position: fixed; bottom: 4px; right: 4px;"> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.22/Bacon.js"></script> | |
<script> | |
var pageChanged = new Bacon.Bus(); |
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
# https://github.com/pivotal/jasmine/pull/70/files | |
jasmine.Matchers.prototype.toBeInstanceOf = (klass) -> | |
this.actual instanceof klass |
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
@function foo-shadow($color, $size, $layers: 1) { | |
$transparency: (10 - $layers) * .1; | |
$opts: (); | |
@for $i from 1 to $layers { | |
$opts: append($opts, 0 0 0 ($size * $i) transparentize($color, $transparency + (.1 * $i)), comma); | |
} | |
@return $opts; | |
} | |
$colorGood: lawngreen; |
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
Function.prototype.method = function (name, func) { | |
this.prototype[name] = func; | |
return this; | |
} | |
var getParamNames = function (func) { | |
var funStr = func.toString() | |
return funStr.slice(funStr.indexOf('(')+1, funStr.indexOf(')')).match(/([^\s,]+)/g) | |
} |
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
// Make it Nasty | |
function increment (i) { | |
i ^= (i & ~-~i) | (~i & -~i) | |
return i | |
} |
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 <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@interface ErrorFormatter : NSObject | |
@property (strong, nonatomic) NSError *error; | |
- (id)initWithError:(NSError *)error; | |
- (UIAlertView *)alert; |
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
deploy: | |
rm -rf ./build | |
wintersmith build | |
cd ./build && \ | |
git init . && \ | |
git add . && \ | |
git commit -m "Deploy"; \ | |
git push "git@github.com:{YOUR NAME}/{YOUR REPO}.git" master:gh-pages --force && \ | |
rm -rf .git |
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 Foundation | |
// Tuple result | |
// Get contents of directory at specified path, returning (filenames, nil) or (nil, error) | |
func contentsOfDirectoryAtPath(path: String) -> (filenames: String[]?, error: NSError?) { | |
var error: NSError? = nil | |
let fileManager = NSFileManager.defaultManager() | |
let contents = fileManager.contentsOfDirectoryAtPath(path, error: &error) |
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
/* | |
ericasadun.com | |
Sometimes letting go doesn't mean saying goodbye | |
*/ | |
prefix operator ++ | |
prefix operator -- | |
postfix operator ++ |
OlderNewer