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
<a id="share-facebook" class="facebook" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer.php?u=http://www.myurl.com" _fcksavedurl="http://www.facebook.com/sharer.php?u=http://www.myurl.com" title="Facebook - Link opens in a new window">Facebook</a> |
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
namespace TheSiteDoctor.Example | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
class Program | |
{ | |
private static readonly IEnumerable<Tuple<string, string, Action>> menu = new List<Tuple<string, string, Action>> | |
{ |
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
DECLARE @sql VARCHAR(max) | |
SELECT @sql = '' | |
SELECT | |
@sql = @sql + 'select ''' + table_name + ''',''' + column_name + ''',max(len([' + column_name + '])) from [' + table_name + '] union all ' | |
FROM | |
information_schema.columns | |
SET @sql = left(@sql, len(@sql) - 9) |
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
public static class NonBlockingConsole | |
{ | |
private BlockingCollection<string> m_Queue = new BlockingCollection<string>(); | |
static NonBlockingConsole() | |
{ | |
var thread = new Thread( | |
() => | |
{ | |
while (true) Console.WriteLine(m_Queue.Take()); |
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
public static class QueuedConsole | |
{ | |
private static StringBuilder _sb = new StringBuilder(); | |
private static int _lineCount; | |
public void WriteLine(string message) | |
{ | |
_sb.AppendLine(message); | |
++_lineCount; | |
if (_lineCount >= 10) |
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
@ECHO OFF | |
ECHO Delete By Date Pattern | |
ECHO Written by: Jason Faulkner | |
ECHO SysadminGeek.com (article: http://www.howtogeek.com/50528/automating-the-process-of-deleting-old-log-files/) | |
ECHO. | |
ECHO. | |
REM Delete/Select files based on a date which utilizes MM and/or DD for file naming patterns. | |
REM | |
REM Usage: |
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
/*! | |
* Conversion Tracker: a jQuery Plugin that tracks an event in both Google Analytics and Google AdWords | |
* @author: Tim Gaunt (@timgaunt) | |
* @url: http://blogs.thesitedoctor.co.uk/tim | |
* @documentation: http://blogs.thesitedoctor.co.uk/tim | |
* @published: 24/10/2012 | |
* @license Creative Commons Attribution Non-Commercial Share Alike 3.0 Licence | |
* http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
* | |
* ---------------------- |
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
DATEDIFF (day, @LastTimesheetEntry, @DateNow) - (2 * DATEDIFF(week, @LastTimesheetEntry, @DateNow)) - CASE WHEN DATEPART(weekday, @LastTimesheetEntry + @@DATEFIRST) = 1 THEN 1 ELSE 0 END - CASE WHEN DATEPART(weekday, @DateNow + @@DATEFIRST) = 1 THEN 1 ELSE 0 END |
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
DECLARE @table SYSNAME, @field SYSNAME | |
set @table = '## Your table name ##' | |
CREATE TABLE #Temp (TableName SYSNAME, ColumnName SYSNAME, MaxLength INT) | |
DECLARE a_cursor CURSOR STATIC | |
FOR | |
SELECT name FROM syscolumns c WHERE id = object_id(@table) | |
OPEN a_cursor |
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
<xsl:sort select="umbraco.library:FormatDateTime(##Date Field##, 'yyyyMMdd')" data-type="number" order="descending" /> |
OlderNewer