Skip to content

Instantly share code, notes, and snippets.

@mohnjoosemiller
Forked from jasonhejna/christmas_card_2016_c.md
Last active November 27, 2016 19:43
Show Gist options
  • Save mohnjoosemiller/552cf0ee93791b42a9ad0e93137c3e36 to your computer and use it in GitHub Desktop.
Save mohnjoosemiller/552cf0ee93791b42a9ad0e93137c3e36 to your computer and use it in GitHub Desktop.
holiday card 2016
    .--._.--.--.__.--.--.__.--.--.__.--.--.__.--.--._.--.
  _(_      _Y_      _Y_      _Y_      _Y_      _Y_      _)_
 [___]    [___]    [___]    [___]    [___]    [___]    [___]
 /:' \    /:' \    /:' \    /:' \    /:' \    /:' \    /:' \
|::   |  |::   |  |::   |  |::   |  |::   |  |::   |  |::   |
\::.  /  \::.  /  \::.  /  \::.  /  \::.  /  \::.  /  \::.  /
 \::./    \::./    \::./    \::./    \::./    \::./    \::./
  '='      '='      '='      '='      '='      '='      '='
$ mkdir holiday_card
$ cd holiday_card/
$ vim holiday_card_2016.m
Nice = randi([0,1])
if Nice == 1
    for i=1:3
		fprintf('Ho\n');
    end
    fprintf('Happy Holidays');
end
$ matlab -nodisplay -nodesktop -r "run holiday_card_2016.m"
Ho
Ho
Ho
Happy Holidays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment