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
| bookings.bookingPresenter = function($div, eventsBus) { | |
| // Handle page events and user interaction here. Delegate the functionality on the bus. | |
| // query the Dom on the smallest element you can, i.e. never do $('').find for everything | |
| var $form = $div.find('#orderForm'); | |
| $div.find('.orderButton').click(function(e) { | |
| e.preventDefault() |
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
| package examples; | |
| import javax.swing.JPanel; | |
| public class MyWindow extends javax.swing.JFrame { | |
| //The static main is the entrance to the program | |
| public static void main(String args[]) { | |
| System.out.println("loading"); |
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 Encog.Engine.Network.Activation; | |
| using Encog.ML.Data.Basic; | |
| using Encog.Neural.Networks; | |
| using Encog.Neural.Networks.Layers; | |
| using Encog.Neural.Networks.Training.Propagation.Resilient; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; |
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 sealed class HappyController : Controller { | |
| private IManagement management; | |
| public HappyController(IManagement management) { | |
| this.management = management | |
| } | |
| [HttpGet] | |
| public ViewResult LooselyCoupleThings() { |
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
| Dim msg As String | |
| Dim cancel As Boolean | |
| Private Sub Workbook_BeforeSave(ByVal SaveAsUi As Boolean, cancel As Boolean) | |
| CheckAndMark "B42", "Cell B42 must be filled in with a NAME before saving." | |
| CheckAndMark "b51", "Cell B51 needs a random number" | |
| If cancel Then | |
| MsgBox msg |
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.CodeDom; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Runtime.InteropServices; | |
| using System.Threading.Tasks; |
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
| declare @number int | |
| set @number = 1 | |
| select case @number when 1 | |
| then 'yes' | |
| else 'no' | |
| end as NumberOrYes |
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.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Nancy; | |
| using Nancy.Owin; | |
| using Nowin; |
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.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Nancy; | |
| using Nancy.Owin; | |
| using Nowin; |
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 Appointment : IAggregateRoot | |
| { | |
| public Appointment(Guid id, AppointmentType type, .....) | |
| { | |
| switch type | |
| { | |
| case: AppointmentType.TypeOne | |
| Apply(new TypeOneAppointmentCreated()); | |
| case: AppointmentType.TypeTwo | |
| Apply(new TypeTwoAppointmentCreated()); |