Skip to content

Instantly share code, notes, and snippets.

View braidn's full-sized avatar
🏰
Storming

Braden Douglass braidn

🏰
Storming
View GitHub Profile
set the PageURL to (the clipboard as string)
set rlogin to "yourLogin"
set mapikey to "yourApiKey"
set the EncodedURL to urlencode(PageURL) of me
set curlCMD to ¬
¬
"curl --stderr /dev/null \"http://api.bit.ly/v3/shorten?longUrl=" & EncodedURL & "&history=1&format=txt&login=" & rlogin ¬
& "&apiKey=" & mapikey ¬
& "\""
-- Run the script and get the result:
set langmenu=none
" turning off the gui in macvim
if has("gui_running")
set guioptions=egmrt
endif
" time change causes color change
let currentHour = strftime ("%H") echo "currentHour is " currentHour if currentHour < 6 + 0
colorscheme darkblue
@braidn
braidn / Output ( Mon, 27 Feb 2012 15:06:11 )
Created February 27, 2012 18:03
Rails 3 in Action Cucumber issues
ing the default profile...
Feature: Creating projects
In order to have projects to assign tickets to
As a user
I want to create them easily
Background: # features/creating_projects.feature:5
Given I am on the root_path # features/step_definitions/createProject_steps.rb:1
When I follow "New Project" # features/step_definitions/createProject_steps.rb:5
@braidn
braidn / Capybara Focus
Created March 23, 2012 01:39
capybara head scratcher
And /^I should see "([^"]*)" using an id tag labeled "([^"]*)"$/ do |content, tag|
page.has_css?(tag)
page.has_content?(content)
end
@braidn
braidn / old style
Created May 9, 2012 13:41
Adding Command T to Janus
vim_plugin_task "ctrlp", "git://github.com/kien/ctrlp.vim.git"
@braidn
braidn / git branch
Created May 16, 2012 14:42
Git Blog Posts
git branch postNameOfYourBranch
@braidn
braidn / gem albino
Created May 16, 2012 14:53
Albino in Nanoc
gem install albino
@braidn
braidn / brew ssh
Created May 16, 2012 15:08
SSH Blog Post
brew install ssh-copy-id
@braidn
braidn / brew install
Created May 16, 2012 15:15
Fixing Brew Mysql
brew install
@braidn
braidn / env.rb
Created May 29, 2012 18:16
Cucumber setup
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'cucumber/rails'
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd