Skip to content

Instantly share code, notes, and snippets.

afk // brb

Michael Kühnel mischah

afk // brb
View GitHub Profile
mischah / .gitconfig
Created Apr 19, 2011
My minimal ~/.gitconfig
View .gitconfig
name = Firstname Lastname
email =
diff = auto
status = auto
branch = auto
whitespace = nowarn
mischah / gist:1289555
Created Oct 15, 2011
Recursively delete .svn directories
View gist:1289555
rm -rf 'find . -type d -name .svn'
View Black-UpperLeft.html
<a href=""><img style="position: absolute; top: 0; left: 0; border: 0;" src="" alt="Fork me on GitHub"></a>
mischah / dabblet.css
Created Nov 13, 2012
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;

Code Style

  • Tab indentation
  • Single-quotes
  • Semicolon
  • Strict mode
  • No trailing whitespace
  • Variables at the top of the scope
  • Multiple variable statements
  • Space after keywords and between arguments and operators
View feelbetter.js
var Twit = require("twit");
var config = require('./oauthconfig');
var T = new Twit({
consumer_key: config.consumer_key,
consumer_secret: config.consumer_secret,
access_token: config.access_token,
mischah / jquery.fullScreenHelper.js
Last active Apr 30, 2018
Helper methods to handle vendor specific methods provided by the HTML5 fullscreen API for the web platform. See for details.
View jquery.fullScreenHelper.js
* Checking the browsers fullscreen ability. Returns vendor specific methods.
* @return {Object} return.requestMethod The browser specific requestFullScreen method
* @return {Object} return.cancelMethod The browser specific cancelFullScreen method
var checkFullScreenAbility = function() {
var fullScreenAbility = {},
requestMethod = document.body.requestFullScreen ||
document.body.webkitRequestFullScreen ||
document.body.mozRequestFullScreen ||
mischah /
Last active Jun 7, 2021
Installing und initializing z ( with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this:


IEs weird CSS limits which leads to ignoring CSS rules and files

IE9 is still having the following weird limits when it's coining to CSS

  • 4096 rules limit
  • 31 <style> and <link> tags limit

See [MSDN] for details.