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
type = "" | |
split_name.each { |s| type = s if s =~ /csfasta|ftc|txr|cy5|cy3|qual/ } | |
puts type |
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
type = "" | |
split_name.each { |s| type = s if s =~ /csfasta|ftc|txr|cy5|cy3|qual/ } | |
puts type |
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
drio@milhouse ~ $ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/VolGroup00-LogVol00 | |
128G 5.3G 116G 5% / | |
/dev/sda3 99M 28M 66M 30% /boot | |
tmpfs 16G 0 16G 0% /dev/shm | |
/dev/mapper/md3000-slx | |
11T 1.1M 11T 1% /mnt/slx | |
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
# Read first line and order the input | |
l1 = File.open("./input.txt", "r").read.split[1].split(',') | |
# Create a struct class to hold the stats per lane | |
line_stats = Struct.new(:c, :d, :a, :b) | |
# Instantiate a stat lines with the input data | |
l1_stats = line_stats.new(*l1) | |
# Display the contents of the struct | |
puts l1_stats.inspect |
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 methods_to_lambdas(mod) | |
instance = Class.new { include mod }.new | |
mod.instance_methods(false).inject(Hash.new) { |hash, meth| | |
hash.update( | |
meth.to_sym => lambda { |*args, &block| | |
instance.send(meth, *args, &block) | |
} | |
) | |
} | |
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
def methods_to_lambdas(mod) | |
instance = Class.new { include mod }.new | |
mod.instance_methods(false).inject(Hash.new) { |hash, meth| | |
hash.update( | |
meth.to_sym => lambda { |*args, &block| | |
instance.send(meth, *args, &block) | |
} | |
) | |
} | |
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
def methods_to_lambdas(mod) | |
instance = Class.new { include mod }.new | |
mod.instance_methods(false).inject(Hash.new) { |hash, meth| | |
hash.update( | |
meth.to_sym => lambda { |*args, &block| | |
instance.send(meth, *args, &block) | |
} | |
) | |
} | |
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
drio@milhouse ~/tmp/pcap $ gem search --source http://ruby.mocker.org/gems --remote cap | |
*** REMOTE GEMS *** | |
WARNING: RubyGems 1.2+ index not found for: | |
http://ruby.mocker.org/gems/ | |
RubyGems will revert to legacy indexes degrading performance. | |
Bulk updating Gem source index for: http://ruby.mocker.org/gems/ | |
acts_as_flux_capacitor (0.6.7, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.4, 0.5.3, 0.5.2, 0.5.0) |
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
Dear HGSC fellows, | |
As you already know we are facing the challenge of storing the new slx | |
data while we are running out of physical storage space @ the HGSC. In addition, | |
the amount of space required for the new Runs is getting bigger and bigger. | |
The way we have been dealing with data so far is not going to scale. | |
Keeping all analysis data in the cluster volumes is not an option anymore. | |
Our idea is to archive part of the slx analysis data (almost everything) and |
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 M2 | |
def m2_meth | |
puts "m2_meth" | |
end | |
def rufus | |
self.stuff | |
end | |
end | |
OlderNewer