Skip to content

Instantly share code, notes, and snippets.

View lukebiggerstaff's full-sized avatar

Luke Biggerstaff lukebiggerstaff

View GitHub Profile
@lukebiggerstaff
lukebiggerstaff / download_data.sh
Last active March 8, 2021 08:49
Bash script to download the ncdc weather data used by Hadoop: The definitive guide.
#!/bin/bash
# simple script to download weather data from ncdc
# for use with Hadoop: The Definitive guide by Tom White
# script downloads all files for each year,
# combines into one gzipped file and saves in the DATA_FOLDER directory
#FTP address
FTP_HOSTNAME="ftp.ncei.noaa.gov"
FTP_PATH="/pub/data/noaa/"
@lukebiggerstaff
lukebiggerstaff / python-logging.rst
Created February 8, 2018 17:47 — forked from neuroticnerd/python-logging.rst
debunking the myth that using logging instead of print is too difficult!

python logging demystified!

disclaimer

This has been written with the latest version of Python 2 in mind (currently 2.7.9), and while the general premise holds true for

@lukebiggerstaff
lukebiggerstaff / README-Template.md
Created February 6, 2018 22:46 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@lukebiggerstaff
lukebiggerstaff / AJAXTable.js
Last active December 21, 2019 04:54
A script to create a mobile first responsive table using AJAX and vanilla javascript
var getTableDataAJAX = function() {
var getTableData = new XMLHttpRequest();
getTableData.onreadystatechange = function() {
if(getTableData.readyState === 4) {
var tableInfo = JSON.parse(getTableData.responseText);
var tableHeading = tableInfo.tableHeading;
var tableCellsPets = tableInfo.tableCellsPets;
var tableCellsPeople = tableInfo.tableCellsPeople;
@lukebiggerstaff
lukebiggerstaff / ColorPalette.scss
Last active August 29, 2015 14:06
An easy way to create and modify color palettes using Sass maps
// Base Colors
$green: #1aff1a;
$black: #1a1a1a;
$grey: #cccccc;
$yellow: #ffff33;
//color palette
$palettes: (
green: (
light : lighten($green, 10%),