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
| function curry(fn) { | |
| return function helper(...args) { | |
| if (args.length === fn.length) { return fn(...args); } | |
| return function (...newArgs) { | |
| return helper(...args.concat(newArgs)); | |
| }; | |
| }; | |
| } |
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
| double number = 2000.4; | |
| number.ToString("#,##0.##") |
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
| $(document).bind("keydown", disableF5); | |
| function disableF5(e) { | |
| if ((e.which || e.keyCode) == 116) { | |
| if(confirm("Are you sure you want to continue? You will loose some of the filled information!")){ | |
| return true; | |
| } | |
| else{ | |
| 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
| var selectedIds = JSON.parse('@Html.Raw(Json.Encode(@Model.DuplicateIds))'); | |
| if (jQuery.inArray(id, selectedIds) != -1) { | |
| $("#isDuplicate").prop('checked', true); | |
| } else { | |
| $("#isDuplicate").prop('checked', false); | |
| } |
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
| var arr = JSON.parse('@Html.Raw(Json.Encode(@Model.DuplicateIds))') |
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
| function impersonate(id) { | |
| if (confirm('Are you sure?')) { | |
| var url = 'Account/PresentationImpersonateTo/' + id; | |
| window.location.href = url; | |
| } | |
| } |
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
| #import <Cocoa/Cocoa.h> | |
| @interface FMICustomSlider : NSView | |
| { | |
| NSGradient* gradient; | |
| CGFloat angle; | |
| } | |
| @property (nonatomic) NSGradient* gradient; | |
| @property (nonatomic) CGFloat angle; |