Skip to content

Instantly share code, notes, and snippets.

@Wizmann
Wizmann / workflowy-with-image.js
Last active June 14, 2023 13:29
workflowy-with-image.js
// ==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 */
@bastianallgeier
bastianallgeier / mywidget.php
Created March 9, 2015 10:54
Most basic widget setup for panel widgets. You would put those two files in /site/widgets/mywidget/
<?php
return array(
'title' => 'Widget Title',
'html' => function() {
// any data for the template
$data = array();
return tpl::load(__DIR__ . DS . 'template.php', $data);
}
);
@RobTrew
RobTrew / DraftsFunctions_ScriptEditor.js
Last active October 26, 2024 06:25
OS X 10.10 (Yosemite) definitions of the basic script editing functions used in iOS Drafts 4
// 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.
@plfstr
plfstr / readme.md
Last active October 21, 2015 10:14 — forked from ClementRoy/kirbytext.extended.php
Kirby 2 Kirbytag extension for simple CodePen embeds.
@danielbuechele
danielbuechele / userscript.js
Last active June 13, 2017 18:53
Fluidapp Userstyle for Facebook Messenger
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;
@notverypc
notverypc / FoldingTextDefault
Created August 25, 2014 21:48
Change Default FoldingText Format
defaults write com.foldingtext.FoldingText DefaultFileExtension md
@wastemobile
wastemobile / toc
Created June 21, 2014 01:37
Generate FoldingText TOC with Applescript
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();
@docsteveharris
docsteveharris / main.js
Created June 7, 2014 21:16
FoldingText keybindings to focus in or out by a level
// 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) {
@tzarskyz
tzarskyz / gist:07ccdb64b7f860bd1f4c
Created June 6, 2014 11:41
Export Safari's Tab to frontmost FoldingText 2.x window - Alfred ready.
-- 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
-- -- -- -- -- -- -- -- --
--
@EvanLovely
EvanLovely / Get_front_Mac_App_URL--markdown.applescript
Created May 27, 2014 22:05
Get Front Mac App Title and URL and make a Markdown Link to it
# 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"