Skip to content

Instantly share code, notes, and snippets.

$ poetry install --no-root -vvv
Using virtualenv: /home/ilyagr/.cache/pypoetry/virtualenvs/jj-docs-ZVbGoaMc-py3.11
Installing dependencies from lock file
Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it.
Finding the necessary packages for the current system
Package operations: 0 installs, 1 update, 0 removals, 36 skipped
• Installing babel (2.13.1): Pending...
@ilyagr
ilyagr / .gitconfig
Created February 10, 2023 05:25 — forked from amiryal/git config
Easily visualise Git merge.conflictstyle diff3 with meld, while preserving all information
[merge]
conflictstyle = diff3
tool = three_meld
[mergetool "three_meld"]
# Opens up four diff windows:
# LOCAL:MERGED, BASE:LOCAL, BASE:REMOTE, LOCAL:REMOTE
#
# Lets you edit the MERGED file (including original diff3 markers), showing
# you the final diff from LOCAL. For reference, you can look in the other
# windows to see how LOCAL and REMOTE are each different from BASE, as well
@ilyagr
ilyagr / jj-vim.md
Last active April 30, 2023 05:20
Using Vim as a `jj` difftool with the DirDiff plugin or vimtabdiff.py script

vimdiff comes as a pre-configured merge tool for jj and can be used with jj resolve out of the box. However, the default configuration for vimdiff as a diff editor (for jj split, etc.) is barely useable.

To more conveniently use Vim as a difftool for jj, try one of the following setups:

DirDiff plugin

  1. Install the DirDiff Vim plugin.
@ilyagr
ilyagr / Manifest.toml
Created August 12, 2020 00:18
StatsPlots.dataviewer bug
# This file is machine-generated - editing it directly is not advised
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "051c95d6836228d120f5f4b984dd5aba1624f716"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "0.5.0"
[[Adapt]]
deps = ["LinearAlgebra"]
@ilyagr
ilyagr / index.html
Last active February 17, 2020 08:54
// source https://jsbin.com
<html><body><script type="module">
import { html, render } from "https://unpkg.com/lit-html@1.1.0?module";
function _selector(values) {
return html`
<select>
<option value="">Choose one:</option>
${values.map(
k =>