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] | |
} |
OlderNewer