Skip to content

Instantly share code, notes, and snippets.

// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: pink; icon-glyph: user;
// lookup gravatar for contacts without images.
var MD5 = function (string) {
function RotateLeft(lValue, iShiftBits) {
return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
}
@WFreelandEcon
WFreelandEcon / doc2markdown.py
Created June 14, 2018 06:55 — forked from goerz/doc2markdown.py
Convert a word (doc/docx) file to markdown
#!/usr/bin/env python
"""Convert a word (doc/docx) file to markdown"""
import sys
import os
import subprocess
SOFFICE = r'/Applications/LibreOffice.app/Contents/MacOS/soffice'
PANDOC = r'pandoc'
(* Import and update your Pinboard bookmarks to DEVONthink
Based on work done by Christian Grunenberg on Mon Jan 23 2006,
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished.
By Sascha A. Carlin <https://about.me/sascha.a.carlin> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items
Copyright (c) 2018. All rights reserved. *)
use framework "Foundation"
@WFreelandEcon
WFreelandEcon / commas_mmdtable.py
Created March 18, 2018 13:17 — forked from philgruneich/commas_mmdtable.py
Scripts to simplify the syntax for MultiMarkdown tables.
import re
table = '''First Header,Second Header,Third Header
1st Item,2nd\,Item,3rd Item
,One cell,Two cells
Two cells,One cell,
Awesome'''
ttable = [[re.sub('\\\,',',',cell) for cell in re.split('(?<!\\\),', row)] for row in table.split('\n')]
@WFreelandEcon
WFreelandEcon / archiveTweets.rb
Created February 27, 2018 12:12 — forked from CJKinni/archiveTweets.rb
Download your twitter posts into a single markdown file
#!/usr/bin/ruby
=begin
This script turns downloadable tweets from twitter into a markdown
based text file timeline.
To run, change the 'Username' and 'TwitterFilename' below.
I THINK that this is all working. Check the previous gist version
for a more stable script with far fewer features. Let me know in the
@WFreelandEcon
WFreelandEcon / generate_tasks_graph.py
Created February 27, 2018 09:32 — forked from Moving-Electrons/generate_tasks_graph.py
This script takes two arguments (Taskpaper filename and Output image filename) and returns a graph showing the number of tasks due per day. More information on www.movingelectrons.net
import sys
import re
import datetime as dt
from collections import Counter
import pandas as pd
import seaborn as sns
'''
This script takes the following arguments and returns a graph showing the number of tasks due per day.
@WFreelandEcon
WFreelandEcon / Sort_Tasks.py
Created February 27, 2018 09:27 — forked from Moving-Electrons/Sort_Tasks.py
This script generates a text/markdown file with the tasks from a taskpaper file sorted by due date in three groups: Overdue, Today and Tomorrow. Check out www.movingelectrons.net for more information.
import sys
import re
import operator
import datetime
'''
This script generates a text/markdown file with the tasks from a taskpaper file sorted by due date in three groups:
Overdue, Today and Tomorrow. Also, all tasks with the @today tag are placed in the Today group.
The following parameters should be passed when running the script:
@WFreelandEcon
WFreelandEcon / textwell-action-chart.html
Created January 31, 2018 21:27 — forked from takahashihideki-git/textwell-action-chart.html
Textwell Action "Chart" ( use ChartNew.js )
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta charset="UTF-8">
<title>Chart</title>
<style>
body {
-webkit-text-size-adjust: 100%;
margin: 0;
<html>
<title>Sitemap | Packal: Alfred Workflows and Themes</title>
<meta name="description" content="Browse lists of the webpages/URLs on packal.org. Power users can also use this page to view Aldred WorkFlows and themes in compact list format for faster browsing." />
<meta name="keywords" content="app, productivity, applications, efficiency, alfred, shortcut" />
<body role="document">
<main role="navigation">
<b><a href="http://packal.org/"> packal.org (HOME) </a></b>
<a href="http://packal.org/beta"> BETA </a>
<a href="http://packal.org/faq"> FAQ </a>
<a href="#documentation"> DOCUMENTATION </a>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>Word Cards</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<style>
html {
height: 100%;