This file contains hidden or 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
| This is erlang practice. |
This file contains hidden or 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
| mongodb.log | |
| db/* |
This file contains hidden or 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 CMDUtils | |
| def get_cmd_output cmd | |
| output = '' | |
| IO.popen( | |
| cmd | |
| ) do |io| | |
| output = io.read() | |
| end | |
| output | |
| end |
This file contains hidden or 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 'pp' | |
| class CRS | |
| attr_reader :col_indexes, :row_pointers | |
| def initialize data | |
| # @vals = [] not used | |
| @col_indexes = [] | |
| @row_pointers = [] | |
| @n = nil | |
| counter = 0 |
NewerOlder