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
| // Useful for students in need of block quotes for their paper, etc. | |
| // Execute the line in your JavaScript console | |
| new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; | |
| javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; |
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
| using System; | |
| using System.Diagnostics; | |
| public static class Break | |
| { | |
| [Conditional("DEBUG")] | |
| public static void OnCondition(Func<bool> condition) | |
| { | |
| if (Debugger.IsAttached) | |
| { |
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 Extensions | |
| { | |
| // Extension should be on IContainer not ITraceable for consistency when resolving objects | |
| public static TTargetInterface ResolveTraceableDependency<TTargetInterface>(this IContainer container, ITraceConfig traceConfig) | |
| { | |
| return container.Resolve<TTargetInterface>( | |
| TypedParameter.From<ITraceConfig>(traceConfig)); | |
| } | |
| } |