This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!bash | |
| # | |
| # git-flow-completion | |
| # =================== | |
| # | |
| # Bash completion support for [git-flow](http://github.com/nvie/gitflow) | |
| # | |
| # The contained completion routines provide support for completing: | |
| # | |
| # * git-flow init and version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "takes whatever you have highlighted in visual mode, you give it a localization key, it inserts that and puts the key plus the phrase in a register for yanking into your locale file. | |
| function! Rlocalize(lk) range | |
| let saved_reg_type = getregtype('"') | |
| let old_reg = getreg('"') | |
| normal! ""gvy | |
| let selection = getreg('"') | |
| let key = split(a:lk, '\.') | |
| let phrase = key[-1].": \"".selection."\"" | |
| call setreg('l', phrase, "l") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($){ | |
| $.fn.clearingField = function(){ | |
| return this.each(function(){ | |
| var obj = $(this); | |
| var hint = obj.val(); | |
| obj.focus(function(){ | |
| if(obj.val() == hint){ | |
| obj.val(""); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'id3lib' | |
| Dir.glob("./*.mp3").each do |mp3| | |
| puts "updating #{mp3}" | |
| tag = ID3Lib::Tag.new(mp3) | |
| tag.artist = "artist name" | |
| if tag.update! | |
| puts "#{mp3} updated!" | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Then /^I should see element "([^"]*)" before element "([^"]*)"$/ do |first, second| | |
| xpath = "//*[@id='#{first}']/following-sibling::*[@id='#{second}']" | |
| response_body.should have_xpath(xpath) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #config.ru | |
| use Rack::Static, :urls => ["/stylesheets"], :root => "tmp" | |
| # config/compass.rb | |
| project_type = :rails | |
| project_path = Compass::AppIntegration::Rails.root | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "tmp/stylesheets" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --type-add | |
| ruby=haml,sass,builder,rake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Bullet() { | |
| this.x = null; | |
| this.y = spaceship.y - 5; | |
| this.speed = 4; | |
| this.length = 8; | |
| this.prototype.draw = function(){ | |
| ctx.beginPath(); | |
| ctx.moveTo(this.x, this.y); | |
| ctx.lineTo(this.x, this.y + this.length); | |
| ctx.stroke(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function clearCanvas() { | |
| ctx.clearRect(0, 0, canvas.width, canvas.height); | |
| ctx.fillStyle = "black"; | |
| ctx.fillRect(0, 0, canvas.width, canvas.height); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Given /^I am on the "([^"]*)" item page$/ do |arg1| | |
| @item = Factory(:item, :name => arg1) | |
| visit item_path(@item) | |
| end | |
| Then /^I see the add to cart button$/ do | |
| page.should have_css("button", :text => "Add to cart") | |
| end | |
| When /^I click the "([^"]*)" button$/ do |arg1| |