Skip to content

Instantly share code, notes, and snippets.

View bsoist's full-sized avatar

Bill Soistmann bsoist

View GitHub Profile
@bsoist
bsoist / fixlinks.js
Created September 10, 2014 17:11
Fix links on my note blog
@bsoist
bsoist / fixpermalinks.js
Created October 22, 2014 16:04
fixes the permalinks on my noteblog
Verifying that +bsoist is my openname (Bitcoin username). https://onename.com/bsoist
@bsoist
bsoist / Task Whole Outline
Last active December 20, 2015 15:09
This Fargo script takes the whole file and converts it to a format readable by TaskPaper. See http://4a.bsoi.st/ for more information.
/*
See http://4a.bsoi.st/ for more information
and an updated version of this.
*/
Task Whole Outline
var taskdata = "";
var bsoist_prefix = "";
var bsoist_suffix = ":\r\n";
op.firstSummit();
op.visitSubs(
@bsoist
bsoist / bsoistVerbs.js
Last active December 20, 2015 15:09
My own verbs to load into Fargo.io.
/*
Heavily inspired by
Jeffrey Kishner [ http://blog.jeffreykishner.com/ ]
Ken Smith [ http://smith.smallpict.com/ ]
and
Dave Winer [ http://scripting.com ]
I'm working on posts to give proper credit.
*/
@bsoist
bsoist / Taskpaper Scripts
Last active December 20, 2015 15:09
Takes the current node and converts to TaskPaper format. See http://4a.bsoi.st/ for more information.
// See http://4a.bsoi.st/ for more information
Task This
dialog.ask("Enter a file name ", "", "", function(answer) {
bsoistVerbs.taskThis(answer);
});
Task Whole Outline
op.firstSummit();
bsoistVerbs.taskThis(false);
@bsoist
bsoist / bsoistVerbs.taskThis.js
Last active December 20, 2015 15:09
One of my verbs for converting to TaskPaper format. See http://4a.bsoi.st/ for more information
/*
One of my verbs for use converting
OPML to TaskPaper
See http://4a.bsoi.st/ for more information
*/
taskThis: function(filename) {
var bsoist_ext = '.todo';
if (! filename ) {
filename = file.getCurrentFilePath().split('.')[0] + bsoist_ext;
@bsoist
bsoist / addlink.js
Created August 8, 2013 17:11
One of my custom verbs for Fargo.
@bsoist
bsoist / tweetthis.js
Created August 8, 2013 17:36
My tweeting verbs for Fargo
tweetThis: function() {
var text = op.getLineText();
bsoistVerbs.goTweet(text,null);
},
tweetBlog: function() {
var text = op.getLineText();
var link = op.getCursorUrl();
bsoistVerbs.goTweet(text,link);
},
@bsoist
bsoist / fanium.py
Created August 9, 2013 17:27
Ranking NFL players based on Fanium rules. See http://bsoist.smallpict.com/2013/08/09/rankingNflPlayersUsingFaniumRules for more information.
import httplib, re
from htmldom import htmldom
from operator import itemgetter
index, playerinfo = 0, []
PASSING_YARDS = 0
PASSING_TDS = 1
INT = 2
RUSHING_YARDS = 4