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
.directive("scroll", function ($window) { | |
return function (scope, element, attrs) { | |
function getScrollOffsets(w) { | |
// Use the specified window or the current window if no argument | |
w = w || window; | |
// This works for all browsers except IE versions 8 and before | |
if (w.pageXOffset != null) return { |
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
@media print { | |
* { | |
color: #000 !important; | |
text-shadow: none !important; | |
background: transparent !important; | |
box-shadow: none !important; | |
} |
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
{{destination.payoffAmount | currency:''}} |
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
$httpProvider.defaults.transformRequest = function (data) { | |
function isWindow(obj) { | |
return obj && obj.document && obj.location && obj.alert && obj.setInterval; | |
} | |
function isScope(obj) { | |
return obj && obj.$evalAsync && obj.$watch; | |
} | |
function isFile(obj) { | |
return toString.apply(obj) === '[object File]'; | |
} |
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
angular.module('homeBanking.directives', []) | |
.directive("hbCurrency", ($filter: ng.IFilterService) => { | |
return { | |
restrict: "EAC", | |
require: "?$filter", | |
link: function ($scope: ng.IScope, elm, attrs) { | |
var currencyFilter = $filter('currency'), | |
rawAmount = $scope.$eval(attrs.hbCurrency), | |
className = rawAmount >= 0 ? "positive" : "negative"; |
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
public class TestableBootstrapper : ConfigurableBootstrapper | |
{ | |
public TestableBootstrapper(Action<ConfigurableBoostrapperConfigurator> action): base(action) | |
{ | |
} | |
protected override byte[] FavIcon | |
{ | |
get |
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
public class Bootstrapper : UnityNancyBootstrapper | |
{ | |
protected override void RegisterTypes(IUnityContainer container, IEnumerable<TypeRegistration> typeRegistrations) | |
{ | |
base.RegisterTypes(container, typeRegistrations); | |
container.RegisterInstance( | |
JsonSerializer.Create(new JsonSerializerSettings() | |
{ | |
ContractResolver = new CamelCasePropertyNamesContractResolver() | |
})); |
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
var Robot = function(robot) { | |
//\ robot.clone(); | |
// this.mode = 'scanning'; | |
}; | |
var mode = 'scanning'; | |
var targetVector = 0; | |
var lastFired = 0; | |
var iteration = 0; |
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
var Robot = function(robot) { | |
//\ robot.clone(); | |
// this.mode = 'scanning'; | |
}; | |
var mode = 'scanning'; | |
var targetVector = 0; | |
var lastFired = 0; | |
var iteration = 0; |
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
var Robot = function(robot) { | |
//\ robot.clone(); | |
// this.mode = 'scanning'; | |
}; | |
var mode = 'scanning'; | |
var targetVector = 0; | |
var lastFired = 0; | |
var iteration = 0; |
NewerOlder