This project ‘kirbytag-codepen’ is now hosted over on GitHub: https://github.com/plfstr/kirbytag-codepen
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://workflowy.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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
<?php | |
return array( | |
'title' => 'Widget Title', | |
'html' => function() { | |
// any data for the template | |
$data = array(); | |
return tpl::load(__DIR__ . DS . 'template.php', $data); | |
} | |
); |
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
// Ver 0.4 Rob Trew | |
// Library for using OSX Yosemite Script Editor scripts | |
// written in an idiom compatible with FoldingText, Drafts, 1Writer, TextWell | |
// In iOS Drafts 4 scripts, the header is simply: | |
// var drafts = this; | |
// For headers for FoldingText and other editors, see: | |
// See: http://support.foldingtext.com/t/writing-scripts-which-run-on-both-foldingtext-and-ios-drafts-4/652/7 | |
// Call functions, after this header, with the prefix: | |
// drafts. |
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
window.fluid.dockBadge = ''; | |
var notify = true; | |
setInterval(updateDockBadge, 500); | |
function updateDockBadge() { | |
var count = document.querySelector(".pls._1r.fwn:not(.hidden_elem)"); | |
if (count) { | |
if (notify) { | |
var title = document.querySelector('._kx ._l2 ._l1').textContent; | |
var text = document.querySelector('._kx ._l3').textContent; |
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
defaults write com.foldingtext.FoldingText DefaultFileExtension md |
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
tell application "FoldingText" | |
tell front document | |
evaluate script "function(editor, options) { | |
var tree = editor.tree(), | |
headings = tree.evaluateNodePath('//heading'), | |
toc = []; | |
headings.forEach(function(each) { | |
var level = each.typeIndentLevel(), | |
text = '- ' + each.text(); |
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
// Log | |
// === | |
// 140607 - cloned from demo keybindings.ftplugin | |
define(function(require, exports, module) { | |
'use strict'; | |
var Extensions = require('ft/core/extensions').Extensions; | |
Extensions.addInit(function (editor) { |
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
-- All code grabbed and requested help with from generous parties and unsuspecting github users. | |
-- | |
-- Create Markdown link from front most tab in safari and append | |
-- to end of current FoldingText document as new list item. | |
-- UNCOMMENT FOR USE IN ALFRED | |
on alfred_script(q) | |
--on run | |
-- -- -- -- -- -- -- -- -- | |
-- |
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
# Grab a URL from Chrome, Safari, Mail, Contacts, Finder, TextEdit, Omnifocus, Chrome Canary, or FoldingText | |
# Borrowed from: http://www.alfredforum.com/topic/917-reminders/?hl=reminders | |
tell application (path to frontmost application as text) | |
set theApplication to get name | |
end tell | |
set theText to "" | |
set theBody to "" | |
if theApplication is "Google Chrome" then | |
tell application id "com.google.chrome" |
NewerOlder