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
/* | |
Creates an edit box to replace any element, along with a callback | |
function to handle the return value. Call this in real time, not | |
on page load: for example, call it from the onclick of a link or | |
dbclick of a paragraph: | |
$('#editable-thing').bind('click', function(){ | |
$(this).edit_in_place(function(editable_thing, value){alert("You typed "+value)}); | |
}); | |
How it works: |
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
<!-- Sample Content to Plugin to Template --> | |
<h1>CSS Basic Elements</h1> | |
<p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p> | |
<hr /> | |
<h1 id="headings">Headings</h1> | |
<h1>Heading 1</h1> |
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
.your-class { | |
font-size: 12px; | |
margin: 0px; | |
text-align: left; | |
border-collapse: separate; | |
border-bottom:none; | |
} | |
.your-class th { | |
font-size: 13px; | |
font-weight: bold; |
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 class Extensions | |
{ | |
/// <summary> | |
/// Converts an object to a client side Json Object | |
/// </summary> | |
/// <param name="obj"></param> | |
/// <returns></returns> | |
public static string ToJson(this object obj) | |
{ |
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
i can login to comcast.net it won't let me pay my bill | |
- wait 15 minutes on the phone | |
- get charged $4 to pay over the phone | |
- I explain the situation | |
- sorry we can't remove the $4 charge | |
- don't offer to fix my online account issue | |
- proceed to charge me the fee and bill amount | |
How does that sound? |
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
i can login to comcast.net it won't let me pay my bill | |
- wait 15 minutes on the phone | |
- get charged $4 to pay over the phone | |
- I explain the situation | |
- sorry we can't remove the $4 charge | |
- don't offer to fix my online account issue | |
- proceed to charge me the fee and bill amount | |
How does that sound? |
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
/* | |
* Binary Ajax 0.1.7 | |
* Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
* Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
*/ | |
var BinaryFile = function(strData, iDataOffset, iDataLength) { | |
var data = strData; | |
var dataOffset = iDataOffset || 0; |
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
/* | |
* Javascript EXIF Reader 0.1.4 | |
* Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
* Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
*/ | |
var EXIF = {}; | |
(function() { |
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
$engines = array( | |
'Google' => array( | |
'host_pattern_sql' => 'http://www.google.%', | |
'host_pattern_preg' => '!google(\\.[a-z]+)+$!', | |
'path_pattern' => '!^/(search|url)!', | |
'query_variable' => 'q', | |
), | |
'Yahoo!' => array( | |
'host_pattern_sql' => 'http://%search.yahoo.com/%', | |
'host_pattern_preg' => '!([a-z]+\\.)*search.yahoo.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
<?php | |
/* | |
Plugin Name: Block Bad Queries | |
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/ | |
Description: Protect WordPress Against Malicious URL Requests | |
Author URI: http://perishablepress.com/ | |
Author: Perishable Press | |
Version: 1.0 | |
*/ | |
global $user_ID; if($user_ID) { |
OlderNewer