This file contains hidden or 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.Linq; | |
using System.Collections.Generic; | |
using System.Threading; | |
using Akka; | |
using Akka.Actor; | |
namespace todict |
This file contains hidden or 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
/* CSV Viewer Inkrement #1 - Erste Seite anzeigen */ | |
String[] tabellenzeilen = FirstPage(args) | |
tabellenzeilen.each {l -> println(l)} | |
String[] FirstPage(String[] args) { | |
def dateiname = Dateiname_ermitteln(args) | |
def seitenlänge = Seitenlänge_ermitteln(args) |
This file contains hidden or 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
import daten.* | |
import adapter.* | |
import domain.* | |
def (String spielfelddateiname, String mogelzetteldateiname) = CLIadapter.kommandozeilenparameter_lesen(args) | |
def spielfeldPM = Dateiadapter.lese_Spielfeld(spielfelddateiname) | |
def mogelzettelPM = berechne_Mogelzettel(spielfeldPM) | |
Dateiadapter.schreibe_Mogelzettel(mogelzetteldateiname, mogelzettelPM) | |
def berechne_Mogelzettel(String[] spielfeldPM) { |
This file contains hidden or 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
namespace spellchecker | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
var dateipfade = InputReader.Input_Params_lesen (args); | |
var text = FileIO.Textdatei_lesen (dateipfade.Item1); | |
var lex = FileIO.Lexikon_lesen (dateipfade.Item2); |
This file contains hidden or 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.Windows.Forms; | |
using Akka.Actor; | |
namespace spike.akka | |
{ | |
static class Program | |
{ | |
[STAThread] | |
static void Main() |
This file contains hidden or 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; | |
namespace ppoop | |
{ | |
// source: http://www.csis.pace.edu/~bergin/patterns/ppoop.html | |
class MainClass | |
{ | |
public static void Main (string[] args) |
This file contains hidden or 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
public class Game { | |
private int[] rolls = new int[21]; | |
private int currentRoll = 0; | |
public void roll(int pins) { | |
rolls[currentRoll++] = pins; | |
} | |
public int score() { | |
var frames = Detect_frames (rolls); |
This file contains hidden or 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
# Build image with Node.js, Elm and Nginx | |
FROM debian:latest | |
# prepare | |
RUN apt-get -y update | |
RUN apt-get -y install apt-utils | |
# install curl, http://stackoverflow.com/questions/27273412/cannot-install-packages-inside-docker-ubuntu-image | |
RUN apt-get -y install curl |
This file contains hidden or 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
module Main exposing(main) | |
import Html exposing (Html, div, span, br, text, table, tr, td, button) | |
import Html.Attributes exposing (style) | |
import Html.App exposing (beginnerProgram) | |
import Html.Events exposing (onClick) | |
import Array exposing (Array) | |
import List |
This file contains hidden or 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.Linq; | |
namespace terraingenBlog | |
{ | |
public class TerrainGenerator { | |
public static void Interpolate(Terrain terrain, float offset, float amplitude) { | |
Interpolate(terrain, offset, amplitude, Random_numbers_between_minus_1_and_1()); | |
} |