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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'appscript' | |
| include Appscript | |
| en = app("Evernote") | |
| mail = app("Mail") | |
| notes_folder = mail.mailboxes["Imported Notes"] |
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
| tell application "Mail" | |
| set theMessages to every message of the mailbox "NoteMigrate" | |
| repeat with thisMessage in theMessages | |
| set myTitle to the subject of thisMessage | |
| set myText to the content of thisMessage | |
| set myCreateDate to the date sent of thisMessage | |
| tell application "Evernote" | |
| create note with text myText¬ |
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
| #!/usr/bin/env ruby -wKU | |
| require "rubygems" | |
| require "appscript" | |
| include Appscript | |
| mail = app("Mail") | |
| account = mail.accounts["Social Media Today"].get | |
| inbox = account.mailboxes["INBOX"].get |
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
| #!/usr/bin/env ruby | |
| require "rubygems" | |
| require "hominid" | |
| require "net/http" | |
| require "yaml" | |
| config = YAML.load(File.open('smt_config.yml')) | |
| api_key = config["mail_chimp"]["api_key"] |
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 "rss/1.0" | |
| require "rss/2.0" | |
| require "open-uri" | |
| require "yaml" | |
| require "sqlite3" | |
| require "bitly" | |
| require "active_record" | |
| ActiveRecord::Base.establish_connection( |
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 "rubygems" | |
| require "sinatra" | |
| require "garb" | |
| require "active_support/all" | |
| Garb::Session.login(google_user, google_password) | |
| $profiles = Garb::Management::Profile.all | |
| $profile = $profiles.detect {|p| p.id == "7294335" } | |
| class PostStats |
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
| #!/usr/bin/env ruby | |
| require "yaml" | |
| require "optparse" | |
| require "ostruct" | |
| require "date" | |
| config_file = File.open(File.expand_path('~') + "/etc/smt_config.yml") | |
| acct_file = File.open(File.expand_path('~') + "/etc/smt_acct.yml") |
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
| <?php | |
| // some counters | |
| $c = 0; | |
| $kept_feeds = 0; | |
| $discarded_feeds = 0; | |
| $too_new_feeds = 0; | |
| // maximum inactive period in days | |
| $last_published_cutoff = 180; |
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
| tell application "Notes" | |
| set theNotes to every note of the folder "Notes" | |
| repeat with thisNote in theNotes | |
| set myTitle to the name of thisNote | |
| set myText to the body of thisNote | |
| set myCreateDate to the creation date of thisNote | |
| tell application "Evernote" | |
| create note with html myText ¬ |
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
| #!/usr/bin/env ruby | |
| require "rubygems" | |
| require "appscript" | |
| include Appscript | |
| oo = app("OmniOutliner Professional") | |
| outline = oo.documents[1].get |