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 should have no spaces and be only alpha characters. | |
The project name will be used to generate your .zip archive and .bar file | |
--> | |
<project name="Webworks App" default="builddeploy" basedir="."> | |
<description> | |
Build file for a Blackberry Webworks API App | |
</description> |
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
<target name="wordpress.upgrade"> | |
<property name="tmp" value="/tmp" /> | |
<property name="src" value="${tmp}/wordpress" /> | |
<delete dir="${src}" includeemptydirs="true" failonerror="true" /> | |
<exec dir="${tmp}" command="curl -s http://wordpress.org/latest.tar.gz | tar -xz" /> | |
<delete dir="wp-admin" includeemptydirs="true" failonerror="true" /> | |
<delete dir="wp-includes" includeemptydirs="true" failonerror="true" /> | |
<move file="wp-config.php" tofile="wp-config.php.bak" overwrite="true"/> |
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
<?php | |
/** | |
* 2) Unique characters. Determine if a string contains all unique characters without using an additional data structure or php | |
* functions (ie array_unique). For example, “sfg25oax” returns true, but “asg0msr” returns false. | |
* | |
* I would have preferred to use an array that would have stored a boolean flag at the index of the ASCII value of each | |
* character, as that would have been a much more efficient algorithm O(n) as opposed to possibly O(n*n), but that seems to violate | |
* the requirement of not using data structures. | |
* | |
* There is a simple test function that will test for the two cases provided, along with testing for the exceptions. |
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
$(document).ready(function(){ | |
$('#header #main_menu li').hover(function(){ | |
$(this).find("a .button").animate({top:'30px'},"50", function(){ | |
$(this).parent().parent().find(".submenu").show().animate({right:'110px'},{queue:false,duration:100}); | |
}); | |
}, function(){ | |
$(this).find(".submenu").animate({right:'0px'},"50", function(){ | |
$(this).hide(); | |
$(this).parent().find("a .button").animate({top:'0px'},"50"); |
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
/** | |
* URL Patterns to look for | |
* This function is used to fix the document root for sites that are using | |
* one of my VirtualDocumentRoot site entries | |
* This is to fix a bug in Apache's mod_vhost_alias not setting up the correct | |
* $_SERVER['DOCUMENT_ROOT'] env variable. | |
* | |
* trunk.{directory}.local - maps to /Users/tjboudreaux/Sites/{directory}/trunk | |
* branch.{branch-name}.{directory}.local - maps to /Users/tjboudreaux/Sites/{directory}/branches/{branch-name} | |
* |
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
<VirtualHost *:80> | |
UseCanonicalName off | |
ServerAlias branch.*.local | |
VirtualDocumentRoot /Users/tjboudreaux/Sites/%3.0.%4.0/branches/%2.0 | |
<Directory /> | |
Order allow,deny | |
Allow from all | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |
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
# Rewrite sitemap.xml to the appropriate action | |
RewriteRule ^sitemap.xml$ /mod_site/public/google-sitemap | |
# Send all other requests to the Zend Framework dispatch script | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule .* /index.php |
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
<script type="text/javascript"> | |
//you can wrap this in a click function or some other event. | |
$("#content_to_hide").hide(); | |
</script> | |
<!-- content you don't want to hide in css of the wrapper, | |
set height,width,& bg on this element --> | |
<div id="content_wrapper"> | |
<!-- content you want to hide --> |
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
<div class="register-videos"><span class="vvqbox vvqquicktime" style="width:595px;height:300px;"><script type="text/javascript">var myQTObject = new QTObject("http://fitfactor.hemophiliafed.org/wp-content/uploads/videos/FitFactor2011-survey-intro/FitFactor2011-survey-intro.mov", "vvq-26-quicktime-1", "595", "300"); myQTObject.addParam("autoplay", "false"); myQTObject.addParam("controller", "true"); myQTObject.addParam("scale", "aspect"); myQTObject.write();</script><embed type="video/quicktime" src="http://fitfactor.hemophiliafed.org/wp-content/uploads/videos/FitFactor2011-survey-intro/FitFactor2011-survey-intro.mov" width="595" height="300" id="vvq-26-quicktime-1" autoplay="false" controller="true" scale="aspect"></span></div> |
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
@implementation UINavigationBar (CustomImage) | |
- (void)drawRect:(CGRect)rect { | |
UIImage *image = [UIImage imageNamed: @"NavigationBar.png"]; | |
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; | |
} | |
@end |