This is for Mac OS X and requires npm.
- Open a terminal
- Type
bitly http://www.somewebsite.com/needs/to/be/shortened/
The shortened link is now in your clipboard. Paste the shortened link wherever you need to!
Installation:
/* iphone... */ | |
@media screen and (max-device-width: 480px) { | |
} | |
/* ...iphone */ | |
/* iphone portrait... */ | |
@media screen and (max-device-width: 480px) and (orientation:portrait) { | |
} | |
/* ...iphone portrait */ |
/** | |
* The history class is in charge of the browser | |
* history and URL's. | |
*/ | |
TT.history = {}; | |
/** */ | |
TT.history.TABLE_OF_CONTENTS = 'table-of-things'; | |
TT.history.HOME = 'home'; | |
TT.history.FOREWORD = 'foreword'; |
# Add this to more_web_steps.rb | |
# Selenium docs: http://code.google.com/p/selenium/wiki/RubyBindings#Javascript_Alert/Confirm today! | |
When /^I (accept|dismiss) the "([^"]*)" alert$/ do |action, text| | |
alert = page.driver.browser.switch_to.alert | |
alert.text.should eq(text) | |
alert.send(action) | |
end |
// See: | |
// | |
// - http://yepnopejs.com/ | |
// - http://lesscss.org/ | |
yepnope({ | |
test: false, | |
nope: [ | |
'preload!stylesheets/test.less', | |
], | |
callback: { |
This is for Mac OS X and requires npm.
bitly http://www.somewebsite.com/needs/to/be/shortened/
The shortened link is now in your clipboard. Paste the shortened link wherever you need to!
Installation:
(function($) { | |
// DON'T EVER USE AN ALERT INSIDE THE CALLBACK. | |
$.fn.tap = function(callback) { | |
if (!this) return false; | |
return this.each(function() { | |
var element = this; | |
if (element.touchHandler) { return; } |
// Copy this file into the appropriate test directory with an appropriate | |
// filename and remove/ edit the tests defined below. Once you do that you can | |
// run the tests directly using: | |
// | |
// node test/my_whatever_test.js | |
// | |
// neat. | |
// | |
// - checkout https://github.com/caolan/nodeunit | |
var testCase = require('nodeunit').testCase; |
# CoffeeScript source | |
$.fn.forceScrollbars = -> | |
@css position: 'static' | |
@[0].offsetHeight if @length > 0 | |
@css position: 'relative' |
# we should be running psql in dev since heroku does. | |
default: &DEFAULT | |
adapter: postgresql | |
encoding: utf8 | |
min_messages: warning | |
development: | |
<<: *DEFAULT | |
database: tedx_dev | |
test: | |
<<: *DEFAULT |
export COLOR_NONE='\[\e[0m\]' # No Color | |
export COLOR_LIGHT_PURPLE='\[\e[1;35m\]' | |
# Get the name of the branch we are on | |
git_prompt_info() { | |
branch_prompt=$(__git_ps1) | |
if [ -n "$branch_prompt" ]; then | |
status_icon=$(git_status) | |
echo $branch_prompt $status_icon | |
fi |