This is a Dashing job to display Duolingo points for all languages studied by a user
Live demo:
http://camilledashing.herokuapp.com/dashboard
Usage
This is a Dashing job to display Duolingo points for all languages studied by a user
Live demo:
http://camilledashing.herokuapp.com/dashboard
Usage
Dashing widget to display a different gem from ruby-toolbox.com every minute
Live demo:
http://camilledashing.herokuapp.com/dashboard
Usage
Dashing widgets to display:
Live demo:
Dashing widget to display Outlook calendar events Gets all the events over the next two days, and display the two next ones
Live demo:
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
require 'awesome_print' | |
Capybara.run_server = false | |
Capybara.current_driver = :poltergeist | |
class Oyster |
MEDIUM-TERM QUESTIONS
class SmartdownCoversheet | |
def initialize(node) | |
@node = node | |
end | |
def title | |
node.elements.find{|element| element.is_a? Smartdown::Model::Element::MarkdownHeading} | |
end | |
#TODO: this will ignore any headings in the body; if I include headings, then "Next node" appears in the text |
class Employee | |
attr_reader :name, :month_salary | |
def initialize(args) | |
@name = args[:name] | |
@month_salary = args[:month_salary] | |
end | |
def vat | |
0.20 | |
end |
##Workplace pension calculator
def threshold_annual_rate
if Date.today < Date.civil(2013, 4, 8)
8105.0
elsif Date.today >= Date.civil(2013, 4, 8)
9440.0
end
end