An extension method of DateTime that returns the Unix Epoch equivalent of the current instance.
Github repo : https://github.com/juliangarnier/3D-CSS-Solar-System Works better in webkit, buggy in FF, flat in IE. Inspired by http://neography.com/experiment/circles/solarsystem/ and http://nicolasgallagher.com/css-pseudo-element-solar-system/demo/ [update] Added some basic responsive styles
A Pen by Julian Garnier on CodePen.
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 CatchAllErrorHandler : FilterAttribute, IExceptionFilter | |
| { | |
| public void OnException(ExceptionContext filterContext) | |
| { | |
| if (filterContext.ExceptionHandled || !filterContext.HttpContext.IsCustomErrorEnabled) | |
| return; | |
| var statusCode = (int) HttpStatusCode.InternalServerError; | |
| if (filterContext.Exception is HttpException) | |
| { |
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 RemoveDiacritics(string s) | |
| { | |
| string normalizedString = s.Normalize(NormalizationForm.FormD); | |
| StringBuilder stringBuilder = new StringBuilder(); | |
| for (int i = 0; i < normalizedString.Length; i++) | |
| { | |
| char c = normalizedString[i]; | |
| if (CharUnicodeInfo.GetUnicodeCategory(c) != UnicodeCategory.NonSpacingMark) | |
| stringBuilder.Append(c); | |
| } |
NewerOlder