Skip to content

Instantly share code, notes, and snippets.

afk // brb

Michael Kühnel mischah

afk // brb
View GitHub Profile
mischah / Gruntfile.js
Last active Aug 29, 2015
DalekJS Remote test execution
View Gruntfile.js
// JSHint settings
/* jshint camelcase: false, es3: false */
'use strict';
module.exports = function(grunt) {
// Get devDependencies
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
mischah / footer.html
Last active Jul 4, 2018
BEM like CSS Naming Conventions
View footer.html

Keybase proof

I hereby claim:

  • I am mischah on github.
  • I am mischah ( on keybase.
  • I have a public key whose fingerprint is 28C8 7661 0A17 2ED1 BCFD 6EC5 3A7C 284F 8149 89C2

To claim this, I am signing this object:

View _README.markdown

#How to switch between editor tabs within Eclipse

Unbelievable, that there are no build in keyboard shortcuts for switching tabs 😮

Brings the possibility to switch tabs within Eclipse like in Sublime Text for different file types:

  • Previous tab: ⎇ ⌘ ←
  • Next tab: ⎇ ⌘ →

##How to import the .epf file

  • File → Import → General → Preferences

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.

mischah /
Last active Aug 14, 2020
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:

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 ||
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,

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
You can’t perform that action at this time.