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
| 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
| 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
| 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
| 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
| 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
| namespace Domain.Repositories.Database | |
| { | |
| public sealed class DbGateway : IDbGateway | |
| { | |
| public DataSet DataSetQueryFromStoredProcedure(string storedprocedure, Dictionary<string, object> paramaters) | |
| { | |
| var dataSet = new DataSet(); | |
| var connectionString = ConfigurationManager.ConnectionStrings.GetConnectionString("Connection"); | |
| using (var sqlConnection = new SqlConnection(connectionString)) |
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
| protected void CreateReportButton_Click(object sender, EventArgs e) | |
| { | |
| DateTime startDate, endDate; | |
| if (FormValid(out startDate, out endDate)) | |
| { | |
| this.GenerateReport(startDate, endDate); | |
| } | |
| } |
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 ClientsController : BaseApiController | |
| { | |
| private readonly IClientManagement clientManagement; | |
| public ClientsController(IClientManagement clientManagement) | |
| { | |
| this.clientManagement = clientManagement; | |
| } | |
| public IEnumerable<ClientViewModel> 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
| $.getJSON("/Lookups/SomeLookupAPIEndpoint", "", function(data) { | |
| //do something with data.... | |
| //if data is a collection.. | |
| $(data).each(function() { | |
| // .... | |
| }) | |
| }); |