My Recent Pastes (35 and counting)
All Pasties (over 35 and counting)
Below are summaries of the 15 most recent pasties by Sam DeVore.
February 17, 2007
5:19PM EDT
by Sam DeVore
View more (23 lines)
1 2 3 4 5 |
<key>ProcessOptions</key>
<array>
<dict>
<key>ColorMapFolderName</key>
<string>ColorMap</string>
|
February 17, 2007
2:13PM EDT
by Sam DeVore
View more (39 lines)
1 2 3 4 5 |
<?php /* default.thtml design for CakePHP (http://www.cakephp.org) ported from http://contenteddesigns.com/ (open source template) ported by Shunro Dozono (dozono :@nospam@: gmail.com) |
February 17, 2007
1:37PM EDT
by Sam DeVore
View more (31 lines)
1 2 3 4 5 |
<?php foreach ($data as $row=>$content): ?>
<?php $c = (($row % 2) == 0) ? 'odd' : 'even';?>
<tr class="<?php echo $c?>" <?= (isset($hilite_id) and $hilite_id==$content['Content']['id'])?' id=\'highlight_item\'':''?>>
<td>
<?php echo $content['Content']['id'] ?>
|
February 08, 2007
4:16PM EDT
by Sam DeVore
View more (18 lines)
1 2 3 4 5 |
$xml = '<?xml version="1.0" encoding="UTF-8" ?>'.$options;
$folder = opendir("images");
while($file = readdir($folder)) {
if ($file[0] != "." && $file[0] != ".." ) {
$files[$file] = filemtime("images/$file");
|
February 05, 2007
9:19AM EDT
by Sam DeVore
View more (10 lines)
1 2 3 4 5 |
}
else {
$User['password'] = $OldStudent['OldStudent']['passCode'];
}
$User['crypt_pass'] = md5($OldStudent['OldStudent']['passCode']);
|
November 26, 2006
8:43PM EDT
by Sam DeVore
View more (332 lines)
1 2 3 4 5 |
DROP TABLE IF EXISTS `person`; DROP TABLE IF EXISTS `parents`; DROP TABLE IF EXISTS `old_students`; DROP TABLE IF EXISTS `phones`; DROP TABLE IF EXISTS `medicals`; |
November 26, 2006
7:44PM EDT
by Sam DeVore
View more (306 lines)
1 2 3 4 5 |
DROP TABLE IF EXISTS `person`; DROP TABLE IF EXISTS `parents`; DROP TABLE IF EXISTS `old_students`; DROP TABLE IF EXISTS `phones`; DROP TABLE IF EXISTS `medicals`; |
November 14, 2006
1:01PM EDT
by Sam DeVore
View more (15 lines)
1 2 3 4 5 |
- (void)setProperties:(NSMutableDictionary *)newProperties
{
if (properties != newProperties) {
[properties release];
properties = [newProperties copy];
|
November 09, 2006
12:23AM EDT
by Sam DeVore
1 2 3 4 5 |
<?php e($rss->items($application['Release'], array($appCast, 'applicationTransformMethod'))); ?> |
November 09, 2006
12:23AM EDT
by Sam DeVore
1 2 3 4 5 |
<?php e($rss->items($application['Release'], array($appCast, 'applicationTransformMethod'))); ?> |
August 05, 2006
5:49PM EDT
by Sam DeVore
View more (26 lines)
1 2 3 4 5 |
/**
* debug function with a nice fade effect to maintain layout
*
* The usage is very simple:
* $tenmincake->debug($var,'Toggle Debug');
|
July 26, 2006
10:54PM EDT
by Sam DeVore
View more (31 lines)
1 2 3 4 5 |
class Job extends AppModel {
var $name = 'Job';
var $belongsTo = array(
'Owner' => array('className'=>'Client','foreignKey'=>'owner_id'),
'Photographer' => array('className'=>'Client','foreignKey'=>'photographer_id'),
|
July 25, 2006
5:35PM EDT
by Sam DeVore
View more (310 lines)
1 2 3 4 5 |
DROP TABLE IF EXISTS `person`; DROP TABLE IF EXISTS `parents`; DROP TABLE IF EXISTS `old_students`; DROP TABLE IF EXISTS `phones`; DROP TABLE IF EXISTS `medicals`; |
July 25, 2006
1:20AM EDT
by Sam DeVore
View more (31 lines)
1 2 3 4 5 |
#!/usr/local/php/bin/php
<?php
function growl($s, $flEcho = true) {
if (trim($s) == '') return;
if ($flEcho) {
|
July 14, 2006
7:34PM EDT
by Sam DeVore
View more (16 lines)
1 2 3 4 5 |
doesn't fold
if () {
# code
} else {
|
Pastie