<: and :> also substitute for [ and ]. Doesn't have to be "both or neither", GCC is happy to compile the following:
#include <stdio.h> int main(int argc, char *argv[:>) <% if( argc > 1 ) { printf("you passed %d argument%s to %s.\n", argc - 1, ( argc == 2 ) ? "" : "s", argv<:0]); %> else { printf("you passed no arguments to %s.\n", argv[0:>); %> return 0; }Found this while browsing through c.vim; a comment therein suggests this is a C99 thing. Anybody have any insight into the motivation behind it?
submitted by hurfadurfI wrote this for myself and figured I might as well share. It allows you to browse reddit, with subreddit and comment support, from the command line.
My motivation
Coworker who sees me looking at something in a browser: "Glad you're not busy; I need you to do this, this, this..."
Coworker who sees me staring intently at a command prompt: backs away slowly
It's written in C#. Uses .NET framework 3.5. I could've used 2.0 to widen compatibility, but LINQ to XML makes RSS parsing so much easier. It works exclusively with reddit's RSS feeds, which sort of hinders it's capabilities. For instance, it doesn't have access to votes or anything like that. Also, comments don't get nested (although they are in the correct order, so they are readable).
Screenshots:
EDIT Works in linux with mono too according to comments. Yay
EDIT 2: As requested, the source is available here: http://github.com/foxingworth/rd. As I warned though, I threw this together in an afternoon and the code is pretty ugly. Don't judge me :-)
submitted by foxingworth('shopped by Rob Beschizza).
Context, and Rob explains his thoughts in this comment.
Commenter "Unmutual," in the previous Boing Boing thread, observed: When you show a naked little girl running away from a burning village, that is honesty. If you show that same little girl and say "this is what happens if we leave Vietnam", that is proganda, and it's a lie.