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
require "fileutils" | |
def create_fubu_bottle(*args, &block) | |
body = lambda { |*args| | |
task = CreateFubuBottle.new | |
block.call(task) | |
task.run | |
} | |
Rake::Task.define_task(*args, &body) | |
end |
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
Handlebars.registerHelper('when', function (predicate, options) { | |
var declarations = ''; | |
for (var field in this) declarations += field + ' = this.' + field + ','; | |
if (eval(declarations + predicate)) { return options.fn(this); } | |
}); | |
{{#when 'admin || superUser'}} | |
crazy go nuts | |
{{/when}} |
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
<customBinding> | |
<binding name="ReachmailBuffered"> | |
<security authenticationMode="UserNameOverTransport" includeTimestamp="false"> | |
<secureConversationBootstrap /> | |
</security> | |
<textMessageEncoding messageVersion="Soap11" maxReadPoolSize="209715200"> | |
<readerQuotas maxStringContentLength="2147483647" /> | |
</textMessageEncoding> | |
<httpsTransport maxReceivedMessageSize="209715200" maxBufferPoolSize="209715200" maxBufferSize="209715200" /> | |
</binding> |
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 static class ProcessExtensions | |
{ | |
public static bool IsWindowsService(this Process process) | |
{ | |
return process.GetParent().ProcessName == "services"; | |
} | |
public static Process GetParent(this Process process) | |
{ | |
var parentPid = 0; |
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 IBehavior | |
{ | |
void Execute<T>(T data); | |
} | |
public class BehaviorGraph | |
{ | |
private readonly IList<Type> _behaviors = new List<Type>(); | |
public T Execute<T>() |
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 TrailingSlashRedirectBehavior : IActionBehavior | |
{ | |
private readonly IActionBehavior _innerBehavior; | |
private readonly IOutputWriter _outputWriter; | |
private readonly ICurrentHttpRequest _request; | |
public TrailingSlashRedirectBehavior(IActionBehavior innerBehavior, IOutputWriter outputWriter, ICurrentHttpRequest request) | |
{ | |
_innerBehavior = innerBehavior; | |
_outputWriter = outputWriter; |
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 Conventions : FubuRegistry | |
{ | |
public Conventions() | |
{ | |
Policies.Add(x => x.ModifyBy(y => y.AddSymmetricFormatter<MyNewXmlFormatter>(), ConfigurationType.Attachment)); | |
} | |
} | |
public static class Extensions | |
{ |
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 static HttpWebResponse GetResponse(this HttpWebRequest request, bool throwHttpExceptions) | |
{ | |
if (throwHttpExceptions) return (HttpWebResponse)request.GetResponse(); | |
try | |
{ | |
return (HttpWebResponse)request.GetResponse(); | |
} | |
catch (WebException e) | |
{ | |
var response = e.Response as HttpWebResponse; |
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
Source Error: | |
Line 13: public static void Start() | |
Line 14: { | |
Line 15: FubuApplication.For<Conventions>().StructureMap(new Container()).Bootstrap(); | |
Line 16: PackageRegistry.AssertNoFailures(); | |
Line 17: } | |
Source File: d:\Development\FubuMVC.Swank\src\TestHarness\Bootstrap.cs Line: 15 |
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
<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre> | |
*** Assembly Binder Log Entry (1/13/2013 @ 2:31:53 PM) *** | |
The operation failed. | |
Bind result: hr = 0x80070002. The system cannot find the file specified. | |
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll | |
Running under executable C:\Program Files (x86)\IIS Express\iisexpress.exe | |
--- A detailed error log follows. |