- Python 3
- Pip 3
$ brew install python3
import pandas as pd | |
def GIStable2Clipboard(inTable, exportFields="all"): | |
desc = arcpy.Describe(inTable) | |
if exportFields =="all": | |
exportFields = [f.name for f in arcpy.ListFields(inTable) if not f.name == desc.shapeFieldName] | |
aliases = [f.aliasName for f in arcpy.ListFields(inTable) if not f.name == desc.shapeFieldName] | |
pd.DataFrame.from_records(arcpy.da.TableToNumPyArray(inTable,exportFields), | |
index=desc.OIDFieldName, columns=aliases).to_clipboard() |
## How to hide API keys from github ## | |
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
2. In the terminal, create a config.js file and open it up: | |
touch config.js | |
atom config.js |
from math import radians | |
import bpy | |
DEM_ASPECT_X = 1 | |
DEM_ASPECT_Y = 1.4 | |
DEM_X = 1000 | |
DEM_Y = 1400 | |
SUBDIVIDE_CUT_1 = 500 |
conda create --name nikolaenv python=3 | |
activate nikolaenv | |
conda install pillow lxml | |
pip install Nikola[extras] |
( | |
SynthDef.new(\multi, { | |
var sig, amp, env; | |
env = EnvGen.kr( | |
Env.new([0,1,0],[10,10],[1,-1]); | |
doneAction:2 | |
); | |
amp = SinOsc.kr({ExpRand(0.2,12)}!8).range(0,1); | |
sig = SinOsc.ar({ExpRand(50,1200)}!8); | |
sig = sig * amp * env; |
import random | |
outfile = r'<your path here>' | |
# starting point (UTM easting, northing) | |
start_x, start_y = (524230, 4671988) | |
# number of points in a single transect line | |
num_pts = 100 | |
# one 'transect' consists of an eastward and a westward leg | |
num_transects = 3 | |
# transect easting variance |
First stab at a map of The Whulj (Puget Sound), inspired by reading Harvey Manning's book, Walking the Beach to Bellingham. This initial map shows most of the whulj land/water boundary, uses the default mercator projection, has basic zoom behavior, and not much else.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.background { | |
fill: #a4bac7; | |
} | |
.foreground { | |
fill: none; |