Skip to content

Instantly share code, notes, and snippets.

View whistler's full-sized avatar

Ibrahim Muhammad whistler

View GitHub Profile
"$schema": "",
"basics": {
"name": "Ibrahim Muhammad",
"label": "Technical Manager at EarthDaily Analytics | Machine Learning, Cloud Computing, Geospatial",
"image": "",
"email": "",
"phone": "",
"url": "",
"summary": "Technical manager for a team creating a satellite image processing system.\n\nSoftware Engineering: Received Developer 30 Under 30 award. Full-stack software engineering experience working on data pipelines, cloud infrastructure, web user interfaces, API services and CICD.\n\nMachine Learning: Neural Networks, Convolutional Neural Networks/Deep Learning, Computer Vision, Image Classification & Semantic Segmentation, Reinforcement Learning\n\nTechnical Leadership: Manager for an Earth Observation Analytics Ready Data team. Maximizing ROI as a Product Owner and streamlining team processes as a ScrumMaster.",
whistler /
Last active July 25, 2018 21:54
Conda environment for deep learning, image processing, data science
# To install the most recent version go to
conda install -y -c conda-forge jupyterlab
conda install -y scikit-learn
conda install -y pytorch torchvision cuda91 -c pytorch
conda install -y opencv matplotlib scikit-image
conda install -y affine #rasterio
pip install rasterio==1.0.1 # conda does not have v1 of rasterio yet
whistler /
Created April 6, 2018 02:47
Merge two GeoJSON AOIs into one
from functools import reduce
import shapely.geometry
import geojson
def merge_aois(aois):
shapes = (shapely.geometry.asShape(aoi) for aoi in aois)
union = reduce(lambda a, b: a.union(b), shapes)
merged_aoi = geojson.Feature(geometry=union, properties={})
return merged_aoi
whistler /
Created November 2, 2017 03:32
Add more swap space on Ubuntu 17
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo mkswap /swapfile
sudo swapon /swapfile
whistler /
Created February 21, 2017 21:31
Benchmark loops vs list comprehension
N = 10000000
def loops():
nums = []
for num in range(N):
#print nums
def list_comprehensions():
whistler / async_await.js
Created February 21, 2017 21:23
Javascript Async Await
function fetch(url, callback) {
console.log('Getting ' + url);
var delay = (Math.round(Math.random() * 1E4) % 4000) + 1000
var response = 'Content for ' + url;
setTimeout(function() {
}, delay);
function promiseFetch(url) {
whistler /
Created August 16, 2016 21:26
Fetch Page View Data from Google Analytics
import os
import json
import httplib2
import flask
from oauth2client import client
from apiclient.discovery import build
http_auth = None
view_id = '00000000' # Add view id here
whistler / this.js
Last active August 29, 2015 14:23
this in if
var AnimalView = Backbone.View.extend({
save: function() {
var that = this;
if(!this.isSaved) {
} else {
whistler /
Created April 19, 2015 23:32
Convert QFX/OFX to CSV
from csv import DictWriter
from glob import glob
from ofxparse import OfxParser
DATE_FORMAT = "%m/%d/%Y"
def write_csv(statement, out_file):
print "Writing: " + out_file
fields = ['date', 'payee', 'debit', 'credit', 'balance']
with open(out_file, 'w') as f:
whistler /
Created March 26, 2015 00:31
Backspace Test
import sys
import time
for i in range(10):
print '\r', # print is Ok, and comma is needed.
print i,
sys.stdout.flush() # flush is needed.