Skip to content

Instantly share code, notes, and snippets.

View mejackreed's full-sized avatar
🐧

Jack Reed mejackreed

🐧
View GitHub Profile
@mejackreed
mejackreed / LICENSE.txt
Last active February 12, 2024 12:16
Leaflet-IIIF Cropping
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
class UnionFind:
def __init__(self):
self.parents = {}
def make_set(self, x):
self.parents[x] = x
def find(self, x):
if x not in self.parents:
self.make_set(x)
@mejackreed
mejackreed / rio_sdr.R
Created June 28, 2016 18:28
The Slave Market in Rio de Janeiro visualization using the Stanford Digital Repository and R
install.packages("RCurl")
require(RCurl)
csvdata = read.csv(text = getURL("https://stacks.stanford.edu/file/druid:wt635jq5834/SLAVE_TRANSACTIONS_v2.csv"))
hist(as.Date(csvdata$DATE, '%d/%m/%Y'), "days", freq = TRUE, format = "%b %Y")
@mejackreed
mejackreed / d3map.css
Created June 15, 2016 09:24 — forked from emeeks/d3map.css
City Nature Neighborhoods
path,circle,rect,polygon,ellipse,line {
vector-effect: non-scaling-stroke;
}
svg, canvas {
top: 0;
}
#d3MapZoomBox {
position: absolute;
z-index: 10;
height: 100px;
@mejackreed
mejackreed / LICENSE.txt
Last active April 11, 2017 16:26
Martellus Map Side by Side Example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mejackreed
mejackreed / LICENSE.txt
Last active June 26, 2020 08:08
Leaflet-IIIF Labels example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mejackreed
mejackreed / LICENSE.txt
Last active June 3, 2018 19:31
Leaflet-IIIF Draw example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mejackreed
mejackreed / LICENSE.txt
Last active March 4, 2018 20:07
Leaflet-IIIF Annotation Example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mejackreed
mejackreed / LICENSE.txt
Last active June 3, 2016 14:43
Leaflet-IIIF Magnifying Glass Example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mejackreed
mejackreed / LICENSE.txt
Last active May 5, 2016 18:03
Leaflet-IIIF Martellus Map example using IconLayers plugin
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: