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
variable "memory" {} | |
variable "environment" {} | |
variable "version" {} | |
variable "region" {} | |
variable "aws_secretkey" {} | |
variable "aws_accesskey" {} | |
variable "docker_email" {} | |
variable "docker_user" {} | |
variable "docker_pass" {} |
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
docker_email = "yours" | |
docker_user = "yours" | |
docker_pass = "yours" | |
mongo_uri = "yours" | |
neo4j_uri = "yours" | |
rabbit_uri = "amqp://yours" | |
aws_accesskey = "yours" | |
aws_secretkey = "yours+yours+yours" | |
pub_key = "/yours/.ssh/deployment.pub" | |
pvt_key = "/yours/.ssh/deployment" |
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: written in older version of Swift back in January 2015. Swift has since changed a bit. | |
import Foundation | |
import UIKit | |
class UploadViewController: UIViewController,CLUploaderDelegate | |
{ | |
@IBOutlet weak var capturedImage: UIImageView! | |
var Cloudinary:CLCloudinary! | |
var image:UIImage? |
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
#ifndef EL_Bridging_Header_h | |
#define EL_Bridging_Header_h | |
#import "Cloudinary.h" | |
#endif |
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
import Foundation | |
import MobileCoreServices | |
import UIKit | |
class ImageCaptureController: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate | |
{ | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
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
`git fetch --tags` | |
tag_name = `git describe --abbrev=0`.split("\n")[0] | |
current_tag= tag_name.gsub(".","").to_i | |
tags_dictionary = Hash[`git tag`.split("\n").map{|tag| [tag.gsub(".","").to_i, tag]}] | |
tags = `git tag`.split("\n").collect{|tag| tag.gsub(".","").to_i} | |
tags.sort | |
tagIndex= tags.index(current_tag) | |
previous_tag=tags[tagIndex-1] |
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
public class WebApiApplication : System.Web.HttpApplication { | |
[ImportMany] | |
List<IComposableApiMetadata> m_composers; | |
private CompositionContainer m_container; | |
protected void Application_Start() { | |
var catalog = new AggregateCatalog(); | |
var servicesFolder = @"C:\dllFolder"; |
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
[Export(typeof(IComposableApiMetadata))] | |
public class ExternalApiMetadata : IComposableApiMetadata { | |
public void Compose(ContainerBuilder builder) { | |
builder.Register(e => new BookRepository()).As<IBookRepository>().InstancePerApiRequest(); | |
} | |
public Assembly ApiAssembly() { | |
return typeof(BooksController).Assembly; | |
} | |
} |
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
public interface IComposableApiMetadata | |
{ | |
void Compose(ContainerBuilder builder); | |
Assembly ApiAssembly(); | |
} |
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
pip install ebs-deploy | |
ebs-deploy init | |
ebs-deploy deploy --environment muzzy-app-dev |