This example models a class diagram with Scuml and then uses Graphviz to render the class diagram.
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
| apply plugin: 'java' | |
| apply plugin: 'eclipse' | |
| sourceCompatibility = '1.5' | |
| version = '0.0.1' | |
| repositories { | |
| mavenCentral() | |
| } |
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
| abstract class Vehicle(val color: String) { | |
| def price = 100 * factor | |
| def factor: Double | |
| } | |
| class Car(override val color: String) extends Vehicle(color) { | |
| val factor = 1.0 | |
| } | |
| class Van(override val color: String) extends Vehicle(color) { |
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
| package org.codingkata.unit; | |
| import _root_.org.codingkata.unit.api.BaseKataSolution; | |
| class MyKata extends BaseKataSolution { | |
| /** | |
| * Revert a word in 'backward talk' to understand it | |
| * | |
| * @param word the backwards word |
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 sbt._ | |
| import com.github.sdb.sbt.liquibase._ | |
| class TestProject(info: ProjectInfo) extends DefaultProject(info) with LiquibasePlugin { | |
| // declare the required database driver as a runtime dependency | |
| val h2 = "com.h2database" % "h2" % "1.2.143" % "runtime" | |
| // fetch the running mode from the system properties (dev, prd, ...) | |
| lazy val mode = system[String]("mode").get.getOrElse(null) |
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
| package sbt { | |
| import org.glassfish.embeddable.{GlassFish, GlassFishRuntime, GlassFishProperties, Deployer} | |
| trait GlassFishPlugin extends BasicWebScalaProject { | |
| def glassFishPort = GlassFishRunner.DefaultPort | |
| private lazy val glassFish = new GlassFishRunner(glassFishPort, temporaryWarPath) | |
| lazy val glassfishRun = glassfishRunAction |
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
| #! /usr/bin/env python | |
| """ | |
| Script to copy all bookmarks from Read It Later to Instapaper. | |
| See also http://readitlaterlist.com/api/docs/#get | |
| and http://www.instapaper.com/api/simple | |
| """ | |
| import urllib, urllib2, json |
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 FilterKeys._ | |
| seq(filterSettings: _*) | |
| filterDirectoryName := "my-filters" | |
| includeFilter in filters := AllPassFilter -- HiddenFileFilter | |
| includeFilter in filterResources ~= { f => f || ("*.props" | "*.conf") } |
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
| node_modules |
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
| server = require("./server") | |
| server.startServer 3333, "public" |
OlderNewer