Skip to content

Instantly share code, notes, and snippets.

View lukemt's full-sized avatar

lukemt

View GitHub Profile
// ==UserScript==
// @name WorkflowyStylableTags
// @description Gives each tag it's own css style, so you can style them with Stylish. I use Blank Canvas to manage my userscripts in Chrome.
// @author Nigel Thorne
// @include http*://*workflowy.com/*
// @version 1.0
// ==/UserScript==
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
@lukemt
lukemt / workflowy-with-image.js
Created January 7, 2016 00:27 — forked from Wizmann/workflowy-with-image.js
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 */
@lukemt
lukemt / test.html
Last active January 21, 2016 13:56
<html>
<body>
i like it
</body>
</html>
@lukemt
lukemt / SessionVar.js
Created September 16, 2014 03:39
Meteor SessionVar (Store a ReactiveVar as a Session-Variable)
SessionVar = function(key, initialValue){
if (! (this instanceof SessionVar))
// called without `new`
return new SessionVar(key, initialValue);
this.key = key;
// check if already defined
if( SessionVar.keys.indexOf(key) !== -1 )
console.log('SessionVar(' + key + ') defined twice!');
SessionVar.keys.push(key);