Using flex and a bit of C
Compile and run with:
flex lexer.lex
gcc -c set.c
gcc lex.yy.c set.o -lfl
Type: Posts; User: Queue29; Keyword(s):
Using flex and a bit of C
Compile and run with:
flex lexer.lex
gcc -c set.c
gcc lex.yy.c set.o -lfl
list_name[1] returns [x, y], so
list_name[1][0] will thus return x
Another Go solution...
package base
import "fmt"
import "math"
import "os"
div is in <cstdlib>
I dunno about mod, I would just use the % operator.
Uh yes, definitely. Although the use of functional languages in industry is perhaps more concentrated in certain areas like theorem proving rather than being general use, it's out there for sure. In...
Fortran does not have a += operator. You gotta rewrite the equation without it.
So Fedora 16 is being called "Verne" after the author Jules Verne, and here is some of the candiate artwork: http://publictest04.fedoraproject.org/artboard/post/list/1
Some of that stuff looks...
You have a parenthesis mismatch (missing an opening parenthesis!)
Yep, the public constructor only takes a String. Technically there is another constructor that takes a long, but it's private. :(
If you're gonna use python, you may as well go all the way and make it platform independent. The way you're clearing the screen will only work on posix systems. Here's what I do:
import os
...
What if I told you there was a well known and accepted tool that does exactly what you want?
http://linux.die.net/man/8/fsck
Alright, so I finally got around to judging these, and I hereby declare the winner to be.... ziekfiguur! and his bot, botz0r. :KS
I know this was a difficult challenge, but I am quite grateful...
If you're worried about memory efficiency you shouldn't be working with Python in the first place. The memory usage overhead of Python is obscene at best; it is not nor ever was a design goal of...
Seems like you're looking to make an installer for Windows specifically? If so, try asking on a Windows (or perhaps Python) oriented forum.
So this challenge has been open for a while... I'll judge what's here next Monday, August 8.
You claim favor to something and then start listing off reasons why you don't use it. You have a strange way of presenting an argument.
lolwat
GCC is GPL.
Guess which compiler they use, and ship with xcode.
Haha. Anything. Your .emacs file is a bunch of emacs-lisp code.
This right here is the key to any happy emacs user:
;; put autosave files (ie #foo#) and backup files (ie foo~) in...
There is nothing better than Rosetta Code for code examples. For any language.
http://rosettacode.org/wiki/Python
If it's really gnome development you want, there's no better place to start than: http://developer.gnome.org/
That being said, if you aren't a strong programmer, you won't survive long trying to...
I'm thinking this challenge could use another weekend for people to work on things, since that's when I see people connecting the most into #ufpc. So let's have the last day for submissions be on...
I think that's the cool thing about this project: to get a working bot you don't need anything more than a simple socket connection, and there are hundreds of examples on how to do that for any...
Ah good catch, my sample bot did the right thing but my overview didn't!
Beginners Programming Challenge #21
The Challenge
To create an automated RFC-2812 client... more commonly known as an IRC Bot.
Overview
This challenge will be an exercise primarily in...
I'd be happy to do it