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
//AppController | |
<?php | |
class AppController extends Controller{ | |
var $name = 'App'; | |
var $components = array('Auth'); | |
var $helpers = array('Html','Form','Javascript','Vantage'); |
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
//signup.ctp | |
<h2>Signup</h2> | |
<?php $session->flash(); ?> | |
<?php | |
e($form->create('Member', array('action' => 'signup'))); ?> | |
<h3>Login Information</h3> |
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
<script type="text/javascript" src="inc/js/frameworks/mootools-1.2.4-core-nc.js"></script> | |
<script type="text/javascript" src="inc/js/frameworks/mootools-1.2.4.2-more.js"></script> | |
<script type="text/javascript" src="inc/js/squeezebox/assets/SqueezeBox.css"></script> | |
<script type="text/javascript" src="inc/js/squeezebox/SqueezeBox.js"></script> | |
<script type="text/javascript"> | |
window.addEvent('domready', function() { | |
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
/* -- | |
DiggDugg Class | |
Written by: Matt Vickers | |
Website: EnvexLabs.com | |
Date: November 28, 2009 | |
DIGG, DIGG IT, DUGG, DIGG THIS, Digg graphics, logos, designs, page headers, button icons, scripts, and other service names are the trademarks of Digg Inc. | |
-- */ |
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
def scare_factor | |
return str(@scare_factor / 1000) + "Fg" | |
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
chars = [*" ".."~"] | |
charlist = nil | |
chars.each do |char| | |
charlist << "#{char}," | |
end | |
puts charlist |
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 | |
$from_the_president = get_posts('post_type=page&include=17'); | |
$from_the_president = $from_the_president[0]; | |
?> | |
<div class="entry"> | |
<h3><?php echo $from_the_president->post_title; ?></h3> | |
<?php echo apply_filters('the_content',$from_the_president->post_content); ?> |
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
//Drop down | |
$('ul#nav li').mouseenter(function(){$(this).find("ul").stop().slideDown('fast');}); | |
$('ul#nav li').mouseleave(function(){$(this).find("ul").stop().slideUp('fast');}); |
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
/* | |
Category Lister | |
Stolen from plugins/wp-e-commerce/wpsc-includes/category.functions.php - show_cats_brands() | |
*/ | |
function show_categories() { | |
global $wpdb; |
OlderNewer