This file contains 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
class Point(object): | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
# See how I dont have to define these above but should define them in init? | |
self.secret = 'hello Burke' | |
self.message = None | |
self.model_results = list() |
This file contains 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
#!/usr/bin/env python | |
""" | |
MIT License (MIT) | |
Copyright (c) 2015. Michael Ewald <[email protected]>, GeomaticsResearch LLC | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains 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
# use expression | |
# within expression, ~ represents a space | |
chanDensity_plot <- ggplot(data=chan_density_df, aes(x=site, y=density)) + | |
geom_bar(stat='identity') + | |
labs(x="Site", y=expression(Channel~Density~(km/km^2)), title='LIDAR-derived channel density') |
This file contains 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
def concat_spatial_df(folder_to_search, ends_with=".shp"): | |
""" | |
Merge spatial data layers that meet the ending provided by ends_with and within | |
folder folder_to_search and it's children | |
import os | |
import pandas as pd | |
import geopandas | |
""" | |
# Find files to merge |
This file contains 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
# Test fixture for lineStrings | |
lineStrings = [(i, "obj{0}".format(i),) for i in range(1011)] | |
stepSize = 200 | |
nSteps = len(lineStrings)/stepSize | |
print "there are {0} objs in lineStrings".format(len(lineStrings)) | |
steps = range(0, nSteps+1) | |
for stepI in steps: | |
# Get the first object in the window |
This file contains 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
// MIT License (MIT) | |
// | |
// Copyright (c) 2015. Michael Ewald, GeomaticsResearch LLC. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains 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
#!/usr/bin/env python | |
import sys | |
import os | |
""" | |
MIT License (MIT) | |
Copyright (c) 2015. GeomaticsResearch LLC. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
This file contains 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
""" | |
MIT License (MIT) | |
Copyright (c) 2015. <Authors> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |