Skip to content

Instantly share code, notes, and snippets.

View ptb's full-sized avatar

Peter T Bosse II ptb

  • 11:29 (UTC -04:00)
View GitHub Profile
<!DOCTYPE html>
<html class='no-js' lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta charset='UTF-8' />
<title></title>
<meta content='initial-scale=1, maximum-scale=1, user-scalable=0, width=device-width' name='viewport' />
<style>
#calendar table {
font-weight: 700;
font-family: "Helvetica Neue", sans-serif;
(function(){var requirejs,require,define;(function(n){function r(n,t){return w.call(n,t)}function h(n,t){var o,s,f,e,h,p,c,b,r,l,w,u=t&&t.split("/"),a=i.map,y=a&&a["*"]||{};if(n&&n.charAt(0)===".")if(t){for(u=u.slice(0,u.length-1),n=n.split("/"),h=n.length-1,i.nodeIdCompat&&v.test(n[h])&&(n[h]=n[h].replace(v,"")),n=u.concat(n),r=0;r<n.length;r+=1)if(w=n[r],w===".")n.splice(r,1),r-=1;else if(w==="..")if(r===1&&(n[2]===".."||n[0]===".."))break;else r>0&&(n.splice(r-1,2),r-=2);n=n.join("/")}else n.indexOf("./")===0&&(n=n.substring(2));if((u||y)&&a){for(o=n.split("/"),r=o.length;r>0;r-=1){if(s=o.slice(0,r).join("/"),u)for(l=u.length;l>0;l-=1)if(f=a[u.slice(0,l).join("/")],f&&(f=f[s],f)){e=f,p=r;break}if(e)break;!c&&y&&y[s]&&(c=y[s],b=r)}!e&&c&&(e=c,p=b),e&&(o.splice(0,p,e),n=o.join("/"))}return n}function y(t,i){return function(){return u.apply(n,b.call(arguments,0).concat([t,i]))}}function k(n){return function(t){return h(t,n)}}function p(n){return function(i){t[n]=i}}function s(i){if(r(e,i)){var u=e[i];delete e
onEvent: (event) ->
event.preventDefault()
event.stopPropagation()
return if window.throttle
window.throttle = true
setTimeout (->
window.throttle = false
), 100
# throttled work here
@ptb
ptb / gist:246dd516342c6a89152f
Created August 2, 2014 11:49
jQuery AJAX-only
grunt custom:-ajax/jsonp,-ajax/parseXML,-ajax/script,-attributes,-core/access,-core/init,-core/parseHTML,-core/ready,-css,-data,-deprecated,-dimensions,-effects,-event,-exports/global,-manipulation,-offset,-queue,-serialize,-sizzle,-traversing,-wrap
@ptb
ptb / gist:b03ac986ab80eec04dba
Created August 21, 2014 19:40
hairline css
background: -webkit-linear-gradient(0, #000 50%, transparent 50%) 0 0 / 1px 100%, -webkit-linear-gradient(90deg, #000 50%, transparent 50%) 0 100% / 100% 1px, -webkit-linear-gradient(180deg, #000 50%, transparent 50%) 100% 0 / 1px 100%, -webkit-linear-gradient(270deg, #000 50%, transparent 50%) 0 0 / 100% 1px
background-repeat: no-repeat
@ptb
ptb / .gitignore
Created September 19, 2014 11:58
.Trash
.cache
.ccache
.dropbox
.dvdcss
.fontconfig
.zcompdump
Library/Caches
Library/Logs
Library/Saved Application State
@ptb
ptb / js.svg
Created October 16, 2014 14:16
JavaScript logo in SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ptb
ptb / rails.svg
Created October 16, 2014 15:23
Ruby on Rails logo in SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ptb
ptb / html5.svg
Created October 16, 2014 15:40
HTML 5 logo in SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ptb
ptb / svg.svg
Created October 17, 2014 10:45
SVG logo in SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.