Skip to content

Instantly share code, notes, and snippets.

View dignifiedquire's full-sized avatar

Friedel Ziegelmayer dignifiedquire

View GitHub Profile
@dignifiedquire
dignifiedquire / testacular_exit_codes.js
Created October 22, 2012 11:27
Test for exit code
var spawn = require('child_process').spawn;
var build = spawn('grunt', ['build']);
build.on('exit', function(code){
console.log('Exit: ' + code);
});
var test = spawn('grunt', ['test']);
@dignifiedquire
dignifiedquire / adapter.js
Last active November 8, 2016 02:08
Example of using connect with ejs templating and browserify.
exports.upcase = function(name) {
return name.toUpperCase();
};
@dignifiedquire
dignifiedquire / config_yaml_proposal.md
Last active December 14, 2015 03:18
Testacular Configuration in YAML

New Testacular Configuration File

The idea is to use a parsed rather than a evaluated configuration file to make the whole process safer and cleaner.

Requirements

  • Simple, readable format with little to no overhead.
  • Access to environment variables.
  • Sharing of configuration between multiple files.
@dignifiedquire
dignifiedquire / 1.coffee
Last active December 14, 2015 06:28
Testacular Handlers aka Preprocessors
a = -> 4
b = (a,b) -> a+b
// require our new directive
var resolveSprockets = require(__dirname + '/resolve-sprockets.js');
// set files to the array that we got back
var files = resolveSprockets('spec.js.coffee');
// Here goes the rest as usual
@dignifiedquire
dignifiedquire / futures_and_options.md
Last active December 17, 2015 02:59
Eberlein Exam Protocols

Futures and Options

  • Forwards und Hedging mit Forwards
  • Futures (Unterschiede zu Forwards, Marginabrechnung)
  • Zinssätze
  • Forward Rate, realisierung von Forward Rates
  • Absicherung gegen variable Verzinsung, Cap/Floor
  • Swaps (Definition und Beispiele)
  • Fixed-for-Floating Zinsswap (Genaue Definition und Herleitung der Swap Rate)
var hello = "stuff";
@dignifiedquire
dignifiedquire / Dockerfile
Last active August 8, 2019 10:49
Dockerfile: Non root nvm setup.
# NVM as non root
#
# VERSION 0.1
FROM ubuntu
MAINTAINER Friedel Ziegelmayer <fziegelmayer@codio.com>
# Install dependencies
RUN apt-get update
RUN apt-get install git curl bzip2 -yy
$ vagrant up --debug
INFO global: Vagrant version: 1.4.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/halt/plugin.rb