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
| -- exec [dbo].[generateCodeForModule] 'DOCTOR_SERVICE' | |
| IF(@ModuleName = 'DOCTOR_SERVICE') | |
| BEGIN | |
| SELECT @Counter = ISNULL(MAX(SUBSTRING(ServiceRequisitionCode,9,4)),0) | |
| FROM DoctorService_Requisition | |
| WHERE FORMAT(CreatedOn, 'yyyy-MM') = FORMAT(GETDATE()-20, 'yyyy-MM'); | |
| SET @Counter =@Counter + 1; |
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
| DECLARE @ExcludedList VARCHAR(MAX) | |
| SET @ExcludedList = '3,4,22,6014' | |
| declare @sql nvarchar(Max) | |
| Set @sql='SELECT * FROM [A] WHERE Id NOT IN ('+@ExcludedList+')' | |
| exec sp_executesql @sql |
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
| .blink_me { | |
| animation: blinker 1.5s linear infinite; | |
| } | |
| @keyframes blinker { | |
| 50% { opacity: 0.5; } | |
| } |
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 cSharpDate = "/Date(1425408717000)/" | |
| var jsDate = new Date(parseInt(cSharpDate.replace(/[^0-9 +]/g, ''))); |
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
| --Friday count between today from 10 days ago. | |
| declare @fridays int | |
| SELECT @fridays = ((datediff(d, '20060210', GETDATE()) + 1)/7 - datediff(d, '20060210', GETDATE()-10)/7) |
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
| <!-- https://developers.google.com/web/fundamentals --> | |
| <video id="player" controls autoplay></video> | |
| <button id="capture">Capture</button> | |
| <canvas id="canvas" width=320 height=240></canvas> | |
| <script> | |
| const player = document.getElementById('player'); | |
| const canvas = document.getElementById('canvas'); | |
| const context = canvas.getContext('2d'); | |
| const captureButton = document.getElementById('capture'); |
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
| $("#grid").data('kendoGrid').dataSource.data([]); |
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 d = new Date(); | |
| var month = d.getMonth() + 1; | |
| var day = d.getDate(); | |
| var year = d.getFullYear(); | |
| var weekDay = d.getDay(); | |
| const monthNames = ["January", "February", "March", "April", "May", "June", | |
| "July", "August", "September", "October", "November", "December" | |
| ]; | |
| const days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']; |
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
| for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i | |
| set year=%fulldate:~0,4% | |
| set month=%fulldate:~4,2% | |
| set day=%fulldate:~6,2% | |
| set foldername=%year%.%month%.%day%-v.0 | |
| set /a sum = 1 | |
| :chk | |
| if exist %foldername% set foldername=%foldername:~0,14%%sum%&set /a sum += 1&goto chk | |
| md %foldername% |
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
| { field: "UnitsInStock", title: "Units In Stock", editor: editNumberWithoutSpinners } | |
| function editNumberWithoutSpinners(container, options) { | |
| $('<input data-text-field="' + options.field + '" ' + | |
| 'data-value-field="' + options.field + '" ' + | |
| 'data-bind="value:' + options.field + '" ' + | |
| 'data-format="' + options.format + '"/>') | |
| .appendTo(container) | |
| .kendoNumericTextBox({ | |
| spinners : false |
NewerOlder