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
<script id="invite-email-template" type="text/html"> | |
<nav id="mobileHeader"> | |
<BackButton /> | |
<h1> | |
<span> | |
<LabelText property="Header" /> | |
</span> | |
</h1> | |
</nav> | |
<section class="container-fluid"> |
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 OurNavigationRegistry : NavigationRegistry | |
{ | |
public OurNavigationRegistry() | |
{ | |
ForMenu(NavigationKeys.Main); | |
Add += MenuNode.ForAction<CurrentController>(NavigationKeys.Current, x => x.Index(null)); | |
Add += MenuNode.ForAction<FutureController>(NavigationKeys.Future, x => x.get_futures(null)); | |
Add += MenuNode.ForAction<HistoryController>(NavigationKeys.Historical, x => x.get_history_view(null)); | |
Add += MenuNode.ForAction<ContactsController>(NavigationKeys.Contacts, x => x.get_contacts_list(null)); | |
Add += MenuNode.ForAction<SettingsController>(NavigationKeys.Settings, x => x.Index(null)); |
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 CurrentController | |
constructor: (timer, dataSource, screens) -> | |
@timer = timer | |
@dataSource = dataSource | |
@screens = screens | |
self = this | |
@timer.elapsed () -> self.updateSnapshot() | |
@timer.start() |
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
[TestFixture] | |
public class showing_you_my_junk | |
{ | |
private ISomething theSomethingA; | |
private ISomething theSomethingB; | |
private SomethingElse theClassUnderTest; | |
[SetUp] | |
public void SetUp() | |
{ |
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
src/MyProject/fubu-content/* | |
!src/MyProject/fubu-content/*.zip |
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 SampleProjection : Projection<MyModel> | |
{ | |
public SampleProjection() | |
: base(DisplayFormatting.UseDisplayFormatting) | |
{ | |
// mapping properties here. the values are sent through IDisplayFormatter for all the conventional goodness | |
Value(x => x.BlockNr); | |
// Value... It's on our TODO list to do conventional mappings. It's all there just need to do it (e.g., IncludeImmediateProperties()) | |
Value(x => x.LeadingTimestamp.Key).Name("Leading"); // when the name of the property doesn't sit well with you |
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 TermsRedirectBehavior : BasicBehavior | |
{ | |
private readonly IFubuRequest _request; | |
private readonly IUrlRegistry _urlRegistry; | |
private readonly IOutputWriter _outputWriter; | |
private readonly IPartialFactory _factory; | |
public TermsRedirectBehavior(IFubuRequest request, IUrlRegistry urlRegistry, IOutputWriter outputWriter, IPartialFactory factory) | |
: base(PartialBehavior.Executes) | |
{ |
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
example.js requires jquery.js | |
example.js requires example.coffee |
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() { | |
// Illustrates prototype extensions to the core continuation object | |
$.continuations.continuation.prototype.dialog = function () { | |
if (!this.success || typeof (this.form) === 'undefined') { | |
return $([]); | |
} | |
return this.form.parents('.ui-dialog-content'); | |
}; | |
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
<bindings> | |
<element name="Stylesheet">#this.Asset('@href');</element> | |
<element name="Script">#this.Asset('@src');</element> | |
<element name="Scripts">this.WriteScriptTags()</element> | |
<element name="Styles">this.WriteCssTags()</element> | |
<element name="Image">this.ImageFor('@src')</element> | |
</bindings> |