This file contains 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
module.exports = class RegistryDSL{ | |
constructor(){ | |
this._declarationInProgress; | |
... | |
} | |
requireDirectoryRecursively(dir){ | |
invariant(dir,'You must provide a valid directory'); | |
var absoluteDir= path.join(appRoot.path, dir); |
This file contains 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
FROM mf/nodebox | |
# Maintainer | |
MAINTAINER Raif Harik <reharik@gmail.com> | |
# Expose the node.js port to the Docker host. | |
EXPOSE 3000 | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
ADD /app/package.json /tmp/package.json |
This file contains 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
Step 13 : COPY /app /opt/app/current | |
---> 5a22c3f3e1a7 | |
Removing intermediate container e25fb63a67cb | |
Step 14 : RUN pwd | |
---> Running in 252c00cda6ba | |
/opt/app/current | |
---> 57455a74dcf7 | |
Removing intermediate container 252c00cda6ba | |
Step 15 : RUN ls | |
---> Running in a65d7cbd1818 |
This file contains 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
handleEvent on the base calss | |
console.log(this[gesEvent.eventName]); | |
console.log(this[gesEvent.eventName](gesEvent.data, gesEvent.metadata.continuationId)); | |
result | |
[Function: hireTrainer] | |
[TypeError: undefined is not a function] | |
This file contains 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
async handleEvent(gesEvent) { | |
logger.debug('handleEvent | checking event for idempotence'); | |
var idempotency = await readstorerepository.checkIdempotency(gesEvent.originalPosition, this.eventHandlerName); | |
if (!idempotency.isIdempotent) { | |
logger.debug('handleEvent | event is not idempotent'); | |
return; | |
} | |
logger.trace('handleEvent | event idempotent'); | |
try { |
This file contains 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 Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using CommonServiceLocator.WindsorAdapter; | |
using HSTM.Common.Web.SessionState; | |
using HSTM.HLC.BusinessLogic; | |
using HSTM.HLC.Common; | |
using HSTM.HLC.DataAccess; | |
using HSTM.HLC.Web.UI.Controllers; | |
using Microsoft.Practices.ServiceLocation; |
This file contains 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
============================== | |
private void Start() | |
{ | |
var container = new WindsorContainer(); | |
ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container)); | |
container.Install( | |
new HLCCommonInstaller(), | |
new DataAccessInstaller(), | |
new WebUIInstaller(), | |
new HLCBusinessLogicInstaller() |
This file contains 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
@Html.TextboxSubmission(x=>x.FirstName).ToString() | |
This would emit: | |
<div class = “surroundingElement”> | |
<label for=”FirstName”>First Name</label> | |
<input name=”FirstName” type=”text”></input> | |
</div> |
This file contains 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 override Grid<StatementSearchResultsetDTO> BuildGrid() | |
{ | |
GridBuilder.LinkColumnFor(x => x.StatementName) | |
.ForAction<StatementController>(x => x.AddUpdate(null)) | |
.ToPerformAction(ColumnAction.AddUpdateItem) | |
.ToolTip("Edit Item") | |
.DefaultSortColumn(); | |
GridBuilder.DisplayFor(x => x.Description); | |
GridBuilder.DisplayFor(x => x.UpdateDateTime).DisplayHeader("Updated"); | |
return this; |
This file contains 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
@(Html.Grid("Basic") | |
.SetCaption("Basic Grid") | |
.AddColumn(new Column("CustomerId") | |
.SetLabel("Id")) | |
.AddColumn(new Column("Name")) | |
.AddColumn(new Column("Company")) | |
.AddColumn(new Column("EmailAddress")) | |
.AddColumn(new Column("Last Modified")) | |
.AddColumn(new Column("Telephone")) | |
.SetUrl(Url.Action("GridDataBasic")) |