Skip to content

Instantly share code, notes, and snippets.

View dimejimudele's full-sized avatar
🎯
Focusing

Oladimeji Mudele dimejimudele

🎯
Focusing
View GitHub Profile
@dimejimudele
dimejimudele / convert_csv_to_shp.py
Last active July 26, 2022 10:45
Batch conversion of geocoded CSV files to ESRI shapefiles using python
# 1 Import Libraries
import pandas as pd
from geopandas import GeoDataFrame
from shapely.geometry import Point
import os
import fiona
# 2 Directory containing your .csv files
directory = r'C:\user\my_csv_files\...'
@dimejimudele
dimejimudele / main.py
Created February 3, 2019 11:55
Algorithms and data structures created by dimejimudele - https://repl.it/@dimejimudele/Algorithms-and-data-structures
#Implementing a Stack in a class
class stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
return self.items.append(item)
@dimejimudele
dimejimudele / main.py
Created February 3, 2019 10:35
Algorithms and data structures created by dimejimudele - https://repl.it/@dimejimudele/Algorithms-and-data-structures
#Implementing a Stack in a class
class stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
return self.items.append(item)
@dimejimudele
dimejimudele / stacks.py
Last active January 30, 2019 16:33
Algorithms and data structures created by dimejimudele - https://repl.it/@dimejimudele/Algorithms-and-data-structures
# Implementiog stacks data structure
class stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
return self.items.append(item)
@dimejimudele
dimejimudele / main.py
Created January 30, 2019 16:01
Algorithms and data structures created by dimejimudele - https://repl.it/@dimejimudele/Algorithms-and-data-structures
class stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
return self.items.append(item)
@dimejimudele
dimejimudele / test.html
Created December 18, 2018 22:01
Hello World Html
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@dimejimudele
dimejimudele / test.md
Created December 18, 2018 21:58
Hello World Markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@dimejimudele
dimejimudele / rolling_window.py
Created December 4, 2018 09:04 — forked from seberg/rolling_window.py
Multidimensional rolling_window for numpy
def rolling_window(array, window=(0,), asteps=None, wsteps=None, axes=None, toend=True):
"""Create a view of `array` which for every point gives the n-dimensional
neighbourhood of size window. New dimensions are added at the end of
`array` or after the corresponding original dimension.
Parameters
----------
array : array_like
Array to which the rolling window is applied.
window : int or tuple