Skip to content

Instantly share code, notes, and snippets.

View michelbalzer's full-sized avatar

Michel Balzer michelbalzer

View GitHub Profile
@michelbalzer
michelbalzer / cmmp3only.sh
Created March 7, 2019 19:32
Copy only modified MP3 from Current Dir to iTunes
rsync -a -u --progress --existing --include="*/" --exclude="*" --include="*.mp3" . /Users/Shared/iTunes/iTunes\ Media/Music/
@michelbalzer
michelbalzer / mkfavicon.sh
Last active July 30, 2019 13:42 — forked from pfig/mkfavicon.sh
Make a multi-resolution favicon.ico from a source image, using ImageMagick
#!/bin/bash
# from
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png
convert favicon-256.png -resize 16x16 favicon-16.png
convert favicon-256.png -resize 32x32 favicon-32.png
convert favicon-256.png -resize 64x64 favicon-64.png
convert favicon-256.png -resize 128x128 favicon-128.png
@michelbalzer
michelbalzer / SassMeister-input.scss
Created August 19, 2015 15:27
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$color-green: #93c649;
$color-red: #c51919;
$color-blue: #0059a5;
$color-orange: #f26522;
$color-yellow: #e5f10c;
$color-brown: #b74e09;

Keybase proof

I hereby claim:

  • I am michelbalzer on github.
  • I am michelbalzer (https://keybase.io/michelbalzer) on keybase.
  • I have a public key whose fingerprint is 9F91 30EB 2848 2DB7 D83A E22A F270 3DDA 3B79 1023

To claim this, I am signing this object:

/**
* REM units mixin with PX fallback for legacy browsers with no REM unit support
* https://github.com/christopher-ramirez/remixings
*/
// ===== REM UNIT MIXINS ====
@base-font-size-px: 16; // root's font size. @base-font-size-px MUST ME AN INTEGER.
@pxtorem-js-function: ~`pxtorem = function(px){ if (typeof rmxsBaseFontSize == 'undefined') rmxsBaseFontSize = @{base-font-size-px}; return (parseInt(px.replace(/(^\d+)(.+$)/i,'$1')) / rmxsBaseFontSize + 'rem') }`;
// ===== FONT MIXINS =====
.font-size(@value) {