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
/** | |
* 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) { |
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
/** | |
* Unsorted stuff | |
* Copyright (c) 2011, marlun78 | |
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
*/ | |
(function (NS) { | |
if (!NS) { NS = window; } | |
// isNumber |
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
/** | |
* 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 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 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 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
/** | |
* Make Placeholders jQuery plugin, version 1.0 | |
* Copyright (c) 2012, marlun78 | |
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
* | |
* === Description === | |
* | |
* Use as a fallback for HTML5s placeholder attribute when not supported by the browser. It does this by creating a | |
* placeholder element that has to be positioned over the input. This plugin does not position it for you, but it | |
* makes it very easy for you to do so. |
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
/** | |
* Type Extras, version 1.0 | |
* Copyright (c) 2012, marlun78 | |
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
*/ | |
(function (ns) { | |
// Returns an given element's internal [[Class]] property as a lower-case string | |
var _toString = Object.prototype.toString, | |
typeOf = function (object) { |
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
/*! | |
* Array Extras, version 1.0 | |
* Copyright (c) 2012, marlun78 | |
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
* | |
* Depends on type.extras.js | |
*/ | |
(function(ns){ | |
// Returns the first index at which a given type can be found in the array, or -1 if it is not present. |
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
/*! | |
Underscore.js templates as a standalone implementation. | |
JavaScript micro-templating, similar to John Resig's implementation. | |
Underscore templates documentation: http://documentcloud.github.com/underscore/#template | |
Modifyed by marlun78 | |
*/ | |
(function () { | |
'use strict'; |
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
/** | |
* Default Arguments | |
* Copyright (c) 2012, marlun78 | |
* MIT License, https://gist.github.com/marlun78/bd0800cf5e8053ba9f83 | |
* | |
* Set default arguments to a function | |
* @param {function} fn - The function to decorate | |
* @param {*} [args...] - Any default arguments | |
* @returns {function} - The new decorated function | |
* |
OlderNewer