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
| In vim: | |
| %s#\:\s\+#='# | |
| %s/$/'/ | |
| gets you most of the way there |
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
| # Coderpad with simple test system | |
| # provides a few basic assertions and a test harness so you can at least test drive | |
| # those silly interview puzzles that only ever come up in interviews and almost | |
| # never in real work. | |
| class Code | |
| def sut(param1 = nil, param2 = nil) | |
| return true | |
| 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 'fileutils' | |
| require 'digest' | |
| class MediaMover | |
| NAS_MEDIA_DIR = '/media/nas/video' | |
| NAS_RAW_INCOMING_DIR = NAS_MEDIA_DIR + '/Incoming Raw Footage/Insta360' | |
| INSTA360_MOUNT_POINT = '/media/dav/disk' | |
| INSTA360_MEDIA_DIR = INSTA360_MOUNT_POINT + '/DCIM/Camera01' | |
| def run |
OlderNewer