Skip to content

Instantly share code, notes, and snippets.

rain@sunshowers-linux ~/dev/debug-ignore {17:38} [0]
% jj log
@ mnvpzxsm [email protected] 2023-11-07 17:38:50.000 -08:00 da5629dd
│ (empty) (no description set)
◉ ruksyqyz [email protected] 2023-07-14 17:44:02.000 -07:00 main HEAD@git 52644d34
│ schemars support (cant work due to circular dep issues)
◉ okmsrroy [email protected] 2023-01-07 15:40:56.000 -08:00 main@origin 1.0.5 47a911ce
╷ [debug-ignore] version 1.0.5
@sunshowers
sunshowers / wrap.rs
Created September 28, 2023 20:32
ratatui wrapping with textwrap
// MIT License
//
// Copyright (c) 2023 Oxide Computer Company
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
#[inline]
fn visit_map<__A>(
self,
mut __map: __A,
) -> _serde::__private::Result<Self::Value, __A::Error>
where
__A: _serde::de::MapAccess<'de>,
{
let mut __collect = _serde::__private::Vec::<
_serde::__private::Option<(
Will perform edits:
manifest: cargo-guppy/Cargo.toml
* update guppy-cmdlib to path ../tools/guppy-cmdlib
manifest: guppy-cmdlib/Cargo.toml
* update guppy to path ../../guppy
manifest: tools/cargo-compare/Cargo.toml
* update guppy-cmdlib to path ../guppy-cmdlib
manifest: tools/fixture-manager/Cargo.toml
* update guppy-cmdlib to path ../guppy-cmdlib
// This is a map of direct deps by name -> version -> packages that depend on it.
let mut direct_deps: BTreeMap<&str, BTreeMap<&Version, Vec<&str>>> = BTreeMap::new();
package_graph.query_workspace().resolve_with_fn(|_, link| {
// Collect direct dependencies of workspace packages.
let (from, to) = link.endpoints();
if from.in_workspace() && !to.in_workspace() {
direct_deps
.entry(to.name())
.or_default()
.entry(to.version())

Keybase proof

I hereby claim:

  • I am sunshowers on github.
  • I am sunshowers (https://keybase.io/sunshowers) on keybase.
  • I have a public key ASB9fg3BGVFadbbFMl20lI6N1k49Aq5PP2XNKbc4xwlKCAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am sid0 on github.
* I am sid0 (https://keybase.io/sid0) on keybase.
* I have a public key ASAn7pVFpxCJoqdNsbxKPtu3nJ5c0zWWsncnZS7g8A0s5go
To claim this, I am signing this object:
#!/usr/bin/env python3
# Copyright 2004-present Facebook. Licensed as GPLv2+.
"""Lazy loading for Python 3.
Requires Python 3.5.2 and above.
This uses the new importlib finder/loader functionality available in Python 3.5
and up. The code reuses most of the mechanics implemented inside importlib.util,
but with a few additions:
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/comments.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/compound_keys.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/delimiters.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/expression_parsing_errors.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/filters.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/general.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/implicit_iterator.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/inheritable_partials.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/inheritable_sections.json
src/tests/Public/v7.0/Suites/groue:GRMustache/GRMustacheSuites/inverted_sections.json
# HG changeset patch
# User Siddharth Agarwal <[email protected]>
# Date 1346524926 -19800
# Node ID 78cc2ca0914c8ca2c8ba4a650b3af792d53e9609
# Parent 3a8b3255f42b95c0069b78d807ad95995ef263db
Make Pymake a stub for GNU make.
diff --git a/build/pymake/make.py b/build/pymake/make.py
--- a/build/pymake/make.py
+++ b/build/pymake/make.py