Skip to content

Instantly share code, notes, and snippets.

View johnwalley's full-sized avatar

John Walley johnwalley

View GitHub Profile
@johnwalley
johnwalley / proxt_port.ps1
Created September 15, 2021 14:16
Open storybook port on wsl2
netsh interface portproxy add v4tov4 listenport=6006 listenaddress=0.0.0.0 connectport=6006 connectaddress=172.18.76.134
@johnwalley
johnwalley / Instructions.md
Last active March 6, 2019 10:32
How to set up LVM partitions

Based on: https://unix.stackexchange.com/questions/339011/how-do-i-mount-an-lvm-partition

sudo apt-get install lvm2 #This step may or may not be required. 
sudo pvscan #Use this to verify your LVM partition(s) is/are detected. 
sudo vgscan #Scans for LVM Volume Group(s)
sudo vgchange -ay #Activates LVM Volume Group(s)
sudo lvscan #Scans for available Logical Volumes
sudo mount /dev/YourVolGroup00/YourLogVol00 /YourMountPoint
@johnwalley
johnwalley / crimes.csv
Created October 25, 2018 10:16
Bike thefts in Oxford and Cambridge 2017-2018
We can't make this file beautiful and searchable because it's too large.
origin_sheet,Crime ID,Month,Reported by,Falls within,Longitude,Latitude,Location,LSOA code,LSOA name,Crime type,Last outcome category,Context,postcode,quality,eastings,northings,country,nhs_ha,longitude,latitude,european_electoral_region,primary_care_trust,region,lsoa,msoa,incode,outcode,distance,parliamentary_constituency,admin_district,parish,admin_county,admin_ward,ccg,nuts,codes
postcode_bicycle_crime-88000-95999,2553023c5aba60cd0072d553d160fda2de6ef4bbb914e96fb9b043ce8b249f28,2018-08,Thames Valley Police,Thames Valley Police,-0.811423,51.825568,On or near Drayton Road,E01017659,Aylesbury Vale 011A,Bicycle theft,Investigation complete; no suspect identified,,HP20 2EW,1,482007,214755,England,South Central,-0.81,51.83,South East,Buckinghamshire,South East,Aylesbury Vale 011A,Aylesbury Vale 011,2EW,HP20,18.52,Aylesbury,Aylesbury Vale,Aylesbury,Buckinghamshire,Elmhurst,NHS Buckinghamshire,Buckinghamshire CC,{7}
postcode_bicycle_crime-88000-95999,3aed2e153c110b1bcfa756cb02a5189966aa48cad48399de30b06d939e0eeb60
@johnwalley
johnwalley / np.geojson
Created September 11, 2018 15:11
North pole
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@johnwalley
johnwalley / .block
Last active October 30, 2018 09:49
SVG foreignObject Markdown example
license: mit
@johnwalley
johnwalley / index.js
Created July 30, 2018 16:46
React roadmap component examples
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, object, date, number } from '@storybook/addon-knobs';
import ResponsiveRoadmap from '../components/ResponsiveRoadmap';
import Roadmap from '../components/Roadmap';
import DataTable from '../components/DataTable';
const data = {
RoadmapTitle: 'Roadmap Title',
@johnwalley
johnwalley / .block
Last active October 30, 2018 09:48
Recaman Sequence
license: mit
@johnwalley
johnwalley / .block
Last active January 13, 2020 03:45
Bar Scatter Transition
license: mit
height: 668
@johnwalley
johnwalley / .block
Last active October 30, 2018 09:47
Visualising Distributions
license: mit
@johnwalley
johnwalley / .block
Last active August 19, 2020 00:38
d3-tube-map + popover
license: mit