This file contains 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
// Font-face mixin | |
@mixin font-face($name, $path, $weight: normal, $style: normal){ | |
@font-face { | |
font-family: $name; | |
src: url('#{$path}.eot'); | |
src: url('#{$path}.eot?#iefix') format('embedded-opentype'), | |
url('#{$path}.woff') format('woff'), | |
url('#{$path}.ttf') format('truetype'), | |
url('#{$path}.svg#BariolRegularRegular') format('svg'); |
This file contains 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
# Extracting links from your Safari Reading List | |
# | |
# Copy your Safari Bookmarks file first: | |
# cp ~/Library/Safari/Bookmarks.plist | |
# | |
# Convert the binary plist to xml | |
# plutil -convert xml1 Bookmarks.plist | |
# | |
# install the plist gem | |
# gem install plist |
This file contains 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
.nbrk{ | |
line-height: 1em | |
} |
This file contains 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
module Middleman::Features::Navigation | |
class << self | |
def registered(app) | |
app.helpers NavigationHelpers | |
end | |
alias :included :registered | |
end | |
module NavigationHelpers |
This file contains 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
# RubyGems | |
cd /usr/local/src | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz | |
tar -zxf rubygems-1.3.7.tgz | |
cd rubygems-1.3.7 | |
ruby setup.rb | |
cd |
This file contains 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
set :application, 'domain' | |
set :deploy_to, '/var/www/domain.com' | |
set :repository, '.' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :copy_compression, :gzip | |
set :use_sudo, false | |
set :user, 'domain_user' | |
set :copy_exclude, ['.git', 'src', '.sass-cache', 'Capfile', 'config'] |
This file contains 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
def test_void | |
@gateway.expects(:post_xml).returns(post_xml_void_accepted)` | |
assert response = @gateway.void(2826987, @options_void)` | |
assert_equal true, response.success?, 'Check if the transaction existst.' | |
assert_equal 'cancellation succeeded', response.message.to_s | |
end |
NewerOlder