Skip to content

Instantly share code, notes, and snippets.

after "deploy:update_code" do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
$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;
$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 )
))
$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 )
))
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
# 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>
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
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")
}
describe User do
before do
@user = User.new
end
it "accepts many articles" do
// 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.");