Skip to content

Instantly share code, notes, and snippets.

View ParkinT's full-sized avatar
💭
Retired from the workforce !!

Thom Parkin ParkinT

💭
Retired from the workforce !!
View GitHub Profile
@seanlilmateus
seanlilmateus / evernote.rb
Last active January 25, 2016 19:24
ScriptingBridge with MacRuby or Rubymotion
#!/Library/RubyMotion/bin/ruby -wKUW0
# if your using MacRuby you might change this to
# => #!/usr/bin/env macruby -wKUW0
framework 'Foundation'
framework 'ScriptingBridge'
# the original is part of an arstechnica article by Ryan
# SOURCE: http://arstechnica.com/apple/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge/
# this script with get your favourite songs and create a Evernote Note # German and English
@tomas-stefano
tomas-stefano / Capybara.md
Last active October 2, 2024 04:58
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
#!/usr/bin/env ruby
# Remote control for Trello
#
# To configure, get a Trello developer key, and stick it in `~/.trello-remote`
#
# # ~/.trello-remote
# TRELLO_DEVELOPER_PUBLIC_KEY=<your key>
#
# Next run `trello-remote token`, follow the instructions in your
@thillerson
thillerson / gist:0eb01e76f4a1cbdcca7d
Created June 4, 2014 17:38
Easy xcode switching for playing with swift
➜ cat .bash_aliases | grep xcode
alias x5="sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"
alias x6="sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer"
➜ x5
➜ xcrun swift
xcrun: error: unable to find utility "swift", not a developer tool or in PATH
➜ x6
➜ xcrun swift
Welcome to Swift! Type :help for assistance.
1>
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
@afolarin
afolarin / docker-log-gist.md
Last active March 16, 2023 13:02
docker-logs
@AngryAnt
AngryAnt / MoveComponentContext.cs
Last active July 5, 2017 05:44
Adds "Move to Top" and "Move to Bottom" items to the inspector context menu of components.
using UnityEngine;
using UnityEditor;
public class MoveComponentContext
{
enum Destination
{
Top,
Bottom