Skip to content

Instantly share code, notes, and snippets.

@koo5
Last active December 12, 2015 03:08
Show Gist options
  • Save koo5/4703971 to your computer and use it in GitHub Desktop.
Save koo5/4703971 to your computer and use it in GitHub Desktop.
otherwise if path is "/post":
if method is "post":
if there is an id of user in table of users:
let old nick be nick corresponding to id of user in table of users;
if old nick is not user nick:[user changed googleID nickname]
say "old nick: [old nick], new nick: [user nick], updating nick...[line break]";
choose row with id of user in table of users;
now nick corresponding to id of user in table of users is user nick;
write file of users from table of users;
else:
say "adding new user[line break]";
choose a blank row in table of users;
now id entry is user;
now nick entry is user nick;
write file of users from table of users;
[]
choose a blank row in table of posts;
now user entry is user;
now time entry is time;
now content entry is content;
now subject entry is subject;
now blank posts is blank posts - 1;
write file of posts from table of posts;
return "<b>Sent!</b><br>[line break]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment