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
Browser = new IE(BaseUrl, newProcess); | |
Browser.ClearCache(); | |
Browser.ClearCookies(); |
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
Open("http://www.google.com", true); | |
public void Open(string url, bool newProcess) | |
{ | |
Browser = new IE(url, newProcess); | |
Browser.ClearCache(); | |
Browser.ClearCookies(); | |
} |
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
class Gallio | |
attr_accessor :verbosity, :noResults, :noProgress, :noLogo, :doNotRun, | |
:ignoreAnnotations, :runtimeLimit, :runnerType, :runnerExtensions, | |
:runnerProperties, :filter, :reportDirectory, :reportNameFormat, | |
:reportArchive, :reportTypes, :reportFormatterProperties, :showReports, | |
:testAssemblies, :hintDirectories, :pluginDirectories, :applicationBaseDirectory, | |
:workingDirectory, :shadowCopy, :debug, :runtimeVersion, :echoCommandLine | |
def initialize() |
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 Configuration : FubuRegistry | |
{ | |
public Configuration() | |
{ | |
//... | |
Routes.HomeIs<DashboardHandler>(x => x.Query()) | |
.ConstrainMethodPrefixToHttpGet("Query") | |
.ConstrainMethodPrefixToHttpPost("Command") | |
.UrlPolicy(FullNameUrlPolicy.Create(). |
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
var tabs = new TabConfiguration { "Some tab name" }; | |
public class TabConfiguration : IEnumerable<Tab> | |
{ | |
public Tab Add(string name) { ... } | |
} |
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 (var output = new System.IO.StreamWriter(System.IO.File.Create(@"D:\temp\tdms.channel.export.txt"))) | |
{ | |
var tdms = new File("Sample.tdms"); | |
tdms.Open(); | |
foreach (var value in tdms.Groups["Noise data"].Channels["Noise_1"].GetData<double>()) | |
output.WriteLine(value); | |
} |
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
[StructureMapException: StructureMap Exception Code: 202 | |
No Default Instance defined for PluginFamily FubuCore.Binding.IBindingLogger, FubuCore, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null] | |
StructureMap.BuildSession.<.ctor>b__0(Type t) in c:\code\structuremap\Source\StructureMap\BuildSession.cs:31 | |
StructureMap.Util.Cache`2.get_Item(KEY key) in c:\code\structuremap\Source\StructureMap\Util\Cache.cs:83 | |
StructureMap.BuildSession.CreateInstance(Type pluginType) in c:\code\structuremap\Source\StructureMap\BuildSession.cs:192 | |
StructureMap.Pipeline.DefaultInstance.build(Type pluginType, BuildSession session) in c:\code\structuremap\Source\StructureMap\Pipeline\DefaultInstance.cs:22 | |
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) in c:\code\structuremap\Source\StructureMap\Pipeline\Instance.cs:101 | |
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) in c:\code\structuremap\Source\StructureMap\Pipeline\Instance.cs:69 | |
Structure |
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 ConfigureFubuMVC : FubuRegistry | |
{ | |
public ConfigureFubuMVC() | |
{ | |
IncludeDiagnostics(true); | |
Actions.IncludeTypeNamesSuffixed("Command", "Query") | |
.IncludeMethodsPrefixed("Get", "Post"); | |
Routes.HomeIs<DashboardQuery>(x => x.Get()) |
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
(function($){ | |
$.addAjaxItemDeleteHandler = function(options) { | |
var defaults = { | |
url: 'delete', | |
data: function(id) { return { Id: id }; }, | |
deleteElementClass: 'item-delete', | |
deleteElementIdAttribute: 'data-id', | |
deleteElementDescriptionAttribute: 'data-description', | |
deleteRowClass: 'item-row', | |
deleteRowIdAttribute: 'data-id', |
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
class Flap extends Backbone.Model | |
class TimelineCollection extends Backbone.Collection | |
model: Flap | |
TimelineController = | |
enumerate: (handle) -> | |
console.log 'enumerate ' + handle | |
@timeline.reset '{{ name: \'you\'}, { name: \'me\'}}' |