Skip to content

Instantly share code, notes, and snippets.

@mlbright
Last active March 7, 2017 05:02
Show Gist options
  • Select an option

  • Save mlbright/64fc3202e1018e5644f7c2d99a77c7fc to your computer and use it in GitHub Desktop.

Select an option

Save mlbright/64fc3202e1018e5644f7c2d99a77c7fc to your computer and use it in GitHub Desktop.

Revisions

  1. Martin-Louis Bright revised this gist Mar 7, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions search
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    perl trees.pl | grep -v "wild" | grep -v "fast" | grep -v "RT" | grep -i -v "flood" | grep -v "eaten" | grep -v "provides" | grep -i moist | grep -v Ironwood | grep -v "Tamarack" | grep -v muscle | perl -p -e 's/ => /:/g' | perl -F: -lane 'print lc($F[1])'
  2. mlbright created this gist Mar 4, 2017.
    243 changes: 243 additions & 0 deletions trees.pl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,243 @@
    #!/usr/bin/env perl

    use strict;
    use warnings;
    use 5.016;
    use List::MoreUtils qw(natatime);

    my $sep = ' => ';

    my $stuff = do { local $/; <DATA> };
    my $it = natatime( 6, split( /\n/, $stuff ) );
    while ( my @vals = $it->() ) {
    say join( $sep, @vals );
    }

    __DATA__
    Black Maple
    Acer nigrum
    Moist loam, silt-loam
    partial shade to full shade
    35 m
    tolerant of urban conditions
    Red Maple
    Acer rubrum
    Moist-Wet sand, loam
    full sun to partial shade
    25 m
    orange to bright red fall colour
    Silver Maple
    Acer saccharinum
    Moist-Wet sand, loam, clay
    full sun to partial shade
    35 m
    fast growing and tolerant
    Sugar Maple
    Acer saccharum
    Dry-Moist loam, clay
    partial shade to full shade
    35 m
    yellow to orange-red fall colour
    Speckled Alder
    Alnus rugosa
    Moist-Wet sand, loam, clay
    full sun
    8 m
    provides wildlife habitat
    Yellow Birch
    Betula alleghaniensis
    Moist loam, sandy-loam
    full sun to partial shade
    25 m
    attracts wildilfe
    White Birch *
    Betula papyrifera
    Dry-Moist-Wet sand,loam,gravel-loam
    full sun
    25 m
    fast growing and attractive bark
    Blue Beech
    Carpinus caroliniana
    Moist loam, sandy-loam
    full shade to partial sun
    8 m
    interesting bark - looks like muscle
    Bitternut Hickory
    Carya cordiformis
    Moist sand, loam
    full sun to partial shade
    25 m
    fast growing
    Shagbark Hickory (RT)
    Carya ovata
    Dry-Moist loam, clay
    full sun to partial shade
    25 m
    interesting bark, attracts squirrels
    Hackberry (RT)
    Celtis occidentalis
    Dry-Wet loam, clay
    full sun to partial shade
    15 m
    fast growing, tolerant
    Hawthorn
    Crataegus spp.
    Moist loam,clay
    full sun to partial shade
    12 m
    provides wildlife habitat
    American Beech
    Fagus grandifolia
    Moist loam
    partial shade to full shade
    25 m
    flowers eaten by birds
    Butternut
    Juglans cinerea
    Moist loams
    full sun
    25 m seeds
    provide food for wildlife
    Black Walnut
    Juglans nigra
    Moist loam, clay
    full sun
    30 m
    seeds provide food for wildlife
    Red Cedar
    Juniperus virginiana
    Dry-Moist sand, loam
    full sun
    4 m
    provides food & shelter for wildlife
    Tamarack*
    Larix laracina
    Moist peat, wet sandy-loam
    full sun
    25 m
    interesting shape
    Tulip Tree (RT)
    Liriodendron tulipifera
    Moist sand, loam
    full sun to partial shade
    35 m
    pyramidal shape, interesting leaves
    Ironwood
    Ostrya virginiana
    Dry-Moist loam, clay
    full sun to full shade
    12 m
    interesting bark
    White Spruce (RT)
    Picea glauca
    Moist sand, loam, clay
    full sun partial shade
    25 m
    provides wildlife habitat
    Red Pine (RT)
    Pinus resinosa
    Dry-Moist sand, sandy-loam
    full sun
    25 m
    stabilizes soil
    White Pine
    Pinus strobus
    Dry-Moist sand, loam
    full sun to partial shade
    30 m
    provides wildlife habitat
    Sycamore (RT)
    Platanoides occidentalis
    Moist-Wet sand, loam, clay
    full sun to partial shade
    30 m
    interesting, peeling bark
    Balsam Poplar
    Populus balsamifera
    Moist-Wet sand, silt
    Full sun
    25 m
    floodplain, fast growing
    Eastern Cottonwood*
    Populus deltoides
    Moist-Wet sand, loam, clay
    full sun to partial shade
    30 m
    fast growing
    Large-toothed Aspen
    Populus grandidentata
    Dry-Moist sand, loam
    full sun
    20 m
    fast growing
    Trembling Aspen
    Populus tremuloides
    Moist sand,loam,clay
    full sun
    25 m
    fast growing, tolerant
    Pin Cherry
    Prunus pensylvanica
    Dry sand, loam
    full sun
    12 m
    seeds provide food for wildlife
    Black Cherry
    Prunus serotina
    Dry-Moist sand, loam
    full sun to partial shade
    22 m
    interesting bark, provides habitat
    White Oak (RT)
    Quercus alba
    Dry-Moist sand, sandy-loam
    full sun to partial shade
    35 m
    provides food & shelter for wildlife
    Bur Oak
    Quercus macrocarpa
    Dry-Wet loam, clay
    full sun to partial shade
    15 m
    provides food & shelter for wildlife
    Red Oak
    Quercus rubra
    Dry-Moist sand to loamy-clay
    full sun to partial shade
    25 m
    fast growing, wildlife value
    Black Oak (RT)
    Quercus velutina
    Dry-Moist sand
    full sun to partial shade
    20 m
    seeds provide food for wildlife
    Peach-leaved willow
    Salix amygdaloides
    Moist-Wet sand, silt
    full sun to partial shade
    20 m
    floodplain species
    Black willow
    Salix nigra
    Moist-Wet sand, silt
    Full sun to partial shade
    20 m
    Floodplain species
    White Cedar
    Thuja occidentalis
    Dry-Wet sand, loam, clay
    full sun to partial shade
    15 m
    provides wildlife habitat
    Basswood
    Tilia americana
    Dry-Wet sand, loam, clay
    full sun to partial shade
    35 m
    tall stately tree
    Eastern Hemlock
    Tsuga canadensis
    Moist-Wet sand, loam
    partial shade to full shade
    30 m