cowsay

Random things go here

cowsay

Post by pretentious on Fri Apr 04, 2014 5:44 am
([msg=80133]see cowsay[/msg])

While looking at utilities already on my fresh install of mint 16, I came across this
Code: Select all
cowsay -s "quit trolling"

Goatboys getting a run for his money
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 646
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: cowsay

Post by Goatboy on Fri Apr 04, 2014 10:22 am
([msg=80138]see Re: cowsay[/msg])

You're adorable. You have cowsay? I have goatse. Pronounced like "per se". Goatse. Goat say. Look it up.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: cowsay

Post by pretentious on Sat Apr 05, 2014 12:35 am
([msg=80147]see Re: cowsay[/msg])

Code: Select all
______________________________________
/ You're adorable. You have cowsay? I  \
| have goatse. Pronounced like per se. |
\ Goatse. Goat say. Look it up.        /
--------------------------------------
        \   ^__^
         \  (==)\_______
            (__)\       )\/\
                ||----w |
                ||     ||



Aww So close! ;)
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 646
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: cowsay

Post by 0phidian on Sun Apr 06, 2014 5:58 pm
([msg=80160]see Re: cowsay[/msg])

Here we go.

Code: Select all
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    string goat =   "      _     _\n"
                    "    /  \\_ _\/  \\\n"
                    "      /  -  \\\n"
                    "    <)(o   o)(>\n"
                    "      \\     /\n"
                    "       | v |\n"
                    "       \\_-_/\n"
                    "         v";

    string msg = argv[1];

    cout << "(" << msg << ")" << endl;
    cout << "  \\ |" << endl;
    cout << "   \\|" << endl;
    cout << "    v" << endl;
    cout << goat << endl;
    return 0;
}


Code: Select all
(Stop Trolling)
  \ |
   \|
    v
      _     _
    /  \_ _/  \
      /  -  \
    <)(o   o)(>
      \     /
       | v |
       \_-_/
         v

User avatar
0phidian
Poster
Poster
 
Posts: 269
Joined: Sat Jun 16, 2012 7:04 pm
Blog: View Blog (0)


Re: cowsay

Post by Goatboy on Sun Apr 06, 2014 9:01 pm
([msg=80164]see Re: cowsay[/msg])

I had a really nice PHP version before the raid that took into account line lengths and would adjust each line accordingly. Used it for my error pages. Wish I had backed up my shit offsite somewhere :/

Also, you're somewhat off with my avatar:

Code: Select all
=.     .=
/  \_ _/  \
  /  "  \
<}(o   o){>
  \     /
   | Y |
   \_-_/
     V

Except that first line is not tabbing over properly, needs to be one space to the right.
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2807
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)


Re: cowsay

Post by pretentious on Mon Apr 07, 2014 5:11 am
([msg=80165]see Re: cowsay[/msg])

goat.cow:
Code: Select all
$the_cow = <<EOC
   $thoughts
    $thoughts
     =.     .=
    /  \\_ _/  \\
      /  "  \\
    <}(  ${eyes} ){>
      \\     /
       | Y |
       \\_-_/
         V
EOC

Code: Select all
cowsay -f  /home/pretentious/goat.cow "trollolo"
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 646
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: cowsay

Post by Adrasteia the Inescapable on Sun Apr 13, 2014 10:42 pm
([msg=80252]see Re: cowsay[/msg])

0phidian wrote:Here we go.

Don't you need to #include <string>?
Adrasteia the Inescapable
New User
New User
 
Posts: 33
Joined: Sun Mar 09, 2014 12:02 am
Blog: View Blog (0)


Re: cowsay

Post by 0phidian on Mon Apr 14, 2014 12:01 am
([msg=80255]see Re: cowsay[/msg])

Adrasteia the Inescapable wrote:Don't you need to #include <string>?


I probably should've included that, but I just threw it together real quickly.
It will still normally compile fine though since I included iostream, and iostream includes string.
User avatar
0phidian
Poster
Poster
 
Posts: 269
Joined: Sat Jun 16, 2012 7:04 pm
Blog: View Blog (0)


Re: cowsay

Post by Adrasteia the Inescapable on Wed Apr 16, 2014 9:10 am
([msg=80279]see Re: cowsay[/msg])

0phidian wrote:It will still normally compile fine though since I included iostream, and iostream includes string.

That's useful to know. Is there a list of which standard libraries include which others?
Adrasteia the Inescapable
New User
New User
 
Posts: 33
Joined: Sun Mar 09, 2014 12:02 am
Blog: View Blog (0)


Re: cowsay

Post by -Ninjex- on Wed Apr 16, 2014 9:28 am
([msg=80280]see Re: cowsay[/msg])

Adrasteia the Inescapable wrote:That's useful to know. Is there a list of which standard libraries include which others?


Every programming language should come with some documentation or reference of what you are looking for:
http://www.cplusplus.com/reference/
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1303
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Next

Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 0 guests