Skip to content

Instantly share code, notes, and snippets.

View lukesmurray's full-sized avatar
😎
Hard at work

Luke Murray lukesmurray

😎
Hard at work
View GitHub Profile
@lukesmurray
lukesmurray / glocal
Created February 12, 2021 18:23
Git Local
glocal () {
echo "### Adding any wip files"
git add .
echo "### Committing files with a temporary commit"
git commit --no-verify -am 'local commit - work in progress'
echo "### Checking out branch"
git checkout "$1"
x="$(git log -1 --pretty=%B)"
if [ "$x" = "local commit - work in progress" ]
then
@lukesmurray
lukesmurray / map.geojson
Last active August 19, 2019 19:25
Geojson coordinates of hawaii.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukesmurray
lukesmurray / schools.json
Created August 8, 2019 22:36
School dcids
[
"geoId/sch510195000862",
"geoId/sch510195000861",
"geoId/sch510195000862",
"geoId/sch510195000861",
"geoId/sch510195000862",
"geoId/sch510195000861",
"geoId/sch510195000862",
"geoId/sch510195000861",
"geoId/sch510195000862",
@lukesmurray
lukesmurray / .block
Created January 17, 2019 14:24
Vega-Lite Bl.ocks example
license: bsd-3-clause
@lukesmurray
lukesmurray / copy_images_and_videos.sh
Created January 11, 2018 05:00
Copy all the images and videos from a file directory recursively to a single target folder
find . -type f -exec file -I {} + | rg 'video|image' | cut -d':' -f1 | xargs -I '{}' cp '{}' ~/Desktop/target_folder/