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
| //solve the problem: | |
| //node gyp error TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified | |
| npm config set msvs_version 2013 --global |
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 @XML AS XML | |
| SET @XML = '<root> | |
| <row><Id>1855</Id><Count>2</Count></row> | |
| <row><Id>1856</Id><Count>4</Count></row> | |
| <row><Id>1857</Id><Count>1</Count></row> | |
| </root>' | |
| ;WITH CTE AS | |
| ( | |
| SELECT |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .node { | |
| font: 300 11px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| fill: #bbb; | |
| } | |
| .node:hover { |
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
| ;WITH CTE AS | |
| ( | |
| SELECT top 2 | |
| [Lab_ID] id | |
| ,replace(Lab_HtmlDefinition, 'data-pdnbind="src: resources/V1/products/{ean}_04;"', '') html | |
| ,CASE WHEN Lab_HtmlDefinition <> replace(Lab_HtmlDefinition, 'data-pdnbind="src: resources/V1/products/{ean}_04;"', '') THEN 1 ELSE 0 END WasReplaced | |
| FROM [dbo].[Lab_Pricelabels] | |
| WHERE --lab_customerId = 180211 and | |
| Lab_ID = 560589 | |
| ) |
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
| public static string XmlSerializeWithoutHeader<T>(T instance) | |
| { | |
| if (instance == null) return null; | |
| XmlSerializer xmlSerializer = new XmlSerializer(instance.GetType()); | |
| StringBuilder sb = new StringBuilder(); | |
| using (XmlWriter writer = XmlWriter.Create(sb, new XmlWriterSettings() { OmitXmlDeclaration = true })) { | |
| xmlSerializer.Serialize(writer, instance); | |
| } |
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
| D:\temp>xsd test.xml | |
| Microsoft (R) Xml Schemas/DataTypes support utility | |
| [Microsoft (R) .NET Framework, Version 4.0.30319.1] | |
| Copyright (C) Microsoft Corporation. All rights reserved. | |
| Writing file 'D:\temp\test.xsd'. | |
| D:\temp>xsd test.xsd /classes | |
| Microsoft (R) Xml Schemas/DataTypes support utility | |
| [Microsoft (R) .NET Framework, Version 4.0.30319.1] | |
| Copyright (C) Microsoft Corporation. All rights reserved. |
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 getQueryParams(qs) { | |
| qs = qs.split('+').join(' '); | |
| var params = {}, | |
| tokens, | |
| re = /[?&]?([^=]+)=([^&]*)/g; | |
| while (tokens = re.exec(qs)) { | |
| params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); | |
| } |
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
| <script src="http://code.jquery.com/jquery-1.12.1.min.js"></script> | |
| <script> | |
| $.get( "ajax/test.html", function( data ) { | |
| $( ".result" ).html( data ); | |
| alert( "Load was performed." ); | |
| }); | |
| </script> |
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
| <PropertyGroup> | |
| <PostBuildEvent>$(MSBUILDBINPATH)\msbuild "$(ProjectPath)" /t:Transform /p:Configuration=$(ConfigurationName);Platform=AnyCPU | |
| xcopy "$(ProjectDir)obj\$(ConfigurationName)\Web.Config" $(ProjectDir)\. /F /R /Y | |
| </PostBuildEvent> | |
| </PropertyGroup> | |
| <Target Name="Transform"> | |
| <MakeDir Directories="obj\$(Configuration)" Condition="!Exists('obj\$(Configuration)')" /> | |
| <TransformXml Source="Web.Config" Transform="Web.$(Configuration).config" Destination="obj\$(Configuration)\Web.config" StackTrace="true" /> | |
| </Target> |
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
| Requirements language | |
| The keywords "MUST," "MUST NOT," "REQUIRED," "SHALL," "SHALL NOT," "SHOULD," "SHOULD NOT," "RECOMMENDED," "MAY," and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. |