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
| /** | |
| * Date Format | |
| * Copyright (c) 2011, marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| * | |
| * Format options inspired by the .NET framework's format. | |
| * http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx | |
| * | |
| * Non-formatting characters within the format string must be | |
| * quoted (single (') or double (") quotes)! The same is true |
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
| /** | |
| * C# <> JavaScript Date Converter | |
| * Copyright (c) 2011 marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| */ | |
| /// <summary> | |
| /// Provides a Convert method to convert between C# DateTime values and JavaScript parsable Int64 date values. | |
| /// </summary> | |
| public static class JavaScriptDateConverter | |
| { |
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
| /** | |
| * C# String Extensions | |
| * Copyright (c) 2011 marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| */ | |
| using System; | |
| using System.Collections.Generic; | |
| namespace Garkbit { | |
| public static class StringExtensions { |
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
| /** | |
| * Unsorted stuff | |
| * Copyright (c) 2011, marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| */ | |
| (function (NS) { | |
| if (!NS) { NS = window; } | |
| // isNumber |
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
| /** | |
| * Mootools Date.Swedish.js | |
| * Copyright (c) 2009, marlun78 | |
| * MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
| */ | |
| MooTools.lang.set('sv-SE', 'Date', { | |
| months: function (i) { | |
| return ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'][i] | |
| }, | |
| days: function (i) { |
NewerOlder