Skip to content

Instantly share code, notes, and snippets.

View paulinamarczak's full-sized avatar

Paulina Marczak paulinamarczak

View GitHub Profile
@franTarkenton
franTarkenton / micromamba.md
Last active May 29, 2024 18:43
Install arcgis module with micromamba

Overview

Micromamba is orders of magnitute faster than other conda envs, combined with a small simple installation

Install - Linux / WSL

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)

@franTarkenton
franTarkenton / vscode_python.md
Last active May 29, 2024 18:43
VSCode / Python Setup
@franTarkenton
franTarkenton / R_versioning.md
Created June 30, 2023 20:53
R environment and version management

Overview

These are some notes on how to manage R versions and then specific project dependencies

R Versions

Found this tool rig to help with managing multiple versions of R on WSL/Ubuntu

Install new version

@franTarkenton
franTarkenton / GTS_CrapPRO_venv.md
Created May 17, 2023 21:27
How to get virtualenv working based on an arcpro conda env

Creating a virtualenv based on a terrible conda env (ARCPRO)

@jasonbot
jasonbot / daupdatedicts.py
Last active March 24, 2020 19:39
Update cursor with dictionary rows
def rows_as_update_dicts(cursor):
colnames = cursor.fields
for row in cursor:
row_object = dict(zip(colnames, row))
yield row_object
cursor.updateRow([row_object[colname] for colname in colnames])
with arcpy.da.UpdateCursor(r'c:\data\world.gdb\world_cities', ['CITY_NAME']) as sc:
for row in rows_as_update_dicts(sc):
row['CITY_NAME'] = row['CITY_NAME'].title()