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
-- SET METADATA | |
property Title : "Title: URL List from Safari Tabs" | |
property Notebook : "Notebook: Reading List" | |
property Tags : "Tags: linklist, temp" | |
-- DATE STAMP | |
set dateStamp to do shell script "date '+%Y-%m-%d, %I:%M %p'" | |
-- PREPARE THE LIST | |
set urlList to {} |
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
# Flash your local Rails database with data from your Heroku environment. | |
# Much faster than heroku db:pull. | |
# | |
# Notes: | |
# - Requires that you use postgres locally | |
# - Requires that pg_restore is available | |
# - Requires initialized Heroku setup for the given project | |
# - Requires that the pgbackups addon be installed for the given Heroku app | |
require "open-uri" |
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 DstHelper | |
# Have a Time inherit DST status from a Date. | |
def inherit_dst date, time | |
time = time.change(:year => date.year, :month => date.mon, :day => date.day) | |
end | |
def self.included includer | |
# Mix in class methods. | |
includer.extend ClassMethods | |
end |
NewerOlder