$ join /bride /groom | tee | yesprintf("I cordially accept your invitation.");if (true) return true;$ sudo cat '<guest><firstname>foo</firstname><lastname>bar</lastname></guest>' >> ~/wedding_stuff/guests.xmlReplace foo with your first name and bar with your last.
JOIN in there, somewhere.# usermod -G weddingattendees shmegegge<script type="text/matrimonyscript">
var d = new Date();
if (d.getFullYear() === 2010 && d.getMonth() === 0 && d.getDate() === 5) {
shmegegge.location = BOB_AND_JANE_WEDDING.location;
}
</script>
Now, the JavaScript idiom there is real JavaScript, that date being tested would be January 5, 2010 because getMonth() returns 0 to 11, and getDate() gets you the day of the month. Since it's matrimonyscript you can make it what you want and use getYear(), getMonth(), and getDay() which would be a nicer syntax.
begin 644 response.txt
D22!C;W)D:6%L;'D@86-C97!T('EO=7(@:6YV:71A=&EO;BX*
`
end
or, even better, send him the MD5 hash of "yes":
a6105c0a611b41b08f1209506350279e(He'll recognize that as an MD5 hash, I'm sure. And if it doesn't immediately come to him what it might be, it looks up in the first few Google hits for "md5 lookup" or "reverse md5".)
curl -d 'guest_name=Shmegegge+Mefite&num_attending=2' http://somecleverdomain.com/invite/acceptIf you sent him that line surrounded by backticks (
`curl ... accept`), it might indicate to him the sense you are running it. Or it might make it imperfect.<?php array_push($guests['attending'], "shmegegge", "shmegegge's friend"); ?><?php
require_once 'class.Wedding.php';
$Wedding = new Wedding('Bob', 'Jane');
$Wedding->setDate('2011-01-31');
$Wedding->addRSVP('schmegegge');
$Wedding->addRSVP('schmegegge\'s date');
?>
<?php
require 'relationship.php';
class WeddingError extends Exception {};
class Wedding extends Relationship {
protected $partners = array();
public $objections = array();
public function __construct() {
$this->partners = func_get_args();
if (count($this->partners) > 2) {
throw new WeddingError('Monogamy!');
}
if (count($this->partners) < 2) {
throw new WeddingError('Everybody needs somebody to love!');
}
}
public function attending($rsvp, $guest1, $guest2=NULL) {
printf("%s, I (%s)", ($rsvp === True ? 'Yes' : 'No'), $guest1);
if (!is_null($guest2)) {
printf(" and %s", $guest2);
}
printf(" will %s attending\n", ($rsvp === True ? 'be' : 'not be'));
}
public function vows() {
$partner1, $partner2 = list($this->partners);
$question = "Do you, %s, take %s, in sickness & health, to be your lawfully wedded partner?\nI do";
printf($question, $partner1, $partner2);
printf($question, $partner2, $partner1);
}
public function raise_objections() {
if (count($this->partners) < 2 || count($this->objections) > 0) {
throw new WeddingError('Objection!');
}
}
public function pronounce() {
printf("by the power vested in me, I now pronounce you man & wife");
}
public function honeymoon() {
exit('On honeymoon, brb');
}
};
$marriage = new Wedding('Partner 1', 'Partner 2');
$marriage->attending(True, "Your Name", "Guest's name");
/**
* the following is hopefully an emulation of the day
*/
$marriage->vows();
$marriage->raise_objections();
$marriage->pronounce();
$marriage->honeymoon();
$marriage->objections if you so wish. Oh, and I think I got an Ace Attorney reference in there.
wedding.attending["shmegegge"] = True;orwedding.attendees++;could work.posted by lantius at 5:45 PM on September 13, 2010 [1 favorite]