Skip to content

Instantly share code, notes, and snippets.

View martinec's full-sized avatar
🚀
Turning data into Knowledge

Cristian Martinez martinec

🚀
Turning data into Knowledge
View GitHub Profile
@martinec
martinec / updateobject-snnipet.js
Last active August 29, 2015 14:01
Updating javascript object property
function update ( first, second ) {
for (var key in second) {
if (first.hasOwnProperty(key)) {
first[ key ] = second[ key ];
}
}
return first;
}
@martinec
martinec / Makefile
Last active August 29, 2015 14:01
Batch convert SVG files in a set of PNG images in different sizes
# This makefile uses the inkscape command line mode to export
# SVG files in a set of foo-{SIZES}.png images
all: icons
# Input SVG images without extensions
IMAGES = icon icon_inactive
# Output PNG sizes
SIZES = 16 32 48 64
INKSCAPE = inkscape
DASH = -