Skip to content

Instantly share code, notes, and snippets.

View erotte's full-sized avatar
🏡
Arbeit Arbeit Arbeit

Eckhard Rotte erotte

🏡
Arbeit Arbeit Arbeit
View GitHub Profile
@erotte
erotte / mm2umsatz
Created July 8, 2018 22:51
MoneyMoney CSV-Export fur Import in Umsatz (ältere Versionen) aufbereiten
function mm2umsatz() {
awk -F "\"*;\"*" 'NR>1 {print $1";;" $4";;;;;19%;"$8}' $1 > $1:r_umsatz.csv
}
@erotte
erotte / npm_run_recursive.sh
Created April 18, 2017 07:52
run npm run recursively
alias nr="_nr"
function _nr() {
for arg in $@; do npm run $arg; done;
}
@erotte
erotte / check_popupblocker.js
Created April 11, 2017 18:16
check for blocked Popups
var popup = window.open(location.href,'testPopup',"height=1, width=1",true);
setTimeout( function() {
if(!popup || popup.outerHeight === 0) {
//First Checking Condition Works For IE & Firefox
//Second Checking Condition Works For Chrome
alert("Popup Blocker is enabled! Please add this site to your exception list.");
} else {
//Popup Blocker Is Disabled
popup.close();
}
// copy the folling line into the URL field of a bookmark(let)
// you may need to allow popups in yout browser
javascript:(()=>{ [1920, 1660, 1360, 1160, 960, 760, 560, 360].forEach((value) => { window.open(location.href, `${value}`, `height=600,width=${value}`)});})()
@erotte
erotte / gulpfile.js
Created September 22, 2015 22:08
ionic sass-coffee-jade gulpfile
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var coffee = require('gulp-coffee');
var jade = require('gulp-jade');
@erotte
erotte / ionic-app.sh
Last active July 30, 2016 02:38
Generates an Ionic base app with Sass, CoffeeScript, Jade support
#!/usr/bin/env bash
# you might need to install ionic and cordova
# npm install -g cordova ionic
USAGE="Usage: ionic-app [AppPath/]AndName [ionic starter template]"
APP_TEMPLATE='tabs'
@erotte
erotte / SassMeister-input-HTML.jade
Created May 26, 2014 22:08
Generated by SassMeister.com.
.progress
.inner-progress
@erotte
erotte / SassMeister-input-HTML.jade
Created April 28, 2014 11:34
Generated by SassMeister.com.
.progress
.inner-progress
@erotte
erotte / keyframes_animation.sass
Created April 25, 2014 23:28
Sass helpers for keyframes animation
=keyframes($name)
@-webkit-keyframes #{$name}
@content
@-moz-keyframes #{$name}
@content
@keyframes #{$name}
@content
=animation($name, $duration)
-webkit-animation-name: #{$name}