This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
namespace Choffmeister.Utils | |
{ | |
public static class VisitorGenerator | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install build-essential automake checkinstall intltool git | |
sudo apt-get install mono-complete mono-addins-utils gtk-sharp2 gnome-sharp2 | |
git clone git://github.com/mono/monodevelop | |
cd monodevelop | |
git checkout monodevelop-4.0 | |
git submodule update --init --recursive | |
./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Collections; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
namespace NUnitTest | |
{ | |
[AttributeUsage (AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | |
public sealed class EnumParameterValueAttribute : ParameterDataAttribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013 Christian Hoffmeister | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' | |
& eval 'exec perl -wS "$0" $argv:q' | |
if 0; | |
# Convert git log output to ChangeLog format. | |
my $VERSION = '2012-07-29 06:11'; # UTC | |
# The definition above must lie within the first 8 lines in order | |
# for the Emacs time-stamp write hook (at end) to update it. | |
# If you change this file with Emacs, please let the write hook | |
# do its job. Otherwise, update this string manually. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# The MIT License (MIT) | |
# Copyright (c) 2014 Christian Hoffmeister | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var argv = require('yargs').argv, | |
bower = require('main-bower-files'), | |
coffee = require('gulp-coffee'), | |
concat = require('gulp-concat'), | |
connect = require('connect'), | |
filter = require('gulp-filter'), | |
gif = require('gulp-if'), | |
gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
jade = require('gulp-jade'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bluebird.prototype.flatThen = function (promise, transform) { | |
return new Bluebird(function (resolve, reject) { | |
promise | |
.then(function (value1) { | |
transform(value1) | |
.then(function (value2) { | |
resolve(value2); | |
}) | |
.catch(function (err2) { | |
reject(err2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The MIT License (MIT) | |
// Copyright (c) 2015 Christian Hoffmeister | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path("test") { | |
extract(ctx => ctx.request.entity.dataBytes) { body => | |
complete { | |
val processing = body | |
.map { chunk => | |
//println(s"Received ${chunk.length} bytes") | |
chunk | |
} | |
.map { chunk => | |
// simulate slow processing speed |
OlderNewer