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
To ignore changes to a file: | |
git update-index --assume-unchanged [file] | |
To unignore changes to a file: | |
git update-index --no-assume-unchanged [file] |
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
.inline-block | |
{ | |
display: -moz-inline-block; | |
display: inline-block; | |
zoom:1; *display: inline; /* IE7 */ | |
} |
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
/* | |
Hardboiled CSS3 Media Queries by Andy Clarke: | |
http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
Author: Andy Clarke | |
Web site: http://stuffandnonsense.co.uk | |
Twitter: http://twitter.com/malarkey | |
Hardboiled Web Design |
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 string ToRelativeTime(this DateTime from) | |
{ | |
DateTime now = DateTime.Now; | |
return from.ToRelativeTime(now); | |
} | |
public static string ToRelativeTime(this DateTime from, bool usePreAndSuffix) | |
{ | |
DateTime now = DateTime.Now; | |
return from.ToRelativeTime(now, usePreAndSuffix); |
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 string GravatarUrl(this UrlHelper url, string email, int size) | |
{ | |
string imageUrl = ConfigurationManager.AppSettings["DefaultGravatar"]; // e.g. "identicon" or a URL to image | |
if (imageUrl.StartsWith("~/")) | |
{ | |
imageUrl = url.Absolute(imageUrl); | |
} | |
if (string.IsNullOrEmpty(email)) | |
{ |
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 string ToSlug(this string message) | |
{ | |
// replace space with - | |
message = Regex.Replace(message, @"[\s/\\\.,+|_]+", "-"); | |
// normalize the message | |
message = message.Normalize(NormalizationForm.FormD); | |
// do simple DK char replace | |
message = message.Replace("ø", "oe").Replace("Ø", "Oe").Replace("æ", "ae").Replace("Æ", "Ae").Replace("å", "aa").Replace("Å", "Aa"); |
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
-- Method 1: | |
sp_msforeachtable "SELECT '?', COUNT(*) FROM ?" | |
-- Method 2: (nicer, more details) | |
CREATE TABLE #TempTable | |
( | |
tableName varchar(100), | |
numberofRows varchar(100), |