Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Guess the snippet

Name: Anonymous 2010-05-22 9:26

I'll start

(defconst *path-delimiter* ">")
(defconst *type-delimiter* ".")
(defconst *version-delimiter* ".")
(defconst *directory-entry-file-type-max-length* 14.)
(defconst *lmfs-name-of-the-root* "The Root Directory")

(defflavor lmfs-mailbox-pathname-mixin () (mailbox-pathname-mixin)
  (:abstract-flavor)
  (:documentation :mixin "for ZMAIL's methods"))

(defflavor lmfs-pathname-mixin
    ()
    (lmfs-mailbox-pathname-mixin
     no-device-mixin
     hierarchical-directory-mixin
     meaningful-root-mixin
     both-cases-same-lower-preferred-mixin)
  (:required-flavors pathname)
  (:functions lmfs-pathname-fname-string))    ;This one is forward-referenced

Name: Anonymous 2010-05-22 13:57

Next one

TerminalShell.commands['apt-get'] = function(terminal, subcmd) {
        if (!this.sudo && (subcmd in {'update':true, 'upgrade':true, 'dist-upgrade':true})) {
                terminal.print('E: Unable to lock the administration directory, are you root?');
        } else {
                if (subcmd == 'update') {
                        terminal.print('Reading package lists... Done');
                } else if (subcmd == 'upgrade') {
                        if (($.browser.name == 'msie') || ($.browser.name == 'firefox' && $.browser.versionX < 3)) {
                                terminal.print($('<p>').append($('<a>').attr('href', 'http://abetterbrowser.org/').text('To complete installation, click here.')));
                        } else {
                                terminal.print('This looks pretty good to me.');
                        }
                } else if (subcmd == 'dist-upgrade') {
                        var longNames = {'win':'Windows', 'mac':'OS X', 'linux':'Linux'};
                        var name = $.os.name;
                        if (name in longNames) {
                                name = longNames[name];
                        } else {
                                name = 'something fancy';
                        }
                        terminal.print('You are already running '+name+'.');
                } else if (subcmd == 'moo') {
                        terminal.print('        (__)');
                        terminal.print('        (oo)');
                        terminal.print('  /------\\/ ');
                        terminal.print(' / |    ||  ');
                        terminal.print('*  /\\---/\\  ');
                        terminal.print('   ~~   ~~  ');
                        terminal.print('...."Have you mooed today?"...');
                } else if (!subcmd) {
                        terminal.print('This APT has Super Cow Powers.');
                } else {
                        terminal.print('E: Invalid operation '+subcmd);
                }
        }
};

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List