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
http://wordpress.org/extend/plugins/multi-twitter-widget/ | |
I needed to display the twitter stream for several accounts, as well as display an account with the results of a search query. This plugin seemed to do the trick, but there were a couple of bugs, so I tweaked it a bit, the code is below. My patch includes: | |
<ul> | |
<li>Improvement to the `$tweet preg_replace` to add proper links for account tweets</li> | |
<li>A "multi-twitter" css class to `<ul>` for customized styling</li> | |
<li>Renamed indeces and loop used in "// Split array and output results" to avoid confusion / naming conflict. Also improved formatting by making screenname and search result tweets consistent in display. | |
<li>Fixed display of human_time for search results</li> | |
</ul> |
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
[Pyspread save file version] | |
0.1 | |
[shape] | |
1000 100 3 | |
[grid] | |
7 5 0 abc_to_the_abc | |
13 11 0 abc_to_the_abc | |
11 2 0 two = skindata[245000] | |
9 2 0 skindata[1] | |
10 3 0 one * two |
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 | |
defined('WYSIJA') or die('Restricted access'); | |
include_once( ABSPATH . "wp-includes/pluggable.php"); | |
global $current_user; | |
class WYSIJA_control_front_email extends WYSIJA_control_front{ | |
var $model='email'; | |
var $view='email'; |
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
/** | |
* Attempts to solve a problem with IE7 and Hum theme | |
* described here: http://wordpress.org/support/topic/ie7 | |
*/ | |
#site-title a { | |
font-size: 3.6em; | |
} | |
#main { |
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 | |
# Script to download, configure, and install Ubuntu as a Xen domU | |
# Uses existing LVM Volume Group. Must be run as root/sudo. | |
# Based on instructions at https://help.ubuntu.com/community/Xen | |
# User Configurable Settings | |
NAME=ubuntu # name of Domain to create | |
VG=/dev/domU # existing volume group in which to create a logical volume | |
LV=$NAME # name of the new logical volume to create | |
LV_SIZE=5G # size of the new logical volume |
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
Found this very interesting talk by Bryan Cantrill https://en.wikipedia.org/wiki/Bryan_Cantrill on Corporate Open Source Anti-Patterns: Doing It Wrong (youtube https://www.youtube.com/watch?v=NhgXQFk9noI & slides http://www.slideshare.net/bcantrill/corporate-open-source-antipatterns). His slides are verbose, a little rough, and hard to understand, so I took some notes and made a summary, trying to simplify: | |
Side-note - He pushes a few debatable viewpoints (common flamebait such as GPL vs other licenses), so take these phrasings with a grain of salt (wink) | |
Summary | |
Inverted Thinking: | |
Misconception that the benefits of open source are assumed to be primary ($). In actuality, benefits are typically secondary, tertiary, and one should consider the cost of sharing is pretty much $0. | |
Wishful Thinking: |
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
<p><!--[if lte IE 8]><span style="filter: FlipH; -ms-filter: "FlipH"; display: inline-block;"><![endif]--><span style="-moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); display: inline-block;">©</span><!--[if lte IE 8]></span><![endif]--> CopyLeft <a href="$YOUR_URL"><abbr>$YOUR_NAME</abbr></a>, All Wrongs Reversed, <script type="text/javascript">var d = new Date(); var year = d.getFullYear(); document.write(year);</script>.</p> |
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 | |
require_once('../wp-blog-header.php'); | |
$blog_list = get_blog_list( 0, 'all' ); | |
foreach ($blog_list AS $blog) { | |
switch_to_blog($blog['blog_id']); |
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 | |
if ( ! function_exists( 'add_key_to_the_permalink' ) ) : | |
/** | |
* Try to automate using the special key by adding to permalink | |
*/ | |
function add_key_to_the_permalink($permalink_url) { | |
global $post; | |
if ($post->post_status == 'publish' && !empty($post->post_password)) : | |
$permalink_url = ppt_make_permalink($post); |
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
name,email,username,handle,membership rate | |
Matt Senate,[email protected],mattsenate,$10/week | |
Marina Kukso,[email protected],marina,mk30,$?/week | |
Marc Juul,[email protected],juul,$?/month | |
Jenny Ryan,[email protected],jenny,tunabananas,$?/week |