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
/** | |
* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>. | |
* Author: Drew Diller | |
* Email: [email protected] | |
* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ | |
* Version: 0.0.8a | |
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license | |
* | |
* Example usage: | |
* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector |
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
/* | |
Copied from: https://www.google.com/cse/brand?form=cse-search-box&lang=en | |
and patched to be HTTPS-friendly. | |
Bug: http://www.google.com/support/forum/p/customsearch/thread?tid=1bf2598a30df483f&hl=en | |
*/ | |
(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
diff --git a/del-chrome.css b/del-chrome.css | |
index 9e058d1..c86db5f 100644 | |
--- a/del-chrome.css | |
+++ b/del-chrome.css | |
@@ -25,6 +25,7 @@ strong {font-weight:bold} | |
em {font-style:italic} | |
/* @end */ | |
+#signedInAs a {font-weight:900;font-size:1.1em;text-decoration:underline} | |
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: (function () { | |
function loadScript(src, callback) { | |
var s = document.createElement("script"), | |
onEvent = ('onreadystatechange' in s) ? 'onreadystatechange' : 'onload'; | |
s[onEvent] = function () { | |
if (("loaded,complete").indexOf(this.readyState || "loaded") > -1) { | |
s[onEvent] = null; | |
if (callback) { | |
callback(); | |
} |
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 | |
/** | |
* Rot35 for URLs. To avoid increasing size during urlencode(), commonly encoded | |
* chars are mapped to more rarely used chars (end of the uppercase alpha). | |
* | |
* @param string $url | |
* @return string | |
*/ | |
function rotUrl($url) { |
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 | |
function fetchUrl($url) { | |
$allowUrlFopen = preg_match('/1|yes|on|true/i', ini_get('allow_url_fopen')); | |
if ($allowUrlFopen) { | |
return file_get_contents($url); | |
} elseif (function_exists('curl_init')) { | |
$c = curl_init($url); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); | |
$contents = curl_exec($c); | |
curl_close($c); |
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
diff --git a/lib/facebook_connect.php b/lib/facebook_connect.php | |
index 20c54ae..9afb18a 100755 | |
--- a/lib/facebook_connect.php | |
+++ b/lib/facebook_connect.php | |
@@ -153,7 +153,7 @@ function facebook_connect_login() | |
'description' => $site->name . ' is the social network for connecting people.' | |
); | |
- $status = $facebook->api('/me/feed', 'POST', $params); | |
+ //$status = $facebook->api('/me/feed', 'POST', $params); |
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 (w, d) { | |
var a, k = 'protocol hostname host pathname port search hash href'.split(' '); | |
w.UFCOE = w.UFCOE || {}; | |
/** | |
* Parse a URI, returning an object similar to Location | |
* | |
* Usage: UFCOE.parseUri("hello?search#hash").search -> "?search" | |
* | |
* @param String url | |
* @return Object |
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 | |
/** | |
* Fetch SSL cert data from a host and (crudely) validate it based on time/domain | |
* | |
* @param string $host | |
* @param int $timeout in seconds | |
* @param int $port | |
* @param array $sslStreamContextOptions | |
* @param int $socketClientErrNum |
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 | |
/** | |
* Report and delete duplicate enrol plugins from courses, which arise by | |
* Moodle bug http://tracker.moodle.org/browse/MDL-29414 | |
*/ | |
class Moodle_EnrolDupeRemover { | |
/** | |
* @var Zend_Db_Adapter_Abstract |
OlderNewer