Skip to content

Instantly share code, notes, and snippets.

View kennedysgarage's full-sized avatar

Kennedy kennedysgarage

View GitHub Profile
@ericallam
ericallam / RotateKeynoteDocumentDroplet
Created July 31, 2014 11:12
Rotate Keynote Document for use as an app Prototype
// Open Script Editor and Export this as an Application
//
// Then drop a keynote file on it in the Finder and it will properly resize
// and rotate everything so the Keynote file becomes usable as a prototype
// in the iPhone keynote app
// rotateDocument exported function
//
// Accepts a Keynote document and will rotate
// all the slides and elements in the slide 90 degrees
@JeffreyWay
JeffreyWay / tip.sh
Created August 15, 2013 17:51
Ever want to undo everything that you've worked on since the last commit (including adding new files)? Here's a little alias to help with that.
alias gundo='git reset HEAD~ && git clean -df'
@elefontpress
elefontpress / gist:6159651
Last active April 16, 2023 02:58
This is the contract Bearded uses for client work on a time and materials basis. It's worked for us, but I am not a lawyer, so please run it by yours before you use it! Regardless, do whatever you like with it. Use it, share it, change it ... go nuts. Our original contract from 2008 was for fixed-price projects and was based on Andy Clark'e Cont…

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@grayghostvisuals
grayghostvisuals / _gaq.push.js
Last active December 18, 2015 13:59
Google Analytics Event Tracking for Open Source File Downloads. Example depicts the better way of including this event tracking script from an external file over inline event handlers suggested by the Google Analytics Event Tracking documentation.
// Example Markup For Download Link
//
// data-name is the name of your project's package download file
// data-category is the name for your tracking event. i.e. (“Download” or “Video” or simply “Click” if you must)
// <a href="#" class="dl-item" data-pkgcategory="" data-pkgname="">Download Our File</a>
//
// For Example:
// <a href="//myproject.com/download-sass.scss" class="dl-item" data-pkgcategory="Downloads" data-pkgname="Sass Port">Download Sass File</a>
@kylebragger
kylebragger / domains.txt
Last active December 15, 2015 03:28
I'm selling the following domain names. Make me an offer via email: kyle@kylebragger.com
youshouldworkwith.me
moodboard.me
notorganized.com
togetherlist.com (+ net & org)
pettl.com (+ net & org)
ringfinger.co
omghey.com (+ net & org)
roastler.com (+ net & org)
spaces.is
@sskylar
sskylar / .htaccess
Last active December 13, 2015 20:48
Protect SS files from hotlinking
RewriteCond "%{HTTP_HOST}_%{HTTP_REFERER}" "!\.?([^\.]+\.[^\.]+?)_https?://.*\1/.*$" [OR]
RewriteCond %{HTTP_REFERER} ^$
RewriteRule ss-[a-zA-Z0-9-]+\.(woff|eot|ttf|svg|js|css)$ - [F,NC,L]
@kentbrew
kentbrew / TurnOffDoubleTextAlerts.txt
Last active December 12, 2015 05:38
How to turn off that annoying second alert every time you get a text message on your iPhone.
Settings >
Notifications >
Messages >
Repeat Alert : Never
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 17, 2024 02:53
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),