Skip to content

Instantly share code, notes, and snippets.

@masasin
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masasin/d2f046a5fcad09734b3b to your computer and use it in GitHub Desktop.
Save masasin/d2f046a5fcad09734b3b to your computer and use it in GitHub Desktop.
Niko Nico Ordering Process
// customer cancels
/receive cancel request/;
cancel_order:
cancel order;
return;
// customer orders
/receive order/;
if urgent {
if before 10:30 {
if fits in today's list {
loop check_payment_info;
} else {
loop check_delivery_date;
}
} else {
loop check_delivery_date;
}
} else {
check_delivery_date:
if delivery date okay
{
loop check_payment_info;
} else {
loop cancel_order
}
}
check_payment_info:
if good payment info {
if fast payment method {
loop payment_received;
} else {
/send order received/;
add order to queue;
}
} else {
loop cancel_order
}
while(!payment processed) {
}
payment_received:
/send order processing/;
if urgent and after 10:30 {
move order to top of next queue;
}
nop;
while(!order reached) {
work down the queue;
}
||bake order||;
\TA-Q-BIN pickup/;
/send tracking number/;
\TA-Q-BIN delivery/;
/receive delivered confirmation/;
/send review email/;
(END);
@masasin
Copy link
Author

masasin commented Apr 7, 2015

the ordering process

@masasin
Copy link
Author

masasin commented Apr 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment