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
// NOTE: it is suggested that you use very limited credentials | |
// a good solution is to create an IAM user in AWS that has only PUT rights to S3 | |
// use a temporary bucket that has an expiry (24hrs or something low) | |
// once the file is uploaded get your server to move the file to another bucket that has much less | |
// restricted rights. | |
// See: readme for more info | |
// setup the credentials | |
AWS.config.update({ | |
accessKeyId: accessKeyId, |
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
/** | |
* A better typeof implementation.<br> | |
* This method will return a proper string for | |
* every object in javascript; including, but not limited to: | |
* 'array' | |
* 'arguments' | |
* 'error' | |
* 'date' | |
* 'regexp' | |
* 'json' |
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
// used to make a background image (including alpha images) scale to the size of it's container in ie7 & ie8 | |
.ie7-8-backgroundScale(@filename) { | |
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='@{filename}', sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='@{filename}', sizingMethod='scale')"; | |
} |
NewerOlder