Skip to content

Instantly share code, notes, and snippets.

@atxryan
atxryan / gist:1026013
Created June 14, 2011 21:55
Box.net Maximize preview in window bookmarklet
javascript:(function(d)%20{var%20h%20=%20d.body.clientHeight;var%20w%20=%20d.body.clientWidth;var%20p%20=%20d.getElementById(%22player%22);var%20g%20=%20d.getElementById(%22gallery%22);g.style.position%20=%20%22absolute%22;g.style.width%20=%20w%20+%20%22px%22;g.style.height%20=%20h%20+%20%22px%22;p.style.width%20=%20w%20+%20%22px%22;p.style.height%20=%20h%20+%20%22px%22;p.style.position%20=%20%22relative%22;g.style.top%20=%20%220%22;g.style.left%20=%20%220%22;g.style.zIndex%20=%20%2210000%22;p.setAttribute(%22width%22,%20w);p.setAttribute(%22height%22,%20h);})(document);
@atxryan
atxryan / bookmarklet.js
Created August 23, 2011 20:36
Trac ticket form parametizer bookmarklet
javascript:(function(a,b,c,d,e,f,g,h){if(!(e=a.jQuery)||c>e.fn.jquery||d(e)){f=b.createElement(%22script%22);f.type=%22text/javascript%22;f.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+c+%22/jquery.min.js%22;f.onload=f.onreadystatechange=function(){if(!g&&(!(h=this.readyState)||h==%22loaded%22||h==%22complete%22)){d((e=a.jQuery).noConflict(1),g=1);e(f).remove()}};b.documentElement.childNodes[0].appendChild(f)}})(window,document,%221.6%22,function(a,b){var%20c=window.location;var%20d=[];var%20e,f;a(%22fieldset#properties%20input:visible,%20fieldset#properties%20select%22).each(function(){if(a(this).val()!=%22%22){e=a(this).attr(%22name%22);f=a(this).val();d.push({name:e.replace(%22field_%22,%22%22),value:f})}});window.location=c.protocol+%22//%22+c.host+c.pathname+%22?%22+a.param(d)})
@atxryan
atxryan / breakpoint.js
Created August 29, 2011 22:06 — forked from benvinegar/breakpoint.js
Set JavaScript debugger breakpoints from the console
/**
* Utility lib for setting/unsetting JavaScript breakpoints
*
* Usage:
* breakpoint.set('globalMethodName');
* breakpoint.unset('globalMethodName');
*
* breakpoint.set('namespacedMethodName', namespaceObject);
* breakpoint.unset('namespacedMethodName', namespaceObject);
*/
{
// Appbar commands
, "MyLocation" : "My Location"
, "MyLocationTooltip" : "Find your current location"
, "GetAllCars" : "Show all cars"
, "GetAllCarsTooltip" : "Find all available car2go vehicles"
, "ShowParking" : "Show parking spot"
, "ShowParkingTooltip" : "Show parking all car2go parking spots"
, "ChangeCity" : "Change city"
@atxryan
atxryan / Things to do in Austin.md
Created September 4, 2013 21:00
Things to do in Austin

Barton Springs Pool - cold natural spring-fed pool - my favorite on a hot day!

Mount Bonnell - nice views of the lake and city

First Thursday - street festival with lots of shopping, drinks, and fun on the first Thursday of the month

Texas Rollergirls Rollerderby

kayaking or stand up paddle board on Lady Bird Lake

@atxryan
atxryan / creative_web_media
Last active December 24, 2015 14:49
I'm compiling a list of great examples of creative digital media built using HTML, JavaScript, and CSS. This can be advertising, games, music, storytelling, etc.
NY Times - Snow Fall
http://www.nytimes.com/projects/2012/snow-fall/
Ok Go - All Is Not Lost - music Video
http://www.allisnotlo.st/
Arcade Fire - The Wilderness Downtown - music video
http://thewildernessdowntown.com/
Atari Arcade - games
@atxryan
atxryan / .deployment
Created May 15, 2015 16:43
Custom Node.js deployment on Azure
[config]
command = bash deploy.sh
@atxryan
atxryan / markdown.css
Last active August 29, 2015 14:21 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@atxryan
atxryan / Rename and increment.ps1
Created May 6, 2017 19:09
Rename files in directory with incrementing number
Get-ChildItem |
% -Begin { $i = 1 } -Process {
Rename-Item -LiteralPath $_.FullName -NewName ("bonefrog_{0:D3}.jpg" -f $i++)
}
sudo apt-get update
# Install Docker dependencies
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker PGP key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"