Skip to content

Instantly share code, notes, and snippets.

@baek-jinoo
baek-jinoo / ImageMagick 6.9.2-10 Homebrew Formula.md
Last active July 10, 2018 18:56 — forked from yvbeek/ImageMagick 6.9.7-8 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.2-10

Homebrew Formula patching old ImageMagick release 6.9.2-10

Install

brew install https://gist.githubusercontent.com/baek-jinoo/17dd5e55284b2ab0a05695a7224c1587/raw/f71affa1ec5dc492d375285ba4f851f4b4fec4f5/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index d957bd1..60d3002 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -130,7 +130,7 @@ module ActiveRecord
return super if ids.first.kind_of?(Symbol)
return super if block_given? ||
primary_key.nil? ||
- default_scopes.any? ||
+ !default_scopes.all?(&:cacheable?) ||
1234 test
testing more
another test
@SamSaffron
SamSaffron / gist:1226098
Created September 19, 2011 07:22
denali
declare @t table (Id int, Total int)
declare @i int = 1
while @i < 100
begin
insert @t values (@i, @i * 10)
set @i = @i + 1
end
select *,
public void TestMultiMappingVariations()
{
var sql = @"select 1 as Id, 'a' as Content, 2 as Id, 'b' as Content, 3 as Id, 'c' as Content, 4 as Id, 'd' as Content, 5 as Id, 'e' as Content";
var order = connection.Query<dynamic, dynamic, dynamic>(sql, (o, owner, creator) => { o.Owner = owner; o.Creator = creator; }).First();
Assert.IsEqualTo(order.Id, 1);
Assert.IsEqualTo(order.Content, "a");
Assert.IsEqualTo(order.Owner.Id, 2);
Assert.IsEqualTo(order.Owner.Content, "b");