Skip to content

Instantly share code, notes, and snippets.

@lukebiggerstaff
lukebiggerstaff / download_data.sh
Last active Mar 8, 2021
Bash script to download the ncdc weather data used by Hadoop: The definitive guide.
View download_data.sh
#!/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 Feb 8, 2018 — forked from neuroticnerd/python-logging.rst
debunking the myth that using logging instead of print is too difficult!
View python-logging.rst

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 Feb 6, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.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 Dec 21, 2019
A script to create a mobile first responsive table using AJAX and vanilla javascript
View AJAXTable.js
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 Aug 29, 2015
An easy way to create and modify color palettes using Sass maps
View ColorPalette.scss
// Base Colors
$green: #1aff1a;
$black: #1a1a1a;
$grey: #cccccc;
$yellow: #ffff33;
//color palette
$palettes: (
green: (
light : lighten($green, 10%),