Skip to content

Instantly share code, notes, and snippets.

View colinjoy's full-sized avatar

Colin Joy colinjoy

View GitHub Profile
@marcedwards
marcedwards / accumulation.pde
Last active June 1, 2021 07:14
Perlin noise and accumulation in Processing
//
// Perlin noise and accumulation.
// Created using Processing 4.0a3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1370206924591960065
//
@jduprey
jduprey / restore_db_conflicted.sh
Last active June 12, 2020 20:29
Bash Script to Restore Dropbox Conflicted Copy
# This script takes a single parameter - a file name following Dropbox "conflicted" file naming format.
# It will then ask you if you want skip, delete, or move it back (restore it) to the original file name.
# The original file name is determined by removing the Drobox conflicted part of the name.
# e.g. "demo-current (Thor's conflicted copy 2014-09-14).png" --> "demo-current.png"
# If you answer 'y' it will perform a 'NIX mv "SOURCE" "TARGET" command.
#
# Typical usage of this script would be something like the following:
# find . -name "*(*'s conflicted copy [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])*" -exec restore_db_conflicted.sh.sh {} \;
# -- Find all the files that look like conflicted copies and run the restore script on them.
# I've used this script a couple of times. It worked for me.