Replaces: pyenv | Purpose | Command |
Install a specific Python version | uv python install <version> | |
List available Python versions | uv python list | |
Use a specific Python version in a project | uv python use <version> | |
Automatically install the required Python version | uv run –python <version> script.py | |
Pin the Python version for a project | uv python pin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import json | |
import base64 | |
def _add_dataset_to_rfs( | |
rfs: dict, | |
shape: list[int], | |
dtype: np.dtype, | |
dset_name: str, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
groups = ['citizenship', 'race', 'sex', 'institute', 'religion', 'occupation', 'first names', 'eye color'] | |
# List of grouped people, e.g. [1 - iranian, 1 - italian, 4 - russians] | |
number_of_people = [[1, 1, 4], [1, 5], [1, 5], [1, 1, 4], [6], [1, 1, 4], [2, 1, 1, 1, 1], [2,2,2]] | |
# Total number of people | |
n_people = 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
My resignation from freenode staff | |
================================== | |
I joined the freenode staff in March 2019 [1]. | |
Before I joined the staff, Freenode Ltd was sold [2] to a person named | |
Andrew Lee as part of a sponsorship deal. The informal terms of that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE qgis_style> | |
<qgis_style version="2"> | |
<symbols> | |
<symbol alpha="1" force_rhr="0" clip_to_extent="1" type="fill" name="pencilish"> | |
<layer class="MarkerLine" pass="0" locked="0" enabled="1"> | |
<prop k="average_angle_length" v="4"/> | |
<prop k="average_angle_map_unit_scale" v="3x:0,0,0,0,0,0"/> | |
<prop k="average_angle_unit" v="MM"/> | |
<prop k="interval" v="0.02"/> | |
<prop k="interval_map_unit_scale" v="3x:0,0,0,0,0,0"/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Here's an example of the kind of GraphQL query that Code.gov might submit to the GitHub GraphQL endpoint. It also explains why the switch to using GraphQL (in GitHub API version 4) makes things a ton easier than all the REST calls we were doing before (in GitHub API version 3).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
set -u | |
set -e | |
set -x | |
COOKIES=cookies.txt | |
LOGIN_URL=https://omero.host/prefix/webclient/login/ |
NewerOlder