Skip to content

Instantly share code, notes, and snippets.

View dutchand's full-sized avatar

DrED dutchand

View GitHub Profile
@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
@sachinsdate
sachinsdate / poisson_regression.py
Last active April 12, 2023 14:20
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])
@sachinsdate
sachinsdate / nyc_bb_bicyclist_counts.csv
Last active June 23, 2023 06:03
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
@DragonBe
DragonBe / Vagrantfile-php7.2
Created March 20, 2018 09:29
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
@SamOrozco
SamOrozco / Plant4SheetsFacade.java
Created February 15, 2016 06:07
Java Exmaples
/*
* 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;
@dutchand
dutchand / urlTest.mxml
Last active August 29, 2015 14:09
Validate if specific urls can be accessed or not from a device on a network AS3: Whitelisturl
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="on" width="100%" height="1000" verticalScrollPolicy="off" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]" verticalAlign="middle">
<!--
http://pbskids.org/sprout_games/mama-mirabelle/games/source/ndi/utils/Logger.as
http://www.uh.edu/wtsc_apps/js/uploadify/com/adobe/webapis/URLLoaderBase.as
http://alivepdf.bytearray.org/?p=20
http://books.google.com/books?id=CeMMho6OodcC&pg=PT493&lpg=PT493&dq=onIOError%28event:IOErrorEvent%29&source=bl&ots=KkN3LufGUS&sig=Q28fa0EWe9p2msFtjyc-Wkhawvg&hl=en&sa=X&ei=7YJGVOa3EKrksATDoYDADw&ved=0CDkQ6AEwBQ#v=onepage&q=onIOError%28event%3AIOErrorEvent%29&f=false
-->
<mx:Script>
<![CDATA[
@berlinbrown
berlinbrown / gist:4583728
Created January 21, 2013 05:05
Simplest Possible Web Crawler with C++
//============================================================================
// Name : OctaneCrawler.cpp
// Author : Berlin Brown (berlin dot brown at gmail.com)
// Version :
// Copyright : Copyright Berlin Brown 2012-2013
// License : BSD
// Description : This is the simplest possible web crawler in C++
// Uses boost_regex and boost_algorithm
//============================================================================