I hereby claim:
- I am mattread on github.
- I am mattread (https://keybase.io/mattread) on keybase.
- I have a public key whose fingerprint is B79D 293B 4732 9678 DABC 4C2B 9B8E 27DC 9A5F 62E1
To claim this, I am signing this object:
var easterEggKeys = new Array('j','i','b','b','y'); | |
var easterEggCurrent = 0; | |
$(window).keydown(function(e){ | |
var key = String.fromCharCode(e.keyCode).toLowerCase(); | |
if (easterEggKeys[easterEggCurrent].toLowerCase() == key) { | |
easterEggCurrent++; | |
if (easterEggCurrent >= easterEggKeys.length) { | |
$('body').append('<embed src="http://mattread.com/examples/midi/sinfon1.mid" autostart="true" hidden="true" type="audio/midi">'); | |
for (var i = 0; i < document.styleSheets.length; i++) { document.styleSheets[i].disabled = true; } |
#!/usr/bin/env php | |
<?php | |
$type = trim(shell_exec('zenity --list --radiolist --column=Pick --column=Type TRUE Plugin FALSE Theme FALSE Other')); | |
switch ($type) { | |
case 'Plugin': | |
$repo = trim(shell_exec('zenity --entry --text="Repo Name"')); | |
$git = shell_exec("cd /home/matt/Projects/plugins; git clone git@github.com:habari-extras/{$repo}.git"); | |
break; | |
case 'Theme': |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# | |
# Paste a file directly to gist. | |
# | |
# * Put this file into your home binary dir: ~/bin/ | |
# * Make it executable: chmod +x | |
# | |
# | |
# Required Software: | |
# ------------------------- |
<?php | |
class MrT extends Plugin | |
{ | |
public function action_atom_get_collection( $xml, $params, $handler_vars ) | |
{ | |
if ( Controller::get_action() == 'tag_collection' ) { | |
$xml->title = _t( 'Posts Tagged %s', array( htmlentities(Controller::get_var('tag')) ), 'MrT' ); | |
} | |
} |
<?php | |
action_atom_get_collection { | |
function b( $xml, $params, $handler_vars ){ | |
$xml->title = 'FFFFFFFFFFFFFFFFFF'; | |
} | |
} | |
$a = new AtomHandler; $a->get_collection(); |
<?php | |
public function filter_comment_content_out($content, $comment) { | |
if (!preg_match_all('#(@[0-9a-zA-Z_]+)\b#i', $content, $matches, PREG_SET_ORDER)) { | |
return $content; | |
} | |
$id = null; | |
foreach ( $matches as $m ) { | |
foreach($comment->post->comments as $com) { |
diff --git a/twitterlitte.plugin.php b/twitterlitte.plugin.php | |
index 8da3d97..900738f 100644 | |
--- a/twitterlitte.plugin.php | |
+++ b/twitterlitte.plugin.php | |
@@ -63,7 +63,7 @@ class TwitterLitte extends Plugin | |
), '', '&' ); | |
} | |
else { | |
- $url = 'http://twitter.com/statuses/user_timeline/' . $block->username . '.json'; | |
+ $url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=' . $block->username; |
Apple-PubSub | |
AppleSyndication | |
Ask Jeeves/Teoma | |
Baiduspider | |
bingbot | |
Bloglines | |
BuzzTracker | |
Charlotte | |
DoCoMo | |
Exabot |
#! /usr/bin/env php | |
<?php | |
/** | |
* Here we fake a request. set these values appropriate to your | |
* Habari install. | |
* | |
* HABARI_PATH is the full file path to the habari install. | |
* HABARI_SERVER_NAME is the name (domain) of your habari install. | |
* HABARI_REQUEST_URI is the URL path to your Habari install. "/" for root. |