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
stamp_id | x | y | commodity | |
---|---|---|---|---|
08182206 | 0 | 0 | Au | |
33056140 | 0 | 0 | Au | |
82675435 | 0 | 0 | Au | |
75118621 | 0 | 0 | Au | |
68158945 | 0 | 0 | Au | |
78221409 | 0 | 0 | Au | |
57745933 | 0 | 0 | Au | |
89020571 | 0 | 0 | Au | |
97892894 | 0 | 0 | Au |
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
""" file: download.py | |
author: Jess Robertson (@jesserobertson) | |
date: Tuesday, 26 March 2019 | |
description: Download large files with requests and a tqdm progress bar. | |
Modified lightly from https://stackoverflow.com/questions/37573483 | |
""" | |
import pathlib | |
from urllib.parse import urlparse |
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
# $data_dir is some gnarly collection of folders | |
Get-ChildItem -Recurse $data_dir | | |
Where-Object { $_.Extension -eq '.pdf' } | | |
Copy-Item -Destination . |
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
<# | |
.Synopsis | |
Activates the current poetry environment | |
.Description | |
Run inside your project folder to activate the poetry environment in PowerShell | |
#> | |
function Start-PoetryEnv { | |
$env_folder = $( -split $(poetry env list --full-path) | Select-Object -Index 0) |
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
#requires -Version 2 -Modules posh-git | |
function Get-CondaEnv { | |
$condaEnvInfo = ( | |
Invoke-Conda env list | |
| Select-String -Pattern '^(\w+)\s+\*\s+(.*)$' # name, then prefix | |
) | |
return $condaEnvInfo.matches.groups[1] | |
} |
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
from bokeh.plotting import figure | |
import inspect | |
def retrieve_name(var): | |
""" | |
Gets the name of var. Does it from the out most frame inner-wards. | |
:param var: variable to get name from. | |
:return: string | |
""" | |
for fi in reversed(inspect.stack()): |
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
wget -qO- https://pixi.sh/install.sh | sh | |
# This will fail unless $PIXI_HOME is set to something on the default path (e.g. /usr/local) | |
# Set this using the Codex Environment Vars UI (see comment below) | |
pixi install --all --no-progress |
OlderNewer