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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# Activate the gem you are reporting the issue against. |
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.1' # as well as '4.2.0' | |
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
git clone git://git.sv.gnu.org/weechat.git | |
git checkout -b v0.4.2 v0.4.2 | |
sudo apt-get install libncursesw5-dev libcurl4-gnutls-dev zlib1g-dev libgcrypt11-dev | |
mkdir build | |
cd build | |
cmake .. -DPREFIX=/path/to/weechat | |
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
select book.contentid as bookid, book.title, b.bookmarkid, b.text, b.annotation | |
from bookmark b | |
inner join content c on b.contentid = c.contentid | |
inner join content book on c.bookid = book.contentid | |
order by book.datelastread desc, b.datecreated |
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 fixed(float, decimal) { | |
decimal = decimal==undefined || decimal < 0 ? 2 : decimal; | |
return Math.round(float*Math.pow(10, decimal)).toString() | |
.replace((new RegExp("(\\d{"+decimal+"})$")), "$'.$1") | |
.replace(/^(-?)(\.)/, "$10.") | |
.replace(/^0$/, '0.00') | |
})(1.495) |
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 value of", property, "is", value].join(" ") |
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
$(document).ready -> | |
$(".table-sortable").dataTable | |
aaSorting: [] # disable default sort (remove this line to enable it) | |
bPaginate: false # Remove pagination | |
bFilter: false # Remove filter | |
bInfo: false # Remove useless info | |
# Columns with .unsortable class are not sortable | |
aoColumnDefs : [ | |
'bSortable': false, | |
'aTargets': ['unsortable'] |
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
program HelloWorld; | |
begin | |
if 1 = 1 then | |
begin | |
writeln('Hello World'); | |
end | |
else | |
begin | |
writeln('We are in Sonic the Hedgehog''s Twilight Zone'); |
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
<html> | |
<head> | |
<title>This is an about page</title> | |
</head> | |
<body> | |
<h1>This is an about page</h1> | |
</body> | |
</html> |
NewerOlder