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
/* | |
* Auto Expanding Text Area (1.2.2) | |
* by Chrys Bader (www.chrysbader.com) | |
* [email protected] | |
* | |
* Special thanks to: | |
* Jake Chapa - [email protected] | |
* John Resig - [email protected] | |
* | |
* Copyright (c) 2008 Chrys Bader (www.chrysbader.com) |
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
/*** | |
The serializeHash method can be used to submit forms with an ajax request. | |
The result of serializeHash can be used as the 'data' option for jQuery's | |
built-in ajax methods and functions. | |
***/ | |
(function($){ | |
$.fn.serializeHash = function() { | |
var hash = {}; | |
/*** | |
Use serializeArray() to get an array of JSON objects for |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>dynamicMultiSelect</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> | |
<style> | |
button { | |
display: block; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>radioCheckboxHybrid</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<style type="text/css"> | |
label{display:block;} | |
</style> | |
</head> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>jQuery.fn.disabled()</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> | |
<style> | |
[disabled] { | |
border: 1px dashed blue; outline: 1px dashed red; background-color: green; |
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
/*** | |
The matches function, similar to String.match(), | |
returns an array of sub-groups captured by the given RegExp. | |
***/ | |
function matches(string, regexp, position, result) { | |
position = position || 0; | |
result = result || []; | |
var match = string.slice(position).match(regexp); |
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
/* | |
* filterJSON v.9.2 - http://www.jeffrey-way.com | |
* Last Updated: January 29, 2009 | |
* When you attach a JSON file, it will parse it with getJSON, and then allow you to filter through and display the items on the page according to | |
* a specified limit, delay, transition, etc. | |
* Developed by Jeffrey Way | |
* http://jeffrey-way.com/filterjson-a-jquery-plugin/ | |
* [email protected] |
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
REM ######################################################################## | |
REM # 2010-07-03T15:52Z | |
REM # brianpeiris | |
REM # Andrew Lipsky's original code. From http://bit.ly/aPDYvN | |
REM # | |
REM # 2010-07-03T15:54Z | |
REM # brianpeiris | |
REM # Removed empty lines | |
REM ######################################################################## |
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
function list-windows () { | |
ps | ?{$_.mainwindowtitle} | select processname, mainwindowtitle | ft -a | |
} | |
set-alias lw list-windows | |
function levdis ($strA, $strB) { | |
$n = $strA.Length; | |
$m = $strB.Length; | |
$d = @(); |
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
param ([string] $Path = (Get-Location)) | |
function Get-MD5 ( | |
[System.IO.FileInfo] | |
$file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]') | |
) { | |
# This Get-MD5 function sourced from: | |
# http://blogs.msdn.com/powershell/archive/2006/04/25/583225.aspx | |
$stream = $null | |
$hashAlgorithm = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider |
OlderNewer