Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
#
# This file, gist, is generated code.
# Please DO NOT EDIT or send patches for it.
#
# Please take a look at the source from
# http://github.com/defunkt/gist
# and submit patches against the individual files
# that build gist.
#
<?php
require_once '../classes/user.php';
include 'header.php';
?>
<table width="100%">
<tr>
<td colspan="5">
<?php
if (isset($_COOKIE['tblgn']) && md5($_COOKIE['tblgn'].SCT_STR) == $_COOKIE['tbsct']) {
$usr = new clsUser();
<?php
require_once '../classes/user.php';
$usr = new clsUser();
if (isset($_POST['hdnReg']) && $_POST['hdnReg'] == 1) {
//[todo] need to check for duplicate usernames
$usr->userName = $_POST['txtUName'];
$usr->set_password($_POST['pwdPswd']);
$usr->firstName = $_POST['txtFnme'];
$usr->lastName = $_POST['txtLnme'];
#!/usr/bin/env ruby
#
# This file, gist, is generated code.
# Please DO NOT EDIT or send patches for it.
#
# Please take a look at the source from
# http://github.com/defunkt/gist
# and submit patches against the individual files
# that build gist.
#
#!/bin/bash
NUMFILES=`locatemp3 | grep "Full Albums" | wc -l`
WHICH=$((RANDOM % $NUMFILES))
WHAT=`locatemp3 | grep "Full Albums" | sed -n "${WHICH}p"`
WHERE=`dirname "$WHAT"`
echo Queueing $WHERE
xmms2 stop;xmms2 clear
xmms2 radd "$WHERE"
xmms2 play
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
name:
type: string(155)
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
name:
type: string(155)
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
name:
type: string(155)
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
start_date:
type: date
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
start_date:
type: date