I hereby claim:
- I am duien on github.
- I am duien (https://keybase.io/duien) on keybase.
- I have a public key ASCCiqcEJdd6wxN8PjxXBDUimnN-DLX3Kslfq0xIz_-WeAo
To claim this, I am signing this object:
aardvark | |
alligator | |
alpaca | |
anaconda | |
anemone | |
anteater | |
antelope | |
arctic fox | |
armadillo | |
atlas moth |
I hereby claim:
To claim this, I am signing this object:
[email protected] /Users/ehyland/Code/Go/src/source.datanerd.us/tools/grand-central/app | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ └── [email protected] | |
│ └─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ └── [email protected] | |
│ ├── [email protected] |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Brilliant</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
v2
API namespace that uses new dashboard models/pin
endpoint does not support NRQL widgetsrequire 'term/ansicolor' | |
class String | |
include Term::ANSIColor | |
end | |
class Task | |
attr_accessor :status, :text, :indent_level | |
def to_formatted_string | |
"#{indent}- #{formatted_status} #{text}" |
Adapted from CodeKata.
Last month, James showed us how to parse CSV. Here's a chance to practice, and to try something more like a real-world programming problem. You'll want to check out the CSV class in Ruby's standard library to help you.
In weather.csv
you’ll find daily weather data for Morristown, NJ for June 2002. Download this file, then write a program to output the day number with the smallest temperature spread. The day number is in a column labeled Dy
, the max temperature is MxT
and the min temperature is MnT
.
# Write a program that prints the numbers from 1 to 100. But for multiples of | |
# three print 'Fizz' instead of the number and for the multiples of five print | |
# 'Buzz.' For numbers which are multiples of both three and five print | |
# 'FizzBuzz.' | |
def fizz_buzz( limit = 100 ) | |
1.upto(limit) do |i| | |
print "Fizz" if i % 3 == 0 | |
print "Buzz" if i % 5 == 0 | |
print i if i%3 != 0 and i%5 != 0 |
function time_to_glitch(time){ | |
var year, day_of_year, month_and_day, month, day_of_month, hour, minute, sec, ts ; | |
sec = Number(time) - 1238562000; | |
// there are 4435200 real seconds in a game year | |
// there are 14400 real seconds in a game day | |
// there are 600 real seconds in a game hour | |
// there are 10 real seconds in a game minute | |
year = Math.floor(sec / 4435200); |
ruby-1.8.7-p302 > require 'builder' | |
=> true | |
ruby-1.8.7-p302 > xm = Builder::XmlMarkup.new | |
=> <inspect/> | |
ruby-1.8.7-p302 > xm.title('yada') | |
=> "<inspect/><title>yada</title>" | |
ruby-1.8.7-p302 > puts xm | |
TypeError: Builder::XmlMarkup#to_ary should return Array | |
from (irb):5:in `puts' | |
from (irb):5 |