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.ComponentModel; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text; | |
| using System.Workflow.ComponentModel; | |
| using System.Workflow.ComponentModel.Design; | |
| namespace MyCompany.Workflow.Messaging.Activities | |
| { |
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
| <Action Name="Send an SMS Text Message" | |
| ClassName="MyCompany.Workflow.Messaging.Activities.SendSMSActivity" | |
| Assembly="MyCompany.Workflow.Messaging.Activities, Version=1.0.0.0, | |
| Culture=neutral, PublicKeyToken=fe2315b70tbc147c" | |
| AppliesTo="all" | |
| Category="Messaging Actions"> | |
| <RuleDesigner Sentence="Send %1 to number %2"> | |
| <FieldBind Field="Message" Text="this message" DesignerType="TextBox" Id="1"/> | |
| <FieldBind Field="Number" Text="this number" DesignerType="TextBox" Id="2"/> | |
| </RuleDesigner> |
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
| <form data-bind="submit: addSpeaker"> | |
| <fieldset> | |
| <legend>Speaker Info</legend> | |
| Name: <input type="text" data-bind="value: name" /> <br /> | |
| Bio: <textarea data-bind="value: bio"></textarea> <br /> | |
| Twitter Handle: <input type="text" data-bind="value: twitterHandle" /> <br /> | |
| State: <input type="text" data-bind="value: state" /> <br /> | |
| </fieldset> | |
| <fieldset> | |
| <legend>Languages</legend> |
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
| <form id="addSpeaker"> | |
| <fieldset> | |
| <legend>Speaker Info</legend> | |
| Name: <input type="text" id="name" /> <br /> | |
| Bio: <textarea id="bio"></textarea> <br /> | |
| Twitter Handle: <input type="text" id="twitterHandle" /> <br /> | |
| State: <input type="text" id="state" /> <br /> | |
| Photo Url: <input type="text" id="photoUrl" /> | |
| </fieldset> | |
| <fieldset> |
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
| <fieldset> | |
| <legend>Speaker Info</legend> | |
| Name: @Html.TextBoxFor(m => m.Name) <br /> | |
| Bio: @Html.TextAreaFor(m => m.Bio) <br /> | |
| Twitter Handle: @Html.TextBoxFor(m => m.TwitterHandle) <br /> | |
| State: @Html.TextBoxFor(m => m.State) <br /> | |
| </fieldset> |
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
| ko.unobtrusive.createBindings(bindings); | |
| ko.applyBindings(viewModel); |
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
| <fieldset> | |
| <legend>Place Your Order</legend> | |
| Name: <input type="text" class="field" id="orderName" required autofocus placeholder="ex. Hugo Reyes" /> | |
| Email: <input type="email" class="field" id="orderEmail" required placeholder="ex. [email protected]" /> | |
| Website: <input type="url" class="field" id="orderWebsite" placeholder="ex. http://www.domain.com" /> | |
| Phone: <input type="tel" id="orderTelephone" class="field" pattern="\(\d\d\d\) \d\d\d\-\d\d\d\d" title="(xxx) xxx-xxxx" /> | |
| Requested Delivery Date: <input type="date" id="deliveryDate" class="field" required /> | |
| Shipping Address: <textarea rows="4" cols="20" id="orderShipping" class="field" required></textarea> | |
| Quantity: <input type="number" id="orderQty" name="orderQty" min=1 max=10 step=1 value=1 /> | |
| <input type="submit" value="Place Order" /> |
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 FluentHtml5ViewPage<T> : ModelViewPage<T> where T : class | |
| { | |
| public FluentHtml5ViewPage() | |
| : base(new RegularExpressionBehavior(), new RangeBehavior(), new RequiredBehavior()){} | |
| } |
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
| exports = module.exports | |
| exports.setup = (callback) -> | |
| write = process.stdout.write | |
| process.stdout.write = ((stub) -> | |
| (string, encoding, fd) -> | |
| stub.apply process.stdout, arguments | |
| callback string, encoding, fd)(process.stdout.write) | |