This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sum(a, b) | |
puts a + b | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'trello' | |
require 'pry' | |
def puts_todos | |
configure | |
cards = get_cards | |
puts '----------------------' | |
puts '【TODO】' | |
cards.each do |card| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'trello' | |
require 'pry' | |
class TodoManager | |
attr_reader :account, :board_name | |
def initialize(account, board_name) | |
@account = account | |
@board_name = board_name | |
Trello.configure do |config| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pi_piper' | |
require './period' | |
led = PiPiper::Pin.new pin:2, direction: :out | |
chr = "toda" | |
periods = Period.parse(chr) | |
periods.each do |period| | |
if period > 0 |