Skip to content

Instantly share code, notes, and snippets.

View markvital's full-sized avatar

Mark Vital markvital

View GitHub Profile
@markvital
markvital / .block
Last active November 7, 2016 22:08
Equidistant Points ARCs Along an Archimedean Spiral
license: mit
@markvital
markvital / .block
Last active November 4, 2016 22:49
Layout Equidistant Points Along an Archimedean Spiral
license: mit
@markvital
markvital / .block
Last active September 23, 2016 23:54
Too Late To Start
license: mit
scrolling: no
height: 1100
@markvital
markvital / recursive-delete.sh
Created December 6, 2012 17:48
Recursively delete .svn directories
# Recursively deletes .svn directories in current dir
rm -rf `find . -type d -name .svn`
# from http://www.anyexample.com/linux_bsd/bash/recursively_delete__svn_directories.xml
@markvital
markvital / centered-content.html
Created November 24, 2012 06:22
Another way to center div in position:absolute CSS
<html>
<head><title> Centered content</title></head>
<body>
<div style="position: absolute; left: 50%;">
<div style="position: relative; left: -50%; border: dotted red 1px;">
I am some centered shrink-to-fit content! <br />
tum te tum
</div>
</div>
</body>
@markvital
markvital / jquery-with-fallback.html
Created November 11, 2012 04:35
Include jQuery and jQuery UI CDN (Google) with local fallback
<!-- Grab Google CDN's jQuery & jQuery UI. Fall back to local if necessary -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
window.jQuery || document.write(unescape("<script src='/js/jquery-1.8.2.min.js' type='text/javascript'</script>"));
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript">
window.jQuery.ui || document.write(unescape("<script src='/js/jquery-ui.min.js' type='text/javascript'</script>"));
</script>
@markvital
markvital / sticky.css
Created November 9, 2012 16:31
Sticky Footer (Make the Footer Stick to the Bottom of a Page)
* {
margin: 0;
}
html, body {
height: 100%;
}
/* main content wrapper */
.wrapper {
min-height: 100%;
height: auto !important;
@markvital
markvital / centered-div-absolute
Created November 9, 2012 04:41
Center div in absolute position CSS hack
#content{
position:absolute;
left:0;
right:0;
margin-left:auto;
margin-right:auto;
}