Skip to content

Instantly share code, notes, and snippets.

View MHenderson's full-sized avatar

Matthew Henderson MHenderson

View GitHub Profile
@MHenderson
MHenderson / git-pushing-multiple.rst
Created September 10, 2021 15:27 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@MHenderson
MHenderson / pytorch_1.ipynb
Last active November 21, 2019 15:15
PyTorch tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MHenderson
MHenderson / clock-state-and-lifecycle.markdown
Created July 2, 2019 15:02
Clock (State and Lifecycle)
@MHenderson
MHenderson / index.html
Last active July 2, 2019 12:18
Tic Tac Toe
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>
@MHenderson
MHenderson / index.html
Last active July 2, 2019 08:36
react-hello-world
<div id="timer-example"></div>
my_stars %>% filter(!is.na(language)) %>% count(language) %>% ggplot(aes(reorder(language, n), n)) + geom_col(width = 0.5, fill = scales::alpha("blue", 0.6)) + coord_flip() + hrbrthemes::theme_ipsum_rc() + labs(x = "Language", y = "Number of stars", title = "Languages in MHenderson's Github stars", subtitle = "https://github.com/ropenscilabs/stellar")
## Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
## font family not found in Windows font database
@MHenderson
MHenderson / coco.R
Last active August 3, 2017 13:17
Co-concordance plotting in ggplot2
library(CorporaCoCo)
library(dhlawrencer)
library(thomashardyr)
library(tidyverse)
library(tidytext)
library(stringi)
@MHenderson
MHenderson / 2017-05-09_sax_key.Rmd
Created May 16, 2017 13:51
Use SAX for key recognition
---
title: "SAX for Key Recognition"
author: "Matthew Henderson"
date: "`r format(Sys.time(), '%B %d, %Y')`"
output:
html_document:
toc: yes
toc_float: true
fig_caption: no
theme: sandstone
@MHenderson
MHenderson / aliases.sh
Last active May 14, 2017 09:48
Morning pages implementation
alias mp='echo -e "% $(date)\n\n" >> `date +"%y_%m_%d".md` & vim + `date +"%y_%m_%d".md`'
alias gc='git add `date +"%y_%m_%d".md` && git commit -m "Morning pages for $(date +"%d/%m/%y")"'
@MHenderson
MHenderson / faulkner.md
Last active May 15, 2017 05:42
Collected Stories of William Faulkner (Audible track listing)