def some_method
puts "Hello"
end
So it looks like "Markdown" on GitHub is GitHub Flavored Markdown - how presumptious!
- Checking out task lists
- Pretty cool - Gist has some level of auto-complete
# Given this List of Songs, Construct Arrays by Artist and Album | |
# Hint: Make use of the split() String Method | |
# http://www.ruby-doc.org/core-1.9.3/String.html#method-i-split | |
# Simple Example of Data Parsing | |
songs = [ | |
"The Magnetic Fields - 69 Love Songs - Parades Go By", | |
"The Magnetic Fields - Get Lost - Smoke and Mirrors", | |
"Neutral Milk Hotel - In An Aeroplane Over the Sea - Holland 1945", | |
"The Magnetic Fields - Get Lost - You, Me, and the Moon", |
# Write a program that tells you the following: | |
# | |
# Hours in a year. How many hours are in a year? | |
# Minutes in a decade. How many minutes are in a decade? | |
# Your age in seconds. How many seconds old are you? | |
# | |
# Define at least the following methods to accomplish these tasks: | |
# | |
# seconds_in_minutes(1) | |
# minutes_in_hours(1) |
# Given: | |
# 5 songs of the following lengths in seconds | |
# 223,215,378,324,254 | |
# Goals: | |
# Assign the length set to variables | |
# Calculate the Total Length of the Playlists | |
# Express the Length in Minutes | |
# Average Song Length in Minutes |
fizz = [] | |
buzz = [] | |
fizzbuzz = [] | |
(1..50).each do |number| | |
print "#{number}: " | |
if (number % 3 == 0 && number % 5 == 0) | |
puts "FizzBuzz" | |
fizzbuzz << number |
CREATE TABLE artists( | |
name TEXT, | |
album_count INTEGER, | |
song_count INTEGER, | |
worth_in_mil REAL | |
); |
CREATE TABLE wizards( | |
name TEXT, | |
age INTEGER | |
); |
Name: David Bella | |
Github: http://github.com/davidbella | |
Blog: http://davidbella.github.io | |
Tagline: | |
Profile Picture: | |
Treehouse Account: http://teamtreehouse.com/davidbella | |
CoderWall Account: https://coderwall.com/davidbella | |
CodeSchool Account: http://www.codeschool.com/users/davidbella | |
Favorite Websites: | |
Previous Work Experience: Client Data Integration Engineer at FactSet |
def some_method
puts "Hello"
end
So it looks like "Markdown" on GitHub is GitHub Flavored Markdown - how presumptious!
1. Place the plate in front of you, such that the concave face of the plate is pointing up | |
2a. The loaf of bread is the plastic packaging containing the soft spongelike rectangle. The bread is already sliced, meaning there will be several individual slices within the packaging. | |
2b. Hold the loaf of bread such that the packaging is pointing up so that the bread does not fall out. | |
2c. Remove any plastic pieces that are keeping the plastic sealed around the loaf of bread. | |
2d. Open the plastic packaging and remove two slices of bread from the top of the loaf. | |
2e. Optionally reseal the packaging on the loaf of bread | |
3. The knife is the long, thin, metal object. This will be used to transfer both the peanut butter and jelly onto the bread slices. More on this soon. | |
3a. The knife has two ends. One end is to be held in your hand, while the other end will be used to make contact with the peanut butter or jelly while transferring it to the bread. |
use strict; | |
use warnings; | |
use Math::Combinatorics; | |
my @numbers = (3, 4, 9, 14, 15, 19, 28, 37, 47, 50, 54, 56, 59, 61, 70, 73, 78, 81, 92, 95, 97, 99); | |
my $total = 0; | |
for (my $sum = 0; $sum < scalar @numbers; $sum++) { | |
next if ($sum < 3); |