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
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
int hexToInt(char c) | |
{ | |
int first = c / 16 - 3; | |
int second = c % 16; | |
int result = first*10 + second; |
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
Sub SendReply(Item As Outlook.MailItem) | |
Dim strRecip As String | |
Dim Recipient As Outlook.Recipient | |
Dim objMsg As MailItem | |
'Save a template with a the content you want to reply and the CC addresses if needed, nothing else. | |
Set objMsg = Application.CreateItemFromTemplate("path of template .oft") | |
'Add sender of original email |
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
using System; | |
using System.Threading; | |
using WFICALib; | |
class Program | |
{ | |
public static AutoResetEvent onLogonResetEvent = null; | |
/// This program demo's the basic of launching and ICO session from within an application. | |
static void Main(string[] args) |
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
(dir -exclude *.g.cs,*.i.cs,*.designer.cs,assemblyinfo.cs,app.* -include *.cs,*.xaml -recurse | select-string .).Count | |
//Missing exclusion of empty lines and comments(?) |
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 class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, INotifyCollectionChanged, INotifyPropertyChanged | |
{ | |
private const string CountString = "Count"; | |
private const string IndexerName = "Item[]"; | |
private const string KeysName = "Keys"; | |
private const string ValuesName = "Values"; | |
private IDictionary<TKey, TValue> _Dictionary; | |
protected IDictionary<TKey, TValue> Dictionary | |
{ |
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
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
-- ============================================= | |
-- Author: Carol Ouellet | |
-- Create date: 2017-04-21 | |
-- Description: Determine if given date is within DST clock shift | |
-- ============================================= | |
CREATE FUNCTION IsDaylightSavingTime |
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].[SplitString] | |
( | |
@List NVARCHAR(MAX), | |
@Delim VARCHAR(255) | |
) | |
RETURNS TABLE | |
AS | |
RETURN ( SELECT [Value] FROM | |
( | |
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
CREATE FUNCTION dbo.CreateHTMLTable(@SelectForXmlRawElementsXsinil XML) | |
RETURNS XML | |
AS | |
BEGIN | |
RETURN | |
( | |
SELECT | |
@SelectForXmlRawElementsXsinil.query('let $first:=/row[1] | |
return |
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 "tokens=1,2,3 skip=1 delims=," %%A in (test.txt) do ( | |
@echo I am at %%A using login %%B:%%C | |
) |
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 sp_configure 'show advanced options', 1; | |
GO | |
RECONFIGURE; | |
GO | |
EXEC sp_configure 'xp_cmdshell',1; | |
RECONFIGURE | |
GO | |
CREATE TABLE TempProcessStore ([RowNo] [smallint] identity (1, 1) | |
,[name] nvarchar(128) |
OlderNewer