Skip to content

Instantly share code, notes, and snippets.

View rage-shadowman's full-sized avatar

Ralph Jennings rage-shadowman

View GitHub Profile
@rage-shadowman
rage-shadowman / pre-push.sh
Last active May 6, 2019 18:07 — forked from fwielstra/pre-push
A pre-push git hook which runs a gradle test task
#!/bin/sh -e
#
# to install this hook, create a symbolic link in the projects .git/hooks folder
#
# i.e. - from the .git/hooks directory, run
# $ ln -s /location/of/git-hooks/pre-push.sh pre-push
#
# to skip the tests, run with the --no-verify argument
# i.e. - $ 'git push --no-verify'
@rage-shadowman
rage-shadowman / git-svn-diff.sh
Last active August 28, 2017 10:02 — forked from markjaquith/git-svn-diff.sh
fixed bug with diff of newly added files
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by mike@mikepearce.net
# modified by aconway@[redacted] - handle diffs that introduce new files
# modified by t.broyer@ltgt.net - fixes diffs that introduce new files
# modified by m@rkj.me - fix sed syntax issue in OS X
# modified by rage-shadowman - cleaned up finding of SVN info and handling of path parameters
# modified by tianyapiaozi - cleaned up some diff context lines
#
@rage-shadowman
rage-shadowman / jQuery-based-marquee.js
Last active December 15, 2015 21:09 — forked from remy/gist:2484402
Updated jQuery marquee plugin by Remy Sharp to handle window resize events. This has been tested only on horizontal right-to-left scrolling text. Theoretically it should work for vertical scrolling and left-to-right, but I have no use for that so I have not tested that behavior.
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*
* Ralph Jennings. 4/5/2013.
* Added support for "resize" event. If triggered, marquee is resized according to
* its parent's width and scroll position is updated accordingly.
*/
(function ($) {