Skip to content

Instantly share code, notes, and snippets.

View michsch's full-sized avatar

Michael Schulze michsch

View GitHub Profile
@michsch
michsch / multiple_ssh_setting.md
Created April 19, 2021 17:00 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@michsch
michsch / YAML Emmet
Last active August 29, 2015 13:56 — forked from jensgro/gist:7719515
/*========= Columns =================== */
/* col1 / col2 / col3 */
.ym-column>(.ym-col1>.ym-cbox-left)+(.ym-col2>.ym-cbox)+(.ym-col3>.ym-cbox-right>.ym-ie-clearing)
/* col1 / col3 / col2 */
.ym-column>(.ym-col1>.ym-cbox-left)+(.ym-col3>.ym-cbox>.ym-ie-clearing)+(.ym-col2>.ym-cbox-right)
/* col2 / col3 / col1 */
.ym-column>(.ym-col2>.ym-cbox-left)+(.ym-col3>.ym-cbox>.ym-ie-clearing)+(.ym-col1>.ym-cbox-right)
# A class-based template for jQuery plugins in Coffeescript
#
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
#
# Check out Alan Hogan's original jQuery plugin template:
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template
#
(($, window) ->
###jshint devel:true
###
###global require, define, _, module
###
###*
* Some new useful underscore mixins
* originally by echong: https://gist.github.com/echong/3861963#file-underscore-mixin-deepextend-coffee
###
( ( root, factory ) ->
@michsch
michsch / Grunt Coffee Task
Created July 11, 2012 01:18 — forked from davidpfahler/Grunt Coffee Task
A grunt task that compiles coffee-script to js
/*
* Grunt Task File
* ---------------
*
* Task: coffee
* Description: Compile coffee files to js
* Dependencies: coffee-script
*
*/
@michsch
michsch / compass-retina-sprites.scss
Created July 2, 2012 22:50 — forked from alanhogan/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
@michsch
michsch / gist:1431688
Created December 4, 2011 23:48 — forked from tauren/gist:1045906
Make it safe to use console.log always. How to convert to coffeescript?
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console) {
arguments.callee = arguments.callee.caller;
console.log( Array.prototype.slice.call(arguments) );
}
};