Skip to content

Instantly share code, notes, and snippets.

View RobHarrand's full-sized avatar

Rob Harrand RobHarrand

View GitHub Profile
@RobHarrand
RobHarrand / DNS Firewall Blog Code
Created February 5, 2024 16:32
DNS Firewall Blog Code
# -*- coding: utf-8 -*-
"""
DNS Firewall Based on Machine Learning analysis and ML
Created on Fri Feb 2 14:18:25 2024
@author: rob.harrand
"""
import os
import pandas as pd
import matplotlib.pyplot as plt
@RobHarrand
RobHarrand / uk_covid_map.R
Created January 26, 2021 14:36
UK Covid-19 animation
library(tidyverse)
library(rgeos)
library(rgdal)
library(maptools)
library(lubridate)
library(animation)
library(gridExtra)
#Map --------
#UK Shapefile from .. https://geoportal.statistics.gov.uk/datasets/1d78d47c87df4212b79fe2323aae8e08_0
@RobHarrand
RobHarrand / animal_rights_20200316_RH.R
Last active June 24, 2020 20:13
Code for 'Our World in Data' article on Animal Rights
#######################################################
#Code for Medium article on Animal Rights
#Rob Harrand
#2020-03-16
#######################################################
# Load packages ------------------------
require(ggplot2)
require(ggrepel)
@RobHarrand
RobHarrand / leeds_rta.R
Created June 21, 2018 13:54
Leeds Road Traffic Accidents Map Animation R Code
### Script to create animation in R of Leeds Road Traffic Accident Data
### Road traffic accidents, (c) Leeds City Council, 2009-2016, https://datamillnorth.org/dataset/road-traffic-accidents'
### This information is licensed under the terms of the Open Government Licence.'
#Note that you'll need imagemagick installed on your system for this code to work
#Load libraries,
require(rgdal)
require(stringr)
require('ggplot2')