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 | |
/* | |
Template Name: Redirect To First Child | |
*/ | |
if (have_posts()) { | |
while (have_posts()) { | |
the_post(); | |
$pagekids = get_pages("child_of=".$post->ID."&sort_column=menu_order"); | |
$firstchild = $pagekids[0]; | |
wp_redirect(get_permalink($firstchild->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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>cufón / examples / text-shadow</title> | |
<script src="../js/cufon.js" type="text/javascript"></script> |
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
class Foo < Tableless | |
column :bar, :string | |
validates_presence_of :bar | |
end |
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
--- | |
:dialog_thumb: c106x106 | |
:grid: c135x135 | |
:preview: c96x96 | |
:small: 110x110> | |
:medium: 225x255> | |
:large: 450x450> |
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
paul@salt:~$ dpkg --get-selections | grep mysql | |
libdbd-mysql-perl install | |
libmysql-ruby1.8 install | |
libmysqlclient15-dev install | |
libmysqlclient15off install | |
mysql-client install | |
mysql-client-5.0 install | |
mysql-common install | |
mysql-server install | |
mysql-server-5.0 install |
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
+------------+----------+----------------------------------------------------------------+ | |
| Engine | Support | Comment | | |
+------------+----------+----------------------------------------------------------------+ | |
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | | |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | | |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys | | |
| BerkeleyDB | NO | Supports transactions and page-level locking | | |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | | |
| EXAMPLE | NO | Example storage engine | | |
| ARCHIVE | YES | Archive storage engine | |
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/ruby | |
require 'osx/foundation' | |
OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework' | |
include OSX | |
$d=File.basename Dir.pwd | |
Dir.chdir '..' | |
fsevents_cb = proc do |stream, ctx, numEvents, paths, marks, eventIDs| | |
system "rsync -vcir ~/projects/karrupa/neuchatel/site/sites/all/* [email protected]:/nfs/c06/h01/mnt/88354/domains/neuchatel.karrupa.com/html/sites/all/" |
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
How are you doing, today? |
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
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} |
OlderNewer