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 System.Collections.Generic; | |
using System.Linq; | |
namespace Core.DomainEvents | |
{ | |
public interface IDomainEvent | |
{ | |
} |
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 adp.hosted.crm.directives { | |
interface ISortState { | |
readonly showUpward: boolean; | |
readonly showDownward: boolean; | |
readonly value: string; | |
next(): ISortState; | |
} |
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
function isElementInViewport (rect) { | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ | |
rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ | |
) | |
} |
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
import kotlin.* | |
import kotlin.jvm.* | |
import java.util.* | |
import java.lang.* | |
import java.time.* | |
import java.time.temporal.* | |
/** | |
* We declare a package-level function main which returns Unit and takes | |
* an Array of strings as a parameter. Note that semicolons are optional. |
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
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3. | |
// | |
// This is a hack to fill the gap between 480 and 760 pixels - a missing range | |
// in the bootstrap responsive grid structure. Use these classes to style pages | |
// on cellphones when they transition from portrait to landscape. | |
// | |
// NOTE: Here I use SASS instead of LESS for styling. To convert to LESS | |
// replace '$screen' with '@screen' and '$grid' with '@grid'. | |
// | |
// See https://github.com/twbs/bootstrap/issues/10203 for more info. |
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
@import (reference) "../bootstrap-less/bootstrap.less"; | |
@import "../bootstrap-less/mixins/grid.less"; | |
@max-amount-columns: 12; | |
.custom-col(@sizeCateg, @col-index: @max-amount-columns, @column-val: @max-amount-columns) when (@col-index > 0) { | |
(~".col-@{sizeCateg}-@{col-index}") { | |
& when (@sizeCateg = 'xs'){ |
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
interface ISliderDirectiveScope { | |
readonly count; | |
register(sliderItem: ISliderItemDirectiveScope); | |
deregister(sliderItem: ISliderItemDirectiveScope); | |
next(): ISliderItemDirectiveScope; | |
prev(): ISliderItemDirectiveScope; | |
selectedItem(): ISliderItemDirectiveScope; |
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
class ActionHandler | |
parent: null | |
handle: (action) -> | |
return null | |
class AlertHandler extends ActionHandler | |
class ConfirmHandler extends ActionHandler | |
class ChangeStateHandler extends ActionHandler | |
class RedirectHandler extends ActionHandler | |
class ValidationHandler extends ActionHandler | |
class ModalHandler extends ActionHandler |
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
(function () { | |
'use strict'; | |
var module = angular.module('modalHelper', []); | |
module.factory('modalTemplateFath', [ | |
function () { | |
return { | |
module: function (fileName) { |
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
### | |
Coffeescript test to sum a total value in an object hierarchy | |
### | |
class PropostaFormViewRule | |
constructor: (_) -> | |
@_ = _ | |
sum: (obj, key) -> | |
# Remove nulls to avoid NaN/undefined sum |
NewerOlder