Skip to content

Instantly share code, notes, and snippets.

Alex Meub meub

Block or report user

Report or block meub

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
meub / gist:5807911
Created Jun 18, 2013
Cross Browser Inline Block CSS
View gist:5807911
/* Inline Block X-Browser Hack */
meub / gist:5818904
Created Jun 19, 2013
Sticky Footer CSS
View gist:5818904
html {
position: relative;
min-height: 100%;
body {
margin: 0 0 100px; /* bottom = footer height */
.footer {
position: absolute;
left: 0;
meub / gist:5828616
Last active Dec 18, 2015
Mac Setup ProTips™
View gist:5828616

##Mac Setup

####1. Disable Mouse acceleration permanently (must reboot)

defaults write .GlobalPreferences -1

####2. Install TotalTerminal Run this command to fix duplicate terminal windows:

defaults write TotalTerminalCloseWindowsOnStart -bool YES
meub / gist:5864429
Created Jun 26, 2013
Semantic Div with Anchor
View gist:5864429
meub / gist:5936187
Created Jul 5, 2013
Wrap around a fixed element
View gist:5936187
div {
border:4px solid black;
right: 0;
A fixed position happens relative to the viewport, so that the positioning properties left, right, top, and bottom, as well as width and height will position and size the element based on the size and boundaries of the viewport.
meub / gist:6050618
Last active Dec 20, 2015
Vendor prefixes
View gist:6050618
/*Border Radius*/
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
border-radius: 4px;
/*Box Shadow*/
meub / gist:6091400
Created Jul 26, 2013
Prevent parseJSON from barfing on line breaks.
View gist:6091400
function parse(text) {
text = str_replace("\r\n", "\n", text);
text = str_replace("\r", "\n", text);
text = str_replace("\n", "\\n", text);
return text;
meub / gist:6201298
Created Aug 10, 2013
Absolute Centering
View gist:6201298
/* Must have a declared height */
.Absolute-Center {
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
meub / gist:6314276
Created Aug 23, 2013
CSS Transform, with Transform Origin
View gist:6314276
.rotate {
-webkit-transform: rotate(90deg);
-webkit-transform-origin: left top;
-moz-transform: rotate(90deg);
-moz-transform-origin: left top;
-ms-transform: rotate(90deg);
-ms-transform-origin: left top;
-o-transform: rotate(90deg);
-o-transform-origin: left top;
meub / gist:5e6efce206ceb86f7075411c452530a0
Last active Apr 27, 2018
Instructions on how to setup DD-WRT to recognize Amazon Dash button presses
View gist:5e6efce206ceb86f7075411c452530a0
### Dash Button Hack ###
DD WRT > Services > Services > Additional DNSMasq options:
DD WRT > Status > Wireless:
Press your Dash button.
Note your MAC address as it appears on the Status page.
DD WRT > Administration > Commands > Custom Script:
You can’t perform that action at this time.