Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > The Dungeon > Archived (Click Header To See Sub-Forums) > Gallery
FedoraForum Search

Forgot Password? Join Us!

Gallery 7/20/09 - Now that the regular vBulletin Gallery has been restored, this Forum will be closed in the near future. Please post your photos under Community > Photos & Albums

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th December 2008, 09:12 AM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Greetings from C and Python

Inspired by this, I wrote a piece of very simple code today that says "Merry Christmas" in 2 languages.

The code goes like this:
Code:
#include <stdio.h>
#define main()    int main(void){printf("Merry Christmas and Happy New Year!\n    From C land, with love.\n");return 0;}
#define BE_HAPPY /*
def main(): print "Merry Christmas and Happy New Year!\n    From Python land, with love."
#*/
main()


It can either be compiled with GCC or be interpreted by Python.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.

Last edited by aleph; 24th December 2008 at 09:15 AM.
  #2  
Old 24th December 2008, 03:35 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
Very clever with the animated .gif image. First time I've seen that on the forum other than those (mostly annoying) animated Avatars.

Cheers to all
  #3  
Old 24th December 2008, 04:07 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
@Pablo

Thanks ;-)

The animated image was made using GIMP. It is fairly small (only 27kB in size) because GIMP is smart enough to save only the "diff" between frames
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
 

Tags
python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python, IDLE, Python-tools Gnome. Deonis Using Fedora 2 12th March 2009 03:44 AM
python and python-irclib problem LostSon Programming & Packaging 3 6th March 2008 11:12 PM
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Using Fedora 0 15th September 2005 05:53 PM
/etc/cron.daily/yum.cron: Error: python-devel conflicts with python < 2.3.4-13.1 productive Servers & Networking 0 20th April 2005 08:51 PM


Current GMT-time: 03:32 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat