This file contains hidden or 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
// edit the next line to use your calendars | |
calendars = ['home', 'work', 'evilplan']; | |
inputString = editor.getText(); | |
stringParts = inputString.split('\n'); | |
dateTimeDetails = stringParts[1]; | |
cal = stringParts[2]; | |
calendar = stringParts[2].slice(0,cal.length).toLowerCase(); | |
newText = ''; | |
calendars.forEach(function(c){ | |
if (calendar === c) { |
This file contains hidden or 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
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` | |
echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install gcsfuse | |
sudo apt-get install git | |
sudo apt-get install python-pip | |
sudo apt-get install xserver-xorg xserver-xorg-core xfonts-base xinit --no-install-recommends | |
sudo apt-get install libgl1-mesa-dri x11-xserver-utils gnome-session gnome-shell gnome-terminal gnome-control-center nautilus gnome-icon-theme gnome-panel --no-install-recommends | |
sudo apt-get install gdm3 --no-install-recommends |
This file contains hidden or 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
Verifying that +bsoist is my openname (Bitcoin username). https://onename.com/bsoist |
This file contains hidden or 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
jQuery(".spPermalink").each(function() {this.children[0].href = this.children[0].href.split('/').slice(0,3).join('/') + "/" + pagetable.path + "/" + this.children[0].href.split('/').slice(-1).join('/'); }); |
This file contains hidden or 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
jQuery(".aStreamDayLink").each(function() { this.href = this.href.split('/').slice(0,3).join('/') + "/" + pagetable.path + "/" + this.href.split('/').slice(3).join('/'); }) |
This file contains hidden or 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
import json, urllib2, time | |
API_KEY = "" | |
BASE_URL = "https://disqus.com/api/3.0/" | |
CURSOR = "" | |
FORUM = "" | |
DOMAIN = "" | |
threads = [] |
This file contains hidden or 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
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 |
This file contains hidden or 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
tweetThis: function() { | |
var text = op.getLineText(); | |
bsoistVerbs.goTweet(text,null); | |
}, | |
tweetBlog: function() { | |
var text = op.getLineText(); | |
var link = op.getCursorUrl(); | |
bsoistVerbs.goTweet(text,link); | |
}, |
This file contains hidden or 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
addLink: function() { | |
var link = prompt("Paste here ","").split('==='); | |
var url = link[0]; | |
var title = link[1]; | |
bsoistVerbs.postUnderDate(2); | |
op.insert(title,down); | |
op.attributes.setOne("type","link"); | |
op.attributes.setOne("url",url); | |
op.attributes.setOne("icon","link"); | |
op.attributes.setOne("isFeedItem","true"); |
NewerOlder