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
/** | |
* Turns someCrazyName into Some Crazy Name | |
* Decent job of acroynyms: | |
* ABCAcryonym => ABC Acryoynm | |
* xmlHTTPRequest => Xml HTTP Request | |
*/ | |
String.prototype.unCamelCase = function(){ | |
return this | |
// insert a space between lower & upper | |
.replace(/([a-z])([A-Z])/g, '$1 $2') |
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
# DOCKER-VERSION 0.3.4 | |
FROM ubuntu | |
MAINTAINER Kevin Zhuang <[email protected]> | |
#RUN echo "This is a ubuntu Dockerfile." | |
#replace source.list with http://repogen.simplylinux.ch/ | |
RUN echo "deb http://02.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" > /etc/apt/sources.list | |
RUN apt-get update |
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
grunt.registerMultiTask('s3deploy', 'deploy to S3 using awssum', function () { | |
// dependencies | |
var awssum = require('awssum'), | |
fs = require('fs'), | |
path = require('path'), | |
aws = require('./settings').aws; | |
var amz = awssum.load('amazon/amazon'), | |
AmazonS3 = awssum.load('amazon/s3'), | |
s3 = new AmazonS3(aws.accessKey, aws.secretKey, aws.accountId , amz.US_EAST_1), |