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
// ==UserScript== | |
// @name jQuery + printforms | |
// @namespace jQuery | |
// @description Use jQuery to print form variables and input element values on submit - cancels form submit | |
// @author Joan Piedra (jQuery integration) + Jesse Trimble | |
// @homepage http://www.joanpiedra.com/jquery/greasemonkey - http://www.rmrdevelopment.com | |
// @include * | |
// ==/UserScript== | |
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
// | |
// MiniToggle.h | |
// MiniToggle | |
// | |
// Created by jtrim on 2/12/10. | |
/* | |
MiniToggle.h & MiniToggle.m: | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR | |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | |
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
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
#minute hour dayOfMonth month dayOfWeek command | |
0,30 * * * * cd /path/to/project && svn add . --force && svn commit -m "semi-hourly commit at `date`" > /dev/null |
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
#!/bin/bash | |
filename=0 | |
for i in `ls -1 | grep mov` | |
do | |
filename=$((filename + 1)) | |
ffmpeg -sameq -i $i -s 640x360 converted/$filename.flv | |
done |
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
#!/bin/bash | |
for i in `ls -1 converted` | |
do | |
ffmpeg -i converted/videos/$i -vframes 1 -r 1 -f image2 converted/images/$i.jpg | |
done |
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
// | |
// AudioPauseLoopAppDelegate.m | |
// AudioPauseLoop | |
// | |
// Created by Jesse Trimble on 7/13/10. | |
// Copyright n/a 2010. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "AudioPauseLoopAppDelegate.h" |
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
root_dir = "/path/to/rails/app" | |
dirs = ["app/mailers", "app/models", "lib/tasks", "public/stylesheets", "test/fixtures", "test/functional", "test/integration", "test/unit", "vendor/plugins"] | |
dirs.each do |dir| | |
begin | |
File.open File.join(root_dir, dir, ".gitkeep"), "w" do |file| | |
file.puts "" | |
end | |
rescue |
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
date +%Y%m%d%H%M%S |
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
function dayahead() { | |
DAYSTRING=`ruby -e "require \"time\"; require \"date\"; puts Time.parse((Date.today + $1).to_s).strftime(\"%A, %B %d, %Y\")"` | |
echo -n $DAYSTRING | pbcopy | |
echo $DAYSTRING | |
} |
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
function glast() { | |
LATEST=`git log --oneline -n 1` | |
echo -n $LATEST | ack '^([a-zA-Z0-9]*) {1}' --output='$1' | pbcopy | |
echo $LATEST | |
} |
OlderNewer