How easy would it be to build include graphs in ruby?
Here’s my first attempt:
$list_of_files = Hash.new
$list_of_files.each {|node|
node = Array.new
}
def store_includes(pathname)
lines = IO.readlines(pathname)
lines.each {|line|
if line.include? “#include”
include_file = line[line.index("…
I am having hell managing 5 different mail accounts. Since I hop from PC to PC, I can’t afford a desktop client (fyi, i prefer Thunderbird). So it really irritates me having to log into 5 different pages to check all my mail. Yup, this means a lot of…
An all time favourite true story:
“A lady in a faded gingham dress and her husband, dressed in a homespun threadbare suit, stepped off the train in Boston and walk timidly without an appointment into the Harvard University President’s outer office. The secretary could tell in a moment that…
He threw his satchel onto his unmade bed and sat down at the table. The deafening silence was broken only by the ticking of the ancient clock on the table. A hard lump was forming in his throat. He had been rejected again. They said his work was too abstract…
Benjamin Jacob “Ben” Grimm was born in poverty and hardship. Orphaned at an early age, he was brought up by his uncle Jake and Aunt Petunia. His life in the rough streets of New York, moulded him into a street-wise scrapper.
Excelling in football in high school, Ben received a…
Dr. Robert Bruce Banner was a military scientist working on a new weapon called a “gamma bomb”. During the first testing of the gamma bomb, Bruce watched with horror as a teenage boy strolled casually into the fenced test area. Instructing his assistant to cease the countdown, he rushes out…
J’onn J’onzz (popularly known as the Martian Manhunter) is a native of the planet Mars and a green Martian by race. Accidentally teleported to the planet Earth by a human scientist, he was unable to return to his home planet through the portal that brought him to earth.…
Frank Castle was a multiply decorated U.S. Marine Corps Captain who had fought in the Vietnam War. Later, he ran Special Black Ops training missions for Marine Commandos in the upper New York state area. One day, while picnicking with his family in Central Park, they become witness to…
He methodically scanned the room for clues. He knew he had less than seven minutes before the cops arrived. He examined every nook and corner of the room, taking care not to disturb any clues the police might need. The murder was not as mysterious as it was gruesome. There…