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
gem 'activerecord', '4.1.0.beta1' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
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
div { | |
/* Change it to 5%, then 10%, then 50% */ | |
width: 11%; | |
display: table-cell; | |
background-color: pink; | |
} |
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
body { | |
font: 16px/1.4 sans-serif; | |
} | |
div { | |
width: 6em; | |
height: 12em; | |
background: pink; | |
font-size: 0; | |
letter-spacing: -1px; |
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
body { | |
font: 20px/1.4 Helvetica Neue, sans-serif; | |
} | |
p { | |
width: 24em; | |
padding: 1em 2em; | |
} | |
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
body { | |
font: 20px/1.4 Helvetica Neue, sans-serif; | |
} | |
p { | |
width: 24em; | |
padding: 1em 2em; | |
} | |
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
(function($, undefined) { | |
'use strict'; | |
function Repeating(container) { | |
this.container = $(container); | |
this.template = this.items().first().clone(); | |
this.template.find('input, select, textarea').val(''); | |
} |
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
;(function() { | |
var sham = $('<pre></pre>'); | |
sham.appendTo('body'); | |
$(document).on('input change focus', 'textarea', function() { | |
var textarea = $(this); | |
sham.css('width', textarea.outerWidth()); |
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
// Shades from brightest to darkest | |
// Aqua | |
rgb(80, 167, 249) | |
rgb(4, 101, 192) | |
rgb(21, 79, 134) | |
rgb(4, 36, 82) | |
// Fern |
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
# Activate the gem you are reporting the issue against. | |
gem 'activerecord', '~> 4.1' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# Ensure backward compatibility with Minitest 4 | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
# This connection will do for database-independent bug reports. |
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
... | |
<%= javascript_tag do %> | |
// Auto refresh CSS every 2s, only on development, turbolinks ready | |
!this.REFRESHER && (this.REFRESHER = setInterval(function() { | |
$('link[rel="stylesheet"]').attr('href', function(index, value) { | |
return value.replace(/\?.+|$/, '?' + Math.random()); | |
}); | |
}, 2000)); | |
<% end if Rails.env.development? %> |
OlderNewer