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
lp -o media="30323 Shipping Label" -o fit-to-page -o landscape -d DYMO_LabelWriter_450_Turbo "./file.pdf" |
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
Feature: offer price | |
Scenario: accept offer price | |
Given I offer a price of "5.75" | |
When the price is accepted | |
Then I should be able to send payment |
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
<ol> | |
<li> | |
<a data-notifications="10" class="button" href="#">New Comments on Your Posts</a> | |
</li> | |
<li> | |
<a class="button" href="#">Number of Post Likes :)</a> | |
</li> | |
<ol> |
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
<?php | |
// http://michelf.ca/projects/php-markdown/ | |
require_once 'markdown.php'; | |
/** | |
* parses markdown before printing on the page | |
* | |
* you could put this in MarkdownCommentParser::comment | |
* if you wanted to save off the html |
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
<label> | |
<input type="checkbox"> | |
Is this awesome? | |
</label> |
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
mkdir /app | |
# Compiling Apache | |
curl http://www.us.apache.org/dist/httpd/httpd-2.2.22.tar.gz | tar xzf - | |
cd httpd-2.2.22 | |
./configure --prefix=/app/apache --with-z=/usr/local/zlib --enable-rewrite --enable-so --enable-deflate --enable-expires --enable-headers | |
make && make install |
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
array( | |
'url' => '...', | |
'title' => '...', | |
'author' => '...', | |
'id' => 123 // the new item | |
) |
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
<form method="POST"> | |
<div class="field"> | |
<label for="url">URL:</label> | |
<input type="text" for="url" name="website[url]" value="<?php echo $website->url ?>" /> | |
</div> | |
<div class="field"> | |
<label for="title">Title:</label> | |
<input type="text" for="title" name="website[title]" value="<?php echo $website->title ?>" /> |
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 :user, "USERNAME" | |
# about the application | |
set :application, "example.com" | |
set :port, 2222 | |
# the type and location of the repository | |
set :scm, :git | |
set :repository, "." |
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
# product.rb | |
class Product < ActiveRecord::Base | |
has_many :categorizations | |
has_many :categories, :through => :categorizations | |
end | |
# category.rb | |
class Category < ActiveRecord::Base | |
has_many :categorizations | |
has_many :products, :through => :categorizations |