Skip to content

Instantly share code, notes, and snippets.

View mdasberg's full-sized avatar

Mischa Dasberg mdasberg

View GitHub Profile

Openapi-generator with Lombok

Directory structure

  • templates
    • JavaSpring
      • beanValidation.mustache
      • model.mustache
      • pojo.mustache
@mdasberg
mdasberg / gist:1cf7fc25c76b6ed1854d4789c4666b66
Created March 18, 2019 08:14
mediaserver - docker-compose
version: '3'
services:
sonarr:
container_name: orion_sonarr
image: linuxserver/sonarr
restart: always
ports:
- 81:8989
volumes:
@mdasberg
mdasberg / mockModule.js
Last active February 3, 2016 10:30
Angular override $window attribute
function Provider($provide) {
function WindowUserAgentOverride($delegate) {
Object.defineProperties($delegate.navigator, {
userAgent: {
value: 'MSIE9'
}
});
return $delegate;
}
@mdasberg
mdasberg / protractor.conf.js
Created February 12, 2015 16:27
Merge protractor-coverage results into one file
var grunt = require('grunt'),
mkdirp = require('mkdirp');
exports.config = {
// ---------------------------------------------------------------------------
// ------------- Use your default protractor config and override -------------
// ------------------ the onPrepare and onCleanup functions -----------------
// ---------------------------------------------------------------------------
onPrepare: function() {
@mdasberg
mdasberg / Gruntfile.js
Created February 12, 2015 13:37
Grunt lifecycles
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.registerTask('prepare', 'Prepare the build with all the necessary stuff.', function() {
grunt.log.subhead('Add your prepare tasks here');
});
grunt.registerTask('test', 'Execute tests.', function() {
@mdasberg
mdasberg / pre-and-post-grunt-hook.js
Last active March 8, 2019 15:13
Pre-execution and post-execution "hooks" for Grunt
var grunt = require('grunt');
var hooker = require('hooker');
module.exports = preAndPostHook = function () {
var currentTask = undefined;
/**
* Do something when the task has sta.
* @param taskName The task name.
*/
@mdasberg
mdasberg / xcharts.html
Created July 7, 2014 12:50
xCharts angularjs implementation
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>xCharts</title>
<script src="/bower_components/angular/angular.min.js"></script>
<script src="/bower_components/d3/d3.js"></script>
<script src="/bower_components/bower-xcharts/xcharts.js"></script>
<link href="/bower_components/bower-xcharts/xcharts.css" rel="stylesheet">