Skip to content

Instantly share code, notes, and snippets.

View Kienz's full-sized avatar

Stefan Kienzle Kienz

  • Stuttgart, Germany
View GitHub Profile
@Kienz
Kienz / .bash_profile
Created February 23, 2018 09:22 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
(function () {
'use strict';
/**
* Mapper Model->View (Formatter) und View-> Model (Parser) für ein Date Objekt.
* Im Model wird ein Date-String benötigt und an der View wird ein Date-Objekt benötigt.
* Beispiel:
* Model = "2015-11-21"
* View = `Tue Dec 01 2015 00:00:00 GMT+0100 (Mitteleuropäische Zeit)` (new Date())
@Kienz
Kienz / node-image-resize.js
Last active August 29, 2015 14:03
node.js imagemagick resize
(function() {
'use strict';
var async = require('async'),
fs = require('fs'),
im = require('imagemagick'),
maxworkers = require('os').cpus().length,
path = require('path');
@Kienz
Kienz / programatic_scale_rotate.js
Created November 27, 2013 17:37
`centeredRotation` and `centeredScaling` for programmatic use.
(function() {
canvas = this.__canvas;
canvas.__eventListener = null;
fabric.Object.prototype.transparentCorners = false;
var $ = function(id){return document.getElementById(id)};
var rect = canvas.item(0);