Skip to content

Instantly share code, notes, and snippets.

View grfiv's full-sized avatar

George Fisher grfiv

View GitHub Profile
@grfiv
grfiv / weatherlink.py
Last active April 5, 2021 13:15
WeatherLink v2 API in Python 3
@grfiv
grfiv / convert_mysql_to_sqlite3.sh
Created September 4, 2016 19:29
convert a mysql database to sqlite3
#!/bin/bash
#
# convert a mysql database to sqlite3
#
#see https://stackoverflow.com/questions/5164033/
# export-a-mysql-database-to-sqlite-database
mysql_host=localhost
mysql_user=george
#mysql_passwd=****************
@grfiv
grfiv / gist:9028332e06ae8c344725
Created July 7, 2014 15:36
SciPy2014 Bird Song Kaggle contest tutorial ... classifier.py fix
import numpy as np
import sklearn
import sklearn.ensemble
class LabelDistributingBinaryForest:
def __init__(self, **kwargs):
self.clf = sklearn.ensemble.RandomForestClassifier(**kwargs)