Skip to content

Instantly share code, notes, and snippets.

View rickymoorhouse's full-sized avatar

Ricky Moorhouse rickymoorhouse

View GitHub Profile
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" />';
<?php
require_once('twitter/twitteroauth.php');
define("CONSUMER_KEY","");
define("CONSUMER_SECRET","");
define("SOURCE","");
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
@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","");
@rickymoorhouse
rickymoorhouse / my.cnf
Created October 31, 2013 21:53
MySQL Config
# The MySQL database server configuration file.
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
@rickymoorhouse
rickymoorhouse / morsetache.py
Last active December 29, 2015 20:00
Morse code moustache...video to follow
#!/usr/bin/python
import time
from pyglow import PyGlow
def flash(char):
if char == '-': # Dashes... in yellow
print '-'
pyglow.color(4,255)
time.sleep(1)
pyglow.color(4,0)
### Keybase proof
I hereby claim:
* I am rickymoorhouse on github.
* I am rickymoorhouse (https://keybase.io/rickymoorhouse) on keybase.
* I have a public key whose fingerprint is E3C0 A8E5 CFFA 2B7D 1497 0E81 F256 093D DD31 BAAF
To claim this, I am signing this object:
@rickymoorhouse
rickymoorhouse / capture.py
Created January 21, 2015 19:36
Capture Image
# Gather the block devices
blockDevices = self.client['Virtual_Guest'].getBlockDevices(id=server.id)
objectMask ="mask[id;note;transactionId;globalIdentifier;children.id;children.note;children.transactionId]"
# Gather the List of template device groups/images from softlayer as to reduce search
preVGBDTGs = self.client['Account'].getPrivateBlockDeviceTemplateGroups(mask=objectMask)
versionStamp = " [v"+version+"]"
As part of national social distancing measures to limit the spread of coronavirus, we have had to limit the numbers of children and young people attending educational and childcare settings, to ensure that pupils and staff attending could do so safely. That is why, since 23 March, education and childcare settings have only been open to priority groups (children of critical workers and vulnerable children).
Throughout this document there is a distinction made between ‘vulnerable children’, which has a wide definition as described in Supporting vulnerable children and young people during the coronavirus (COVID-19) outbreak and in the relevant section below, and those who are ‘clinically vulnerable’ to coronavirus.
As a result of the huge efforts everyone has made to adhere to strict social distancing measures, the transmission rate of coronavirus has decreased. We therefore anticipate, with further progress, that we may be able, from the week commencing 1 June, to welcome back more children to early years, sch
def happyish_sequence(numbers):
# Take the last number from the list and convert to a string
number = numbers[-1]
s_number = str(number)
# If it's only one digit, then square it
if len(s_number) == 1:
output = number**2
# Otherwise find the difference
else: