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 | |
/* | |
Plugin Name: IET WP_Query | |
Plugin URI: https://github.com/IET-OU/oer-evidence-hub-org | |
Description: Shortcode [wp_query] wrapper around WordPress core function: `wp_query` [LACE] | |
Author: Nick Freear [@IET-OU] | |
Author URI: https://github.com/IET-OU | |
Version: 0.1 | |
*/ |
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
import urllib2 | |
import json | |
import re | |
response = urllib2.urlopen('http://api.embed.ly/v1/api/services/python') | |
services = json.loads(response.read()) | |
url = 'http://soundcloud.com/dociler/dociler-futuricity' | |
for service in services: | |
for regex in service['regex']: | |
if re.match(regex, url): | |
print "Matched %s to %s" % (url, service['displayname']) |
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 | |
function wp_query_debug() { | |
global $wp, $wp_query; | |
echo '<pre>'; | |
var_dump($wp->matched_rule); | |
print_r($wp_query); | |
echo '</pre>'; | |
} |
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
#!/usr/bin/env ruby | |
# | |
# Originally written by http://redartisan.com/tags/csv | |
# Added and minor changes by Gavin Laking | |
# | |
# "id","name","mime_type","extensions","icon_url" | |
# "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif" | |
# "2","image/tiff","image/tiff","|tiff|tif|","/images/icon/blank.png" | |
# | |
# if you want to remove the id: "number" line from the resulting YAML file |
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/WebServers/usr/local/php5/php | |
<?php echo 123 ?> |
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
#!/bin/bash | |
# +--------------------------------------------------------------------------+ | |
# | OU Annotate Staging Rebuild Script | | |
# | Written by Sam de Freyssinet <sam@def.reyssi.net> | | |
# +--------------------------------------------------------------------------+ | |
# | Permission to use, copy, modify, and/or distribute this software for any | | |
# | purpose with or without fee is hereby granted, provided that the above | | |
# | copyright notice and this permission notice appear in all copies. | | |
# +--------------------------------------------------------------------------+ |
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 | |
/** | |
* @file drupal_uid_header.module | |
* @author António P. P. Almeida <appa@perusio.net> | |
* @date Tue Dec 27 2011 | |
* | |
* @brief Sets an HTTP header with the UID (Drupal 6). | |
* | |
*/ |
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
<script> | |
/*! | |
* Javascript-iframe (Drupal) SOPA-blackout solution. | |
* | |
* authors: Jacob Singh, Zachstronaut, Nick Freear, 2012-01-17. | |
* help: http://jacobsingh.name/content/adding-sopa-blackout-drupal-gardens | |
* via: http://drupal.org/planet | |
*/ | |
(function blackout(){ | |
var a = new Date, |
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 | |
<?php | |
ini_set( 'display_errors', 1); | |
error_reporting( E_ALL ); | |
//header( 'Content-Type: text/plain'); | |
function my_test() { |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Thiemo Mättig <http://maettig.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
OlderNewer