This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |