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
# frozen_string_literal: true | |
# https://gist.github.com/remomueller/c853734a2f85937b69b373c46760fcdd | |
# gem install xml-simple colorize --no-document | |
# ruby xml_testing.rb | |
# XML Integrity Checking | |
# I think checking through all XML for the following would be a good place to |
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
# tutorial_05.rb | |
# sleepdata.org | |
# author: @remomueller | |
# | |
# Required Gems: | |
# | |
# gem install colorize nsrr xml-simple --no-document | |
# | |
# To Run Script: | |
# |
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
# tutorial_04.rb | |
# sleepdata.org | |
# author: @remomueller | |
# | |
# Required Gems: | |
# | |
# gem install colorize edfize nsrr --no-document | |
# | |
# To Run Script: | |
# |
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
# tutorial_03.rb | |
# sleepdata.org | |
# author: @remomueller | |
# | |
# Required Gems: | |
# | |
# gem install colorize edfize nsrr --no-document | |
# | |
# To Run Script: | |
# |
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
# tutorial_02.rb | |
# sleepdata.org | |
# author: @remomueller | |
# | |
# Required Gems: | |
# | |
# gem install colorize edfize nsrr --no-document | |
# | |
# To Run Script: | |
# |
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
# tutorial_01.rb | |
# sleepdata.org | |
# author: @remomueller | |
# | |
# Required Gems: | |
# | |
# gem install colorize edfize nsrr --no-document | |
# | |
# To Run Script: | |
# |
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
# Fixes gems that reference Fixnum explicitly. Replaces `Fixnum` with `0.class`. | |
# mail-2.6.4/lib/mail/attachments_list.rb:33 | |
module Mail | |
class AttachmentsList < Array | |
def [](index_value) | |
if index_value.is_a?(0.class) | |
self.fetch(index_value) | |
else | |
self.select { |a| a.filename == index_value }.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
# frozen_string_literal: true | |
# gem install xml-simple --no-document | |
# ruby loading_annotations.rb | |
require 'rubygems' | |
require 'csv' | |
require 'xmlsimple' |
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
# frozen_string_literal: true | |
# gem install xml-simple colorize --no-document | |
# ruby annotation_testing.rb | |
require 'rubygems' | |
require 'colorize' | |
require 'json' | |
require 'xmlsimple' |
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
# frozen_string_literal: true | |
# gem install edfize --no-document | |
# ruby rewrite_signal_date.rb | |
require 'rubygems' | |
require 'edfize' | |
WRONG_DATE = '00.00.00' | |
CLIPPING_DATE = '01.01.85' |
NewerOlder