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
/* | |
Version: 1.1 | |
Developer: Rasmus Schultz <http://mindplay.dk> | |
License: GPL v3 <http://www.gnu.org/licenses/gpl-3.0-standalone.html> | |
Gist: <https://gist.github.com/724347> | |
Removing this notice from the source code would be bad karma. | |
*/ |
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
/*! | |
* jQuery Scrollbar Width v1.0 | |
* | |
* Copyright 2011, Rasmus Schultz | |
* Licensed under LGPL v3.0 | |
* http://www.gnu.org/licenses/lgpl-3.0.txt | |
*/ | |
(function($){ |
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
/** | |
* http://plugins.jquery.com/project/swap-jumble | |
*/ | |
(function($){ | |
$.fn.swap = function(b){ | |
b = $(b)[0]; | |
var a = this[0]; | |
var t = a.parentNode.insertBefore(document.createTextNode(''), a); | |
b.parentNode.insertBefore(a, b); |
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
/* | |
bugfix for "DocsByReflection.cs" | |
http://jimblackler.net/blog/?p=49 | |
Replace broken XMLFromName() method with the following fixed method: | |
*/ |
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
// Extension for System.Type enabling direct access to <summary> contents. | |
// | |
// This extension uses DocsByReflection by Jim Blackler: | |
// | |
// http://jimblackler.net/blog/?p=49 | |
// | |
// (this just does the summary for types, but it should be easy to extend this | |
// concept to include other members and other tags...) | |
static class DocsByReflectionExtensions |
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
<?php | |
/** | |
* Proportional word-wrap (approximation) | |
* | |
* Attempts to work as a drop-in replacement for wordwrap() | |
* | |
* Based on http://www.php.net/manual/en/function.wordwrap.php#82580 | |
*/ | |
function pwordwrap($str, $width=75, $break="\n") |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace Mindplay.Extensions | |
{ | |
/// <summary> | |
/// This extension provides an alternative to <see cref="String.Format"/> allowing the | |
/// use of an <see cref="IDictionary{String,Object}"/> to replace named (rather than |
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
<?php | |
class SecurityContext | |
{ | |
private $_readonly = false; | |
private $_context = array(); | |
public static $actions = array( | |
); |
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
/* | |
This code assumes an IEntity interface that identifies your persistent types. | |
*/ | |
/// <summary> | |
/// This static class provides common extension methods for <see cref="IEntity"/> types. | |
/// </summary> | |
public static class EntityExtensions |
OlderNewer