Skip to content

Instantly share code, notes, and snippets.

View dutchand's full-sized avatar

DrED dutchand

View GitHub Profile
@dutchand
dutchand / Vagrantfile-php7.2
Created February 1, 2021 17:28 — forked from DragonBe/Vagrantfile-php7.2
A quick Vagrant file to get started with PHP 7.2
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
@script = <<SCRIPT
# Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250
if ! grep -q "ubuntu-xenial" /etc/hosts; then
echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts
fi
@dutchand
dutchand / poisson_regression.py
Created December 13, 2020 19:31 — forked from sachinsdate/poisson_regression.py
Poisson Regression model
import pandas as pd
from patsy import dmatrices
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
#Create a pandas DataFrame for the counts data set.
df = pd.read_csv('nyc_bb_bicyclist_counts.csv', header=0, infer_datetime_format=True, parse_dates=[0], index_col=[0])
@dutchand
dutchand / nyc_bb_bicyclist_counts.csv
Created December 13, 2020 19:30 — forked from sachinsdate/nyc_bb_bicyclist_counts.csv
Daily total of bike counts conducted on the Brooklyn Bridge from 01 April 2017 to 31 October 2017. Source: NYC Open Data: Bicycle Counts for East River Bridges
Date HIGH_T LOW_T PRECIP BB_COUNT
1-Apr-17 46.00 37.00 0.00 606
2-Apr-17 62.10 41.00 0.00 2021
3-Apr-17 63.00 50.00 0.03 2470
4-Apr-17 51.10 46.00 1.18 723
5-Apr-17 63.00 46.00 0.00 2807
6-Apr-17 48.90 41.00 0.73 461
7-Apr-17 48.00 43.00 0.01 1222
8-Apr-17 55.90 39.90 0.00 1674
9-Apr-17 66.00 45.00 0.00 2375
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package plant.four.admin.entities;
import erp.admin.entities.MaintenanceLog;
import erp.admin.entities.MaintenanceLogFacade;
import erp.admin.entities.Plant;