Skip to content

Instantly share code, notes, and snippets.

View rexxars's full-sized avatar

Espen Hovlandsdal rexxars

View GitHub Profile
@rexxars
rexxars / gist:1980516
Created March 5, 2012 19:31
Zend_Oauth_Client
Index: Oauth/Client.php
===================================================================
--- Oauth/Client.php (revision 43)
+++ Oauth/Client.php (working copy)
@@ -310,7 +310,8 @@
$this->getUri(true), $this->_config, $params
);
}
- if (!empty($this->paramsPost)) {
+ if (!empty($this->paramsPost) && $this->enctype != self::ENC_FORMDATA) {
@rexxars
rexxars / gist:1948297
Created March 1, 2012 08:24
Bootstrap minified
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
audio:not([controls]){display:none;}
html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
a:hover,a:active{outline:0;}
sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
img{max-width:100%;height:auto;border:0;-ms-interpolation-mode:bicubic;}
@rexxars
rexxars / gist:1460020
Created December 11, 2011 11:17 — forked from caillou/gist:1446583
Translation for relativeDate of moment.js
/*jslint white: false */
var langs;
langs = {
"de" : {
today: "heute um %time",
tomorrow: 'morgen um %time',
next: '%weekday um %time',
yesterday: 'gestern um %time',