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
private static void ExecuteSqlTransaction(string connectionString) | |
{ | |
using (SqlConnection connection = new SqlConnection(connectionString)) | |
{ | |
connection.Open(); | |
SqlCommand command = connection.CreateCommand(); | |
SqlTransaction transaction; | |
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
/*final-css*/ | |
.speech-bubble { | |
text-align:center; | |
font:40px/100px Arial, sans-serif; | |
color:#fff; | |
background:red; | |
width:300px; | |
height:100px; | |
margin:auto; | |
position: absolute; |
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
<!--ash--> | |
<div class="speech-bubble">ash</div> |
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
/*final-css*/ | |
.speech-bubble { | |
text-align:center; | |
font:40px/100px Arial, sans-serif; | |
color:#fff; | |
background:red; | |
width:300px; | |
height:100px; | |
margin:auto; | |
position: absolute; |
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 testrunner = require('nodeunit').reporters.default; | |
process.chdir(__dirname); | |
testrunner.run(['.']); | |
exports.testSignedXml = function(test){ | |
var SignedXml = require('xml-crypto').SignedXml | |
, fs = require('fs') | |
, dom = require('xmldom').DOMParser; |
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
/* List all columns in the current database that are of datetimeoffset datatype */ | |
Use $(DbName) | |
go | |
SELECT c.Object_ID | |
, OBJECT_NAME(c.OBJECT_ID) TableName | |
,c.name AS ColumnName | |
,SCHEMA_NAME(t.schema_id) AS SchemaName |
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
/// <summary> | |
/// Is the specified datetime DST? | |
/// </summary> | |
[TestMethod] | |
public void DST_Started_On_April_27_1980() | |
{ | |
var ts = new DateTime(1980, 4, 15, 12, 0, 0); | |
var isDst = Utils.EasternTimeZone.IsDaylightSavingTime(ts); |
NewerOlder