Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
afk // brb

Michael Kühnel mischah

:octocat:
afk // brb
View GitHub Profile
@mischah
mischah / .gitconfig
Created Apr 19, 2011
My minimal ~/.gitconfig
View .gitconfig
[user]
name = Firstname Lastname
email = mail@domain.com
[color]
diff = auto
status = auto
branch = auto
[apply]
whitespace = nowarn
@mischah
mischah / gist:1289555
Created Oct 15, 2011
Recursively delete .svn directories
View gist:1289555
cd FOLDER
rm -rf 'find . -type d -name .svn'
View Black-UpperLeft.html
<a href="http://github.com/you"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
@mischah
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%;
View codestyle.md

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');
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,
@mischah
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 readme.md 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
mischah / z.md
Last active May 24, 2020
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.
View z.md

#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:

View _readme.md

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.

You can’t perform that action at this time.