Skip to content

Instantly share code, notes, and snippets.

@matellis
matellis / things3-to-of3.applescript
Last active January 31, 2024 18:53 — forked from cdzombak/things-to-of.applescript
Script to import from Things 3 into Omnifocus 3
--------------------------------------------------
--------------------------------------------------
-- Import tasks from Things to OmniFocus
--------------------------------------------------
--------------------------------------------------
--
-- Script taken from: http://forums.omnigroup.com/showthread.php?t=14846&page=2 && https://gist.github.com/cdzombak/11265615
-- Added: OF3 & Things 3 compatibility; task order; areas/folders; tags
-- Empty your Things Trash first.
--

Keybase proof

I hereby claim:

  • I am matellis on github.
  • I am mate (https://keybase.io/mate) on keybase.
  • I have a public key whose fingerprint is 6658 988D E0A8 4DFA 260E EA7F 9782 238C D1F9 D4F9

To claim this, I am signing this object:

@matellis
matellis / AirmailToOmnifocus2.scpt
Last active July 18, 2017 01:35
Sends the selected message from Airmail to Omnifocus 2
(*
Send currently selected Airmail message to OmniFocus 2 quick entry box, then archive it.
Based on http://simplicitybliss.com/add-last-sent-email-to-omnifocus
and http://discourse.omnigroup.com/t/mail-to-quick-entry-applescript/500
To install:
- Create a new Automator Service
- Cut/paste this into it
- Edit properties to your satisfaction
@matellis
matellis / gmaps_controls_identifier.js
Created March 26, 2011 01:01
Hack to label Google Map controls with known identifiers so you can address specific elements. Requires Jquery.
controlList = {
'map_type_control': 'margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; z-index: 11; position: absolute; cursor: pointer; right: 0px; top: 0px; ',
'pan_control': 'cursor: url(https://maps-api-ssl.google.com/intl/en_us/mapfiles/openhand_8_8.cur), default; width: 78px; height: 78px; position: absolute; left: 0px; top: 0px; ',
'zoom_control': 'position: absolute; left: 27px; top: 128px; ',
'streetmap_control': 'width: 32px; height: 38px; overflow-x: hidden; overflow-y: hidden; position: absolute; left: 0px; top: 0px; ',
'hidden_streetmap_control': 'width: 32px; height: 38px; overflow-x: hidden; overflow-y: hidden; position: absolute; left: 0px; top: 0px; visibility: hidden; ',
};
function labelControlsWithId() {
@matellis
matellis / gmaps_controls_classifier.js
Created March 26, 2011 00:58
Hack to label Google Map controls with known class names so you can custom position them.
controlList = {
'map_type_control': 'margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; z-index: 11; position: absolute; cursor: pointer; right: 0px; top: 0px; ',
'pan_control': 'cursor: url(https://maps-api-ssl.google.com/intl/en_us/mapfiles/openhand_8_8.cur), default; width: 78px; height: 78px; position: absolute; left: 0px; top: 0px; ',
'zoom_control': 'position: absolute; left: 27px; top: 128px; ',
'streetmap_control': 'width: 32px; height: 38px; overflow-x: hidden; overflow-y: hidden; position: absolute; left: 0px; top: 0px; ',
};
function labelControls() {
$.each(controlList, function(id, attr) {
$('div[style^="' + attr + '"]').attr('class',id);
class ApplicationController < ActionController::Base
helper :all
protect_from_forgery # See ActionController::RequestForgeryProtection for details
filter_parameter_logging :password, :password_confirmation, :card_number, :cvv, :card_expiry
EXCEPTIONS_NOT_LOGGED = ['ActionController::UnknownAction',
'ActionController::RoutingError']
before_filter {|ct| switch_user ct }