Skip to content

Instantly share code, notes, and snippets.

View mellertson's full-sized avatar

Mike Ellertson mellertson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mellertson on github.
  • I am cybertronninja (https://keybase.io/cybertronninja) on keybase.
  • I have a public key whose fingerprint is 70D4 5D65 0E22 777D 146A 0F4E E7FA A085 E3EA A54A

To claim this, I am signing this object:

@mellertson
mellertson / findgrep
Last active June 10, 2020 04:39
findgrep - finds files matching a file pattern and then grep found files using a regex pattern
#!/bin/bash
RED="\e[31m"
GREEN="\e[32m"
BOLD="\e[1m"
ITALIC="\e[3m"
UNDERLINE="\e[4m"
END="\e[0m"
function usage {
@mellertson
mellertson / login.html
Last active January 2, 2019 06:36
Login Template for Django 2.x
<!-- This file should be saved as: templates/registration/login.html
This file was copied from the Django documentation here:
https://docs.djangoproject.com/en/2.1/topics/auth/default/#module-django.contrib.auth.views
-->
{% extends "base.html" %}
{% block content %}
@mellertson
mellertson / model_params.py
Last active February 4, 2017 00:01
model parameters after swarming over 46 data sets, attempting to predict 'set36'
MODEL_PARAMS = {'aggregationInfo': {'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
'weeks': 0,
'years': 0},
@mellertson
mellertson / htm-predictions-using-multiple-inputs.py
Last active February 3, 2017 02:32
Using HTM for time-series predictions using multiple inputs
import pandas as pd
# TODO insert other necessary imports here
input_file_name = "/tmp/input.csv"
input_file_index = 3
input_file_num_rows = len(stored_input_file)
output_column = "col2"
cpu_count = 4 # change this to the number of cpu cores on your system
SWARM_CONFIG = {