Skip to content

Instantly share code, notes, and snippets.

View bevsxyz's full-sized avatar

Bevan Stanely bevsxyz

View GitHub Profile
@MilesCranmer
MilesCranmer / word_count_changes.md
Last active January 25, 2025 14:19
Accurate word count changes in git, useful for tracking changes on a paper in overleaf

Words changed in a git repo

This should work generally, but I use this to track the number of words changed in a (LaTeX) paper with a version history in git (and which Overleaf uses by default).

This is a tricky thing to deal with for many reasons.

Show the added words, deleted words, words on duplicate lines on every commit in the last day (bash):

@bsolomon1124
bsolomon1124 / game_of_life.py
Last active March 20, 2024 11:09
Conway's game of life in NumPy
"""NumPy/SciPy implementation of Conway's Game of Life.
https://bitstorm.org/gameoflife/
"""
import argparse
import curses
import getopt
import time
from itertools import repeat
@thoughtful-solutions
thoughtful-solutions / Git-on-GDrive-with-rclone.md
Last active January 23, 2022 19:51
git on Google Drive with rclone

Why

Early on within a startup of an organisation resources are limited and the ability to control what is used and where things are found allow more consistent working practices and less cost.

This approach is to support small working groups using git, it is not a full git server and has no embedded review. However it does function, on three platforms, Windows, Macintosh (OSX) and Linux. The examples here are from a Linux environment.

Setting up rclone

rclone provides a platform neutral manner to gain access to remote cloud based storage

It is possible to configure access to GSuite Shared (Team) drives and Google Drives