Skip to content

Instantly share code, notes, and snippets.

brandondiamond

Block or report user

Report or block brandondiamond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brandondiamond
brandondiamond / is_fixed_extent_list_borked.dart
Last active Sep 25, 2019
Test illustrating potential bug in how scroll offset corrections are calculated in sliver_fixed_extent_list.dart
View is_fixed_extent_list_borked.dart
/////////////// Background ///////////////
/*
(The test case that appears below may do a better job of explaning than this wall of text :)
I recently noticed this calculation while investigating some framework code:
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart#L235
There's an associated test case, and though it makes sense, I think it misses a potential issue:
https://github.com/flutter/flutter/blob/master/packages/flutter/test/widgets/slivers_evil_test.dart#L255
@brandondiamond
brandondiamond / ninexample.cpp
Created Dec 28, 2011
An example of using arrays and $nin with the MongoDB C++ driver
View ninexample.cpp
/* Copyright 2009 10gen Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
You can’t perform that action at this time.