Skip to content

Instantly share code, notes, and snippets.

View robotsandcake's full-sized avatar
💭
Groovy

Stuart robotsandcake

💭
Groovy
View GitHub Profile
on ButtonAction(
try
end try
end ButtonAction

on ButtonAction(buttonLabel, buttonDescription) try end try end ButtonAction

on ButtonAction(buttonLabel, buttonDescription)
try
	end try
end ButtonAction
# [AppleScripts][applescript] to be invoked by [SwitchXS][switchxs] Scan Panels #
[SwitchXS][switchxs] is software to enable switch access to [Mac OS X][os x], for users with disabilities who have problems using more traditional human interface devices.
This collection of AppleScripts are designed to be invoked by selection of buttons on any scan panel, they are very simple scripts designed to easily carry out tasks we do multiple times a day.
If there's a particular task you would like an [AppleScript][applescript] written for a particular tasking, don't hesitate to ask.
[applescript]:(http://en.wikipedia.org/wiki/AppleScript "AppleScript - Wikipedia, the free encyclopedia"
[switchxs]:http://www.assistiveware.com/switchaccess.php "Switch access for Mac OS X"

Sublime Text 2 – Useful Shortcuts – OS X

General

  • ⌘T go to file
  • ⌘⌃P go to project
  • ⌘R go to methods
  • ⌃G go to line
  • ⌘KB toggle side bar
  • ⌘⇧P command prompt
@robotsandcake
robotsandcake / git_svn_bash_prompt.sh
Created November 2, 2012 16:26 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.bitlbee</string>
<key>ProgramArguments</key>
<array>
@robotsandcake
robotsandcake / motd.tcl
Created July 10, 2013 11:55
My motd.tcl scripts for the raspberry pi, adapted from mewbies.com tutorial.
#!/usr/bin/env tclsh
# * Variables
set var(user) $env(USER)
set var(path) $env(PWD)
set var(home) $env(HOME)
# * Check if we're somewhere in /home
#if {![string match -nocase "/home*" $var(path)]} {
if {![string match -nocase "/home*" $var(path)] && ![string match -nocase "/usr/home*" $var(path)] } {
@robotsandcake
robotsandcake / Rakefile
Last active December 20, 2015 04:09
rakefile
require "rubygems"
require "bundler/setup"
require "stringex"
require "twitter"
# Rsync login credentials go here
-----
# This will be configured for you when you run config_deploy
@robotsandcake
robotsandcake / rakefile.new
Last active December 20, 2015 05:58
this is the modified one that I'm working on at the moment
require "rubygems"
require "bundler/setup"
require "stringex"
require "twitter"
Rsync configuration info
---
# This will be configured for you when you run config_deploy
deploy_branch = "gh-pages"