Skip to content

Instantly share code, notes, and snippets.

View kjeremy's full-sized avatar

Jeremy Kolb kjeremy

View GitHub Profile
@kjeremy
kjeremy / gist:930924ab9b0704db331a14b5649a4a70
Created October 19, 2023 14:04
python-cryptography cross armv7l build log
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/baxzayqrsl7yymx2yp0k34j7yy218cv0-python3.10-cryptography-41.0.3-armv7l-unknown-linux-gnueabihf.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-rust-hook
// LSP entry point
pub fn handle_folding_range(
world: ServerWorld,
params: FoldingRangeParams,
_token: JobToken,
) -> Result<Option<Vec<FoldingRange>>> {
let file_id = params.text_document.try_conv_with(&world)?;
let file = world.analysis().file_syntax(file_id);
let line_index = world.analysis().file_line_index(file_id);
@kjeremy
kjeremy / SearchFilterAdapterBase.cs
Last active August 29, 2015 14:20
Adapter for SearchView
public abstract class SearchFilterAdapterBase : MvxAdapter, IFilterable
{
protected SearchFilterAdapterBase(Context context)
: base(context) {}
protected SearchFilterAdapterBase(Context context, IMvxAndroidBindingContext bindingContext)
: base(context, bindingContext) {}
protected abstract Filter CreateFilter();
@kjeremy
kjeremy / ExpandableListViewGroupDragHelper.cs
Created April 23, 2015 13:20
Drag and drop for an ExpandableListView (MvvmCross)
public class ExpandableListViewGroupDragHelper : IDisposable
{
private class DragState
{
public int PreviousY { get; set; }
public int SelectedGroupPosition { get; set; }
}
public class DragListEventArgs : EventArgs
{
@kjeremy
kjeremy / gist:d1f6fd52bdf693a738f4
Created March 6, 2015 19:59
MvxTintSpinner for AppCompat v21
/// <summary>
/// Tint-aware version of MvxSpinner so that it's styled properly
/// with AppCompat V21
/// </summary>
public class MvxTintSpinner : MvxSpinner
{
private static readonly int[] TintAttrs =
{
Android.Resource.Attribute.Background,
Android.Resource.Attribute.PopupBackground
@kjeremy
kjeremy / MvxAppCompatSpinner.cs
Last active August 29, 2015 14:14
AppCompat-v22 Tinting for MvvmCross
/// <summary>
/// Tint-aware version of MvxSpinner so that it's styled properly
/// with AppCompat V21
/// </summary>
public class MvxAppCompatSpinner : MvxSpinner, ITintableBackgroundView
{
private static readonly int[] TintAttrs =
{
Android.Resource.Attribute.Background,
Android.Resource.Attribute.PopupBackground