Skip to content

Instantly share code, notes, and snippets.

@bumpux
bumpux / Bookmarklet Value
Created January 14, 2012 00:30
Bookmarklet: MarkDress This
javascript: var _url = location.href.replace("http:\/\/",""); _url = "http://markdress.org/" + _url;location = _url
@bumpux
bumpux / h5bp-twitter-bootstrap
Created February 1, 2012 01:18 — forked from mklabs/bootstrap-plugins.txt
h5bp + twitter bootstrap integration
#!/usr/bin/env bash
src=$PWD
h5bp_remote=git://github.com/h5bp/html5-boilerplate.git
bootstrap_remote=git://github.com/twitter/bootstrap.git
h5bp_branch=master
bootstrap_branch=master
@bumpux
bumpux / gist:4567599
Created January 18, 2013 19:29
Firefox displays an alert prompting users to approve whenever a site attempts to use the application cache for offline storage (cache.manifest). Other browsers accept the cache manifest without an alert. If you don't want to alarm your users, and can live without offline storage in Firefox, here's how you disable it in Firefox only. (simple enou…
$(document).ready(function() {
// disable offline caching for Firefox to avoid alarming the user
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
$("html").removeAttr("manifest");
}
});
@bumpux
bumpux / animated-tweaker.less
Last active December 11, 2015 07:39
A LESS mixin to tweak options in animate.css (https://github.com/daneden/animate.css). Once in place you can do: .animated-tweaker(1.2s, 0.1s, 1); //duration, delay, repeats
.animated-tweaker (@duration: 1.1s, @delay: 0.5s, @repeats: 1) {
-webkit-animation-duration: @duration;
-moz-animation-duration: @duration;
-ms-animation-duration: @duration;
-o-animation-duration: @duration;
animation-duration: @duration;
-webkit-animation-delay: @delay;
-moz-animation-delay: @delay;
-ms-animation-delay: @delay;
@bumpux
bumpux / dabblet.css
Created July 4, 2013 17:42 — forked from stoikerty/dabblet.css
SVG alternative to fittext.js
/* SVG alternative to fittext.js */
div {
width: 300px;
height: 150px;
float: left;
margin-right : 10px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
@bumpux
bumpux / c4w.markdown
Created September 22, 2016 16:34
c4w