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
au! BufWritePost .vimrc source % " automatically reload when editing .vimrc | |
" 4 spaces for tabs and automatically inherit previous line's indentation. | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" | |
extension-element-prefixes="date"> | |
<!-- | |
Description: | |
This is a date formatting utility. The named template "format-date" takes 2 parameters: | |
1. date - [required] takes an ISO date (2005-12-01T13:45:00) |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Name: RSS feed date format to Symphony date format | |
Version: 1.0 | |
Author: Brian Zerangue <[email protected]> | |
URL: http://symphony21.com/downloads/xslt/file/20457/ | |
Description: | |
Convert RSS feed date format to Symphony date format | |
Convert RFC 2822 timestamp format to ISO date format (Symphony CMS date format) |
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 linkify($text) | |
{ | |
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', | |
'<a href="\\1">\\1</a>', $text); | |
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', | |
'\\1<a href="http://\\2">\\2</a>', $text); | |
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', | |
'<a href="mailto:\\1">\\1</a>', $text); |
NewerOlder