Skip to content

Instantly share code, notes, and snippets.

@jeffcatania
jeffcatania / scan_folder.pl
Last active December 15, 2015 10:29
Scan for new files in a directory. The first argument is a directory to scan. The second argument is optional, and it is a directory to copy any newly added files to. This is for debugging a running program.
#!/usr/bin/perl
use strict;
use warnings;
use File::Copy;
my $dir_to_scan = $ARGV[0];
my $dir_to_save = $ARGV[1];
if($dir_to_scan !~ /\/$/) { $dir_to_scan .= '/'; }
@jeffcatania
jeffcatania / lowerit.sh
Created March 27, 2013 14:20
convert all file names in the current directory to lower case
#!/bin/sh
# lowerit
# convert all file names in the current directory to lower case
# only operates on plain files--does not change the name of directories
# will ask for verification before overwriting an existing file
# source: http://www.linuxjournal.com/content/convert-filenames-lowercase
for x in `ls`
do
if [ ! -f $x ]; then
continue
@jeffcatania
jeffcatania / README.md
Last active August 29, 2015 14:11 — forked from mbostock/.block

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

@jeffcatania
jeffcatania / _.md
Created December 23, 2014 00:04
This is a test
@jeffcatania
jeffcatania / _.md
Created December 23, 2014 01:00
test2
@jeffcatania
jeffcatania / _.md
Last active August 29, 2015 14:11
Basic animation
@jeffcatania
jeffcatania / _.md
Last active August 29, 2015 14:11
Basic animation
@jeffcatania
jeffcatania / _.md
Last active August 29, 2015 14:13
test
@jeffcatania
jeffcatania / _.md
Created January 20, 2015 01:37
test
@jeffcatania
jeffcatania / _.md
Last active August 29, 2015 14:13
test