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
<form class="form-horizontal" method="POST" id="login-form" action="/Account/Login"> | |
<div class="control-group"> | |
<label class="control-label" for="userId">Email</label> | |
<div class="controls"> | |
<input id="userId" name="userId" data-bind="value: email" type="text" placeholder="Email"> | |
</div> | |
</div> | |
<div class="control-group"> | |
<label class="control-label" for="password">Password</label> | |
<div class="controls"> |
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
var resetEvent = new ManualResetEvent(false); | |
ThreadPool.QueueUserWorkItem( | |
arg => | |
{ | |
var task = new MyTaskRunner(); | |
task.Run(data); | |
resetEvent.Set(); | |
}); |
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 static class AwsExtensions | |
{ | |
public static string Upload(this AmazonS3 client,UploadImageRequest request) | |
{ | |
var uploadRequest = new PutObjectRequest { InputStream = request.Image }; | |
uploadRequest.WithBucketName(request.Bucket).WithKey(request.FileIdentifier); | |
var response = client.PutObject(uploadRequest); |
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.Text; | |
using System.Threading; | |
using Microsoft.SqlServer.Management.Common; | |
using Microsoft.SqlServer.Management.Smo; | |
public class Restorinator{ | |
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.ComponentModel.Composition; | |
using System.ComponentModel.Composition.Hosting; | |
using System.IO; | |
using System.Linq; | |
using System.Configuration; | |
using System.Collections.Generic; | |
using System.Web.Mvc; | |
using Common; | |
using ServiceStack.Mvc; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using ServiceStack.ServiceHost; | |
namespace Common | |
{ | |
public interface IComposobaleBootstrapper |
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.ComponentModel.Composition; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using Common; | |
using Funq; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.ServiceInterface; |
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
[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 |