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
after "deploy:update_code" do | |
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" | |
end |
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
$border-radius: <%= @settings.border_radius %>; | |
@mixin border-radius { | |
-moz-border-radius: $border-radius; | |
-webkit-border-radius: $border-radius; | |
border-radius: $border-radius; | |
} | |
div { | |
@include border-radius; |
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
$HTTP["host"] =~ "(^|www\.)brlafreniere.com$" { | |
proxy.balance = "hash" | |
proxy.server = ( "brlafreniere.com" => ( | |
( "host" => "127.0.0.1", | |
"port" => 5000 ), | |
( "host" => "127.0.0.1", | |
"port" => 5001 ), | |
( "host" => "127.0.0.1", | |
"port" => 5002 ) | |
)) |
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
$HTTP["host"] =~ "(^|www\.)brlafreniere.com$" { | |
proxy.balance = "hash" | |
proxy.server = ( "brlafreniere.com" => ( | |
( "host" => "127.0.0.1", | |
"port" => 5000 ), | |
( "host" => "127.0.0.1", | |
"port" => 5001 ), | |
( "host" => "127.0.0.1", | |
"port" => 5002 ) | |
)) |
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
dir-listing.encoding = "utf-8" | |
server.dir-listing = "enable" |
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
# link made with link_to "delete", foo_url(foo), :method => :delete | |
<a rel="nofollow" href="http://example.com:3000/control_panel/articles/100" data-method="delete">Delete</a> |
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
it "has a unique title" do | |
@article.title = "A Simple Title" | |
@article.save | |
@duplicate = Article.new(:title => "A Simple Title") | |
@duplicate.valid?.should be_false |
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
var test_slug_is_created_properly = function () { | |
title = "This is a neat title." | |
slug = create_slug(title); | |
assert_equal(slug, "this-is-a-neat-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
describe User do | |
before do | |
@user = User.new | |
end | |
it "accepts many articles" do |
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
// The problem with this code is, I'm not seeing "A user connected." in my server's console. | |
var app = require('./app'); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
var port = 3000; | |
io.on('connection', function(socket) { | |
console.log("A user connected."); |
OlderNewer