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 'nokogiri' | |
def remove_completed(f) | |
file = File.open(f, "r") | |
doc = Nokogiri::XML(file) | |
completed_projects = [] | |
doc.xpath("//ProjectListItem").each do |item| | |
info = item.xpath("./ProjectInfo").first |
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 'bcrypt' | |
class Parent | |
include Hanami::Entity | |
attributes :name, :surname, :email, :password, | |
:password_confirmation, :password_reset_token, :password_reset_sent_at | |
attr_reader :password_hash, :password_salt | |
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
source 'https://rubygems.org' | |
gem 'bundler' | |
gem 'rake' | |
gem 'hanami', '0.7.0' | |
gem 'hanami-model', '~> 0.5' | |
gem 'thin' | |
gem 'sqlite3' | |
gem 'launchy' | |
gem 'bcrypt' |
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
module Web::Controllers::Parents | |
class Create | |
include Web::Action | |
expose :parent | |
params do | |
param :parent do | |
param :name, presence: true | |
param :surname, presence: true |
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
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/hanami-utils-0.7.1/lib/hanami/utils/class_attribute.rb:67: warning: `*' interpreted as argument prefix | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/url_mount-0.2.1/lib/url_mount.rb:55: warning: method redefined; discarding old variables | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/url_mount-0.2.1/lib/url_mount.rb:27: warning: previous definition of variables was here | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route.rb:10: warning: method redefined; discarding old match_partially | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route.rb:10: warning: method redefined; discarding old router | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/generator.rb:58: warning: assigned but unused variable - generator | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route_helper.rb:99: warning: assigned but unused variable - params | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/h |
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
module Web::Controllers::Posts | |
class Update | |
include Web::Action | |
before :check_for_admin_role | |
params do | |
param :post do | |
param :title, presence: true | |
param :body, presence: true |
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
module Web::Controllers::Conferences | |
class Create | |
include Web::Action | |
before :check_for_admin_role | |
expose :conference | |
params do |
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
(eval):2: warning: method redefined; discarding old link | |
(eval):2: warning: previous definition of link was here | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/bundler/gems/view-6a51e5cd3daf/lib/hanami/presenter.rb:1: warning: loading in progress, circular require considered harmful - /home/sebastjan/.rvm/gems/ruby-2.2.1/bundler/gems/view-6a51e5cd3daf/lib/hanami/view/escape.rb | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:4:in `<main>' | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:4:in `select' | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:9:in `block in <main>' | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:9:in `each' | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>' | |
from /home/sebastjan/.rvm/gems/ruby-2.2.1/gems/rake-11.1.2/lib/rake/rake_test_loader.rb:10:in `require' |
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 'green_shoes' | |
def set_no_days | |
@no_of_days = case @month | |
when 4 then 1..30 | |
when 6 then 1..30 | |
when 9 then 1..30 | |
when 11 then 1..30 | |
when 2 then 1..28 | |
else 1..31 |
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 'green_shoes' | |
module DatePicker | |
def set_no_days | |
@no_of_days = case @month | |
when 4 then 1..30 | |
when 6 then 1..30 | |
when 9 then 1..30 | |
when 11 then 1..30 |