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
| interface Window { | |
| console:any; | |
| attachEvent:any; | |
| // top:any; | |
| Redirects:any; | |
| lUN:any; | |
| } | |
| // var $:any; |
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
| // No bug on jQuery and external reference $$ | |
| declare var $:any; | |
| declare var $$:any; | |
| // http://stackoverflow.com/questions/14980014/how-can-i-calculate-the-time-between-2-dates-in-typescript | |
| // var time = new Date() - new Date("2013-02-20T12:01:04.753Z"); | |
| var time = new Date().getTime() - new Date("2013-02-20T12:01:04.753Z").getTime(); |
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
| namespace AspNetVnextUtils | |
| { | |
| public static class ParameterExtensions | |
| { | |
| private static System.Reflection.FieldInfo InitFieldInfo() | |
| { |
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
| SELECT | |
| --table_name | |
| --,column_name, | |
| --,' SELECT ''' + REPLACE(table_name, '''', '''''') + ''' AS tableName, * FROM ' + QUOTENAME(table_name) + ' WHERE ' + QUOTENAME(column_name) + ' > ' + REPLACE(QUOTENAME(column_name), 'Von', 'Bis') + '; ' AS cmd | |
| --, | |
| ' | |
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
| // Avoid `console` errors in browsers that lack a console. | |
| (function () | |
| { | |
| var method; | |
| var noop = function () { }; | |
| var methods = [ | |
| 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
| 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
| 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', |
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 var REQ: any; | |
| namespace Http | |
| { | |
| export abstract class RequestBase | |
| { | |
| public url: string; |
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 @SO_UIDs varchar(MAX); | |
| SET @SO_UIDs = 'F2808163-C192-4860-9C32-2514F880F123,DDCC699D-B525-4DA3-A558-3BE87AA8923A,043AB989-AA6C-4621-AF26-44C9D537483B,DB14B864-6F96-41B9-BD22-51EAEABC46B9,60DF0FF4-AC1E-4526-8511-653F07CB19C3'; | |
| -- SET @SO_UIDs = '81f82b66-5cc1-4985-869f-cade014fb4a4'; | |
| -- SET @SO_UIDs = NULL | |
| -- SET @SO_UIDs = '00000000-0000-0000-0000-000000000000'; | |
| DECLARE @tXML xml; |
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
| CREATE FUNCTION [dbo].[tfu_RPT_SEL_FromXML] | |
| ( | |
| @in_xml xml | |
| ) | |
| RETURNS TABLE | |
| AS | |
| RETURN | |
| ( | |
| SELECT tempNodes.innerXML.value('.', 'varchar(36)') AS val |
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
| IF 0 < ( | |
| SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES | |
| WHERE TABLE_TYPE = 'BASE TABLE' | |
| AND TABLE_SCHEMA = 'dbo' | |
| AND TABLE_NAME = 'T_SYS_Language_Forms' | |
| ) | |
| BEGIN | |
| -- Check for NULL values in the primary-key column | |
| IF 0 = (SELECT COUNT(*) FROM T_SYS_Language_Forms WHERE LANG_UID IS NULL) |
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
| DO $$ | |
| DECLARE __mytext character varying(200); | |
| BEGIN | |
| __mytext := 'Test message'; | |
| --RAISE NOTICE __mytext; | |
| RAISE NOTICE '%', __mytext; | |
| RAISE NOTICE '% %', 'arg1', 'arg2'; | |