Skip to content

Instantly share code, notes, and snippets.

View mischah's full-sized avatar
:octocat:
afk // brb

Michael Kühnel mischah

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

Keybase proof

I hereby claim:

  • I am mischah on github.
  • I am mischah (https://keybase.io/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:

#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
mischah / z.md
Last active December 9, 2022 02:11
Installing und initializing z (https://github.com/rupa/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
mischah / jquery.fullScreenHelper.js
Last active April 30, 2018 09:44
Helper methods to handle vendor specific methods provided by the HTML5 fullscreen API for the web platform. See readme.md for details.
/**
* 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 ||
var Twit = require("twit");
var config = require('./oauthconfig');
console.log("config:");
console.log(config);
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