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
##based on Mesosphere Marathon's servicerouter.py haproxy config | |
global | |
daemon | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
tune.ssl.default-dh-param 2048 | |
defaults |
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 slick.codegen.SourceCodeGenerator | |
import slick.jdbc.JdbcProfile | |
import slick.model.Model | |
import scala.concurrent.{Await, ExecutionContext} | |
import scala.concurrent.duration.Duration | |
object SourceCodeGenerator { |
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
using System.IO; | |
using Nancy; | |
using Nancy.ViewEngines; | |
namespace Web.Modules | |
{ | |
public static class ModuleExtensions | |
{ | |
public static string RenderRazorViewToString(this NancyModule module, string viewName, object model) | |
{ |
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
// Add salat and casbah to your build.scala or build.sbt files. | |
object ElBuild extends Build { | |
val Organization = "your own" | |
val Version = "0.0.1-SNAPSHOT" | |
val ScalaVersion = "2.10.3" | |
val ScalatraVersion = "2.2.1" | |
resolvers += "Maven Central Server" at "http://repo1.maven.org/maven2" | |
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" |
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 buildForm(containerId,obj) { | |
if (!obj["_presentable"]) { | |
return; | |
} | |
var presentable = obj["_presentable"]; | |
var links = obj["_links"]; | |
var form = document.createElement("form"); |
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
public enum LinkKind | |
{ | |
Fetch, | |
Save, | |
Update | |
} | |
public enum Restrictions | |
{ | |
Required, |
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
def readVersion(filepath="AssemblyInfo.cs") | |
File.open(filepath).each_line{ |line| | |
if line.start_with?("[assembly: AssemblyVersion(\"") | |
return line.gsub("[assembly: AssemblyVersion(\"", "").gsub("\")]","").gsub(/\s+/, "") | |
end | |
} | |
end |
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
//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 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = false | |
[remote "origin"] | |
url = https://iamnotyou@bitbucket.org/iamnotyou/le-large-projet.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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using ServiceStack.ServiceHost; | |
namespace Common | |
{ | |
public interface IComposobaleBootstrapper |
NewerOlder