- Open Terminal 1
cd /path/to/hyrax
rake engine_cart:regenerate
-- Rebuild the internal app; May not be necessary- Terminal 1:
rake engine_cart:server
-- Analogue tocd .internal_test_app; rails s
- Open Terminal 2
cd cd /path/to/hyrax
fcrepo_wrapper -v -p 8984 --no-jms
- Open Terminal 3
cd cd /path/to/hyrax
solr_wrapper -v -d solr/config/ -n hydra-development -p 8983
View dcc-retiring-procedure.rb
require 'logger' | |
ABILITY_SCORE_MODIFIER = { | |
0 => :dead, | |
1 => -3, 2 => -3, 3 => -3, | |
4 => -2, 5 => -2, | |
6 => -1, 7 => -1, 8 => -1, | |
9 => 0, 10 => 0, 11 => 0, 12 => 0, | |
13 => 1, 14 => 1, 15 => 1, | |
16 => 2, 17 => 2, | |
18 => 3, |
View super.rb
module A | |
def hello | |
puts 'hello' | |
end | |
end | |
module B | |
def hello | |
puts 'potato' | |
super |
View solr_doc_for.rb
module ActiveFedora | |
module Plugin | |
module SolrDocFor | |
class_attribute :default_solr_document_class | |
self.default_solr_document_class = ::SolrDocument | |
# @param [String] id - of the object to cast to the given :solr_document_class | |
# @param [#new] solr_document_class | |
# @return Instance of the configured ActiveFedora::Plugin::SolrDocFor.default_solr_document_class | |
# @see ActiveFedora::Plugin::SolrDocFor.default_solr_document_class |
View run-hyrax.md
View deep_merge_two_yaml_files.rb
gem 'activesupport' | |
require 'active_support/core_ext/hash/deep_merge' | |
require 'psych' | |
first_hash = Psych.load_file(PATH_TO_FIRST_FILE) | |
second_hash = Psych.load_file(PATH_TO_SECOND_FILE) | |
File.write(PATH_TO_MERGED_FILE, Psych.dump(first_hash.deep_merge(second_hash))) |
View presentation.md
Demonstrating the Workflow
Reconciling Two Sets of Issues
View H20 playlist
"Theme From Flood" by They Might Be Giants | |
"Good Vibrations" by The Beach Boys | |
"I'm The Ocean" by Neil Young | |
"Take Me To The River" by Talking Heads | |
"Undertow" by R.E.M. | |
"The Ocean" by U2 | |
"Everyday Is Like Sunday" by Morrissey | |
"Surf's Up Tonight" by Midnight Oil | |
"Prince Caspian" by Phish | |
"Wave Of Mutilation" by Pixies |
View stack.rb
class LinkedListNode | |
attr_accessor :value, :points_to_node | |
def initialize(value, points_to_node=nil) | |
@value = value | |
@points_to_node = points_to_node | |
end | |
end | |
class Stack |
View image_blur3.rb
class Image | |
def initialize(two_dimensional_array, marker = 1) | |
@data = two_dimensional_array | |
@marker = marker | |
end | |
attr_reader :data, :marker | |
def output_image | |
data.each { |row| puts row.join } | |
end |
View test_mini_test.rb
class Numbers | |
def initialize(list) | |
@list = list | |
end | |
attr_reader :list | |
def includes?(a_number) | |
return true if list.detect { |element| element.to_i == a_number.to_i } | |
return false | |
end |