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
/* | |
* Angular directive to insert an image from a source that may require a few seconds | |
* to become available such as a thumb created by server to AWS S3. | |
* This directive checks if the image yields an error, if so it will loop a HEAD request | |
* every intevrval (default to 500ms, 5 times), If that fails then it will jus use the | |
* fallback image | |
* This directive will only peform an HTTP request when the initial loading image fails | |
*/ | |
angular.module('app').directive('preview', function(stickerService, $http, $interval) { | |
return { |
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
{ | |
"name": "gonegreen", | |
"domains": [ | |
"gonegreenstore.com", | |
"www.gonegreenstore.com" | |
], | |
"version": "0.0.0-69", | |
"dependencies": { | |
"express": ">= 3.0.0rc2", | |
"passport": "*", |
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
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: | |
error: Error spawning drone: no matching engine found | |
error: Repository configuration | |
error: | |
error: This type of error is usually a user error. | |
error: Error output from Haibu: | |
error: |
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
function parseIdentify(input) { | |
var lines = input.split("\n"), | |
prop = {}, | |
props = [prop], | |
prevIndent = 0, | |
indent = 0, | |
indents = [indent], | |
currentLine, comps; | |
lines.shift(); //drop first line (Image: name.jpg) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> |
NewerOlder