The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| !function(){"use strict";function a(b,d){function e(a,b){return function(){return a.apply(b,arguments)}}var f;if(d=d||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=d.touchBoundary||10,this.layer=b,this.tapDelay=d.tapDelay||200,this.tapTimeout=d.tapTimeout||700,!a.notNeeded(b)){for(var g=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],h=this,i=0,j=g.length;j>i;i++)h[g[i]]=e(h[g[i]],h);c&&(b.addEventListener("mouseover",this.onMouse,!0),b.addEventListener("mousedown",this.onMouse,!0),b.addEventListener("mouseup",this.onMouse,!0)),b.addEventListener("click",this.onClick,!0),b.addEventListener("touchstart",this.onTouchStart,!1),b.addEventListener("touchmove",this.onTouchMove,!1),b.addEventListener("touchend",this.onTouchEnd,!1),b.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(b.removeEventListener=function(a,c,d){var e=No |
| Verifying that +joeworkman is my blockchain ID. https://onename.com/joeworkman |
| #!/bin/bash | |
| rm -r /websites/cms.joeworkman.net/cms-data/ | |
| cp -r /home/joeworkman/cms-data-template /websites/cms.joeworkman.net/cms-data/ |
| // ------------------------------------------ | |
| // Utility Classes | |
| // ------------------------------------------ | |
| .fn-text-header{ color:$headerColor } | |
| .fn-text-link{ a {color:$linkColor} } | |
| .fn-text-link{ a:hover {color:$linkHoverColor} } | |
| .fn-text-text{ color:$fontColor; p,div{color:$fontColor;}} | |
| .fn-text-accent{ color:$textAccents } | |
| .fn-text-code-text{ color:$codeText } | |
| .fn-text-header-alt{ color:$headerColorAlt } |
| # You need the put in the full path to the directory that has your backups | |
| # This directory will have a bunch of folders that are named with dates | |
| sudo find "/Volumes/Full Path/To Backup/Directory" -type d -ctime +90 -maxdepth 1 -exec tmutil delete {} \; |
| # Simple redirect | |
| Redirect 301 /mac/mynest/ http://joeworkman.net/mac/climate/ | |
| # 404 Error catch | |
| ErrorDocument 404 /errors/404/index.html | |
| ErrorDocument 403 /errors/404/index.html | |
| ErrorDocument 500 /errors/500/index.html | |
| # Compression | |
| <IfModule mod_deflate.c> |
| launchpro-clipboard://x-callback-url/addText?value=[prompt-twitter:Post]& | |
| x-success={{launchpro-facebook://x-callback-url/clipboard& | |
| x-success={{launchpro-tweet://x-callback-url/clipboard& | |
| x-success={{launchpro://?url=riposte%3A%2F%2FcreateNewPost%3Ftext%3D%5Bclipboard%5D%26accountID%3Djoeworkman}} | |
| }} | |
| }} |
| <video width="320" height="240" poster="poster.jpg" controls="controls" preload="none"> | |
| <!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 --> | |
| <source type="video/mp4" src="myvideo.mp4" /> | |
| <!-- WebM/VP8 for Firefox4, Opera, and Chrome --> | |
| <source type="video/webm" src="myvideo.webm" /> | |
| <!-- Ogg/Vorbis for older Firefox and Opera versions --> | |
| <source type="video/ogg" src="myvideo.ogv" /> | |
| <!-- Optional: Add subtitles for each language --> | |
| <track kind="subtitles" src="subtitles.srt" srclang="en" /> | |
| <!-- Optional: Add chapters --> |
| <?php | |
| if (!empty($_SERVER['SUBDOMAIN_DOCUMENT_ROOT'])) { | |
| #GoDaddy Hackery | |
| $_SERVER['DOCUMENT_ROOT'] = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT']; | |
| } | |
| ?> |