Skip to content

Instantly share code, notes, and snippets.

View rickymoorhouse's full-sized avatar

Ricky Moorhouse rickymoorhouse

View GitHub Profile
@rickymoorhouse
rickymoorhouse / gcal2twitter.php
Created January 26, 2012 14:43
Google Calendar reminders to twitter with OAuth and Postmarkapp Incoming E-mail
<?php
require_once('twitter/twitteroauth.php');
define("CONSUMER_KEY","");
define("CONSUMER_SECRET","");
define("SOURCE","");
define("OAUTH_TOKEN","");
define("OAUTH_TOKEN_SECRET","");
if ps -ef | grep -v grep | grep TweetDeck; then
./curl -L -u $TWITTER_ID:$TWITTER_PWD -d "" http://api.twitter.com/1/account/update_delivery_device.xml?device=none;
else
./curl -L -u $TWITTER_ID:$TWITTER_PWD -d "" http://api.twitter.com/1/account/update_delivery_device.xml?device=sms;
fi
<?php
require_once('twitter/twitteroauth.php');
define("CONSUMER_KEY","");
define("CONSUMER_SECRET","");
define("SOURCE","");
CmdUtils.CreateCommand({
name: "chart",
takes: {"selected text": noun_arb_text},
homepage: "http://samespirit.net/ricky",
author: { name: "Ricky Moorhouse", email: "ricky@samespirit.net"},
license: "MPL,GPL",
execute: function( text ) {
var document = context.focusedWindow.document;
text=document.getSelection();
var html_code='<img src="'+this._chartUrl(text)+'" height="30" width="150" />';