Top new questions this week:
|
I have only been self teaching myself programming on and off for about 5 months. The purpose of me writing this class is to incorporate the knowledge that I have gathered since I started.
using ...
|
From Rosetta Code:
The Archimedean spiral is a spiral named after the Greek mathematician Archimedes. It can be described by the equation:
$$r=a+b\theta$$
with real numbers \$a\$ and \$b\$.
...
|
The goal of this code is to print the entity tree of a VHDL project. There are a readme and very minimal tests on the github repo.
I am trying to refactor the code to use generators in order to ...
|
I have a few of files, and total size of them is more than 5 GB. Each line of the files is a IP address, looks like:
127.0.0.1 reset success
...
127.0.0.2 reset success
how can i find ...
|
This code prints out a list of all the possible sums that can be made from a set of cash.
For example, say you have 2 fives and 2 tens in your wallet. With these, you can make exact change for $0, ...
|
I have been working my way through the problems in the book Cracking the Coding Interview. The instructions were to maintain an animal shelter that operates on a first in, first out basis (i.e. it is ...
|
It's my implementation. Can I get some opinions on it?
import random
import os
import time
class Game:
def __init__(self, turns, w, h):
self.board = []
for x in range(0, h):
...
|
Greatest hits from previous weeks:
|
The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make?
<html>
...
|
The following question was taken from Absolute Java 5th ed. by Walter Savitch:
Write a program that outputs the number of hours, minutes, and seconds that corresponds to 50,391 total seconds. The ...
|
Can you answer these?
|
I'm working on my first jQuery plugin for a lightweight dropdown. This dropdown behaves just like a ordinary <select>.
Before implementing new features I'd like to know if my current approach ...
|
I've been updating a little text-based game of mine to have the text roll out over a time period to give the appearance that it's being typed. I'm doing this by using non-blocking output with ncurses.
...
|
I had a task to create simple audio player.
So far I managed to do functionalities and all that is needed.
Other part of same task was to make it semantic and modular.
I read some blog posts and ...
|