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
package main | |
import ( | |
"errors" | |
"flag" | |
"fmt" | |
"github.com/rwcarlsen/goexif/exif" | |
"os" | |
"path" | |
"path/filepath" |
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
# Example of a DelayedJob that syncs info with mailchimp | |
class SyncMailchimp < Struct.new(:opts) | |
include Dobexer::ExceptionNotifier | |
def run_hominid(attempts = 0, &block) | |
attempts += 1 | |
block.call | |
rescue EOFError => e |