Skip to content

Instantly share code, notes, and snippets.

View johanoloflindberg's full-sized avatar
💭
Ready to work 😃

WEBBAB johanoloflindberg

💭
Ready to work 😃
View GitHub Profile
@johanoloflindberg
johanoloflindberg / example.js
Created September 20, 2013 22:31
Welcome to your first Gist! Gists are simple code reminders. Whenever you come across a piece of code you think might be useful later on, save it as a Gist. With GistBox, you can also tag the Gist with a label. This is especially useful for keeping them organized by language, project or purpose. For more info about GistBox, visit: http://www.gi…
// log an object to the browser console
console.log({ text: "foobar" });
~/Library/Application Scripts/com.Growl.GrowlHelperApp.
ignoring case
if notification's note description contains "GrowlMac" then
return {display:"Music Video"}
end if
end ignoring
Tomorrow, I’m going to %filltext:name=Tomorrow's Goal%.
To be ready, I need to %filltext:name=Preparation required%.
I will remember %filltext:name=Remember tomorrow:default=my%.
The random thoughts that just filled my head are %fillarea:name=Dump it here%.
%fillpart:name=Also Remember:default=yes%Also remember to %filltext:name=More to remember for tomorrow% %fillpartend%
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "Review " & file_name
tell default document
set newTask to make new inbox task with properties {name:task_title}
tell the note of newTask
make new file attachment with properties {file name:theFile, embedded:false}
end tell
end tell
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "Review " & file_name
tell default document
set newTask to make new inbox task with properties {name:task_title}
tell the note of newTask
make new file attachment with properties {file name:theFile, embedded:false}
end tell
end tell
<markdown>
# Usage Guidelines: Using Omnifocus #
[Omnifocus](http://www.omnigroup.com/products/omnifocus/) is a great tool, but
not as intuitive as e.g. [Things](http://culturedcode.com/things/). This is
not necessarily a bad thing as this is what happens when you give the user the
freedom of tailoring an application to his or her needs.
As a note to myself and perhaps a guide to others trying to figure out how to
<?php // WP 404 ALERTS @ http://wp-mix.com/wordpress-404-email-alerts/
// set status
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
// site info
$blog = get_bloginfo('name');
$site = get_bloginfo('url') . '/';
$email = get_bloginfo('admin_email');
--
-- OCR all documents added to a folder
--
on adding folder items to this_folder after receiving added_items
try
repeat with i from 1 to number of items in added_items
set this_item to item i of added_items
set appName to my getAppName()
tell application appName
activate
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var newBadge = '';
var res = findInboxAnchorMatchResult();
if (res) {