Skip to content

Instantly share code, notes, and snippets.

View betawax's full-sized avatar

Holger Weis betawax

  • Germany
View GitHub Profile
@betawax
betawax / gist:1817527
Created February 13, 2012 15:15
jQuery closure
!function($) {}(jQuery);
@betawax
betawax / gist:1817546
Created February 13, 2012 15:18
CSS simple reset
html * { margin: 0; padding: 0; border: 0; outline: 0; }
@betawax
betawax / gist:1840255
Created February 16, 2012 00:07
Viewport meta tag
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@betawax
betawax / gist:1844050
Created February 16, 2012 10:56
jQuery page ready
$(window).load(function() {});
@betawax
betawax / gist:2009567
Created March 10, 2012 01:15
Break words at arbitrary points
word-wrap: break-word;
@betawax
betawax / gist:2021955
Created March 12, 2012 13:35
Reload the current page from the server
window.location.reload(true);
@betawax
betawax / LICENSE
Last active October 2, 2015 03:38
The MIT License
The MIT License (MIT)
Copyright (c) 2015 Holger Weis
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@betawax
betawax / gist:2605931
Created May 5, 2012 22:15
Facebook Open Graph tags
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
@betawax
betawax / gist:2659468
Created May 11, 2012 13:00
Apple touch icon
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png" />
@betawax
betawax / gist:2659485
Created May 11, 2012 13:06
Shortcut icon
<link rel="shortcut icon" href="favicon.png" />