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 com.wierd | |
| import org.openqa.selenium.Dimension | |
| import org.scalatest.selenium.Firefox | |
| object FFTest extends Firefox { | |
| def main(args: Array[String]): Unit = { | |
| webDriver.manage.window.setSize(new Dimension(1200, 800)) |
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.satyagraga.dispatch.evaluation | |
| import dispatch._, Defaults._ | |
| import org.json4s._ | |
| import org.json4s.native.JsonMethods._ | |
| case class ITune(trackId: Int, trackName: String) | |
| object ITunesApp { |
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.test | |
| import scalax.collection.immutable.Graph | |
| import scalax.collection.GraphPredef._ | |
| import scalax.collection.GraphEdge._ | |
| object SampleGraph { | |
| case class MyNode(name: String) | |
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
| task showConfigurations << { | |
| new File("graph/configurations.dot").withWriter { out -> | |
| out.println "digraph configurations {" | |
| out.println "rankdir=BT;" | |
| configurations.all { con -> | |
| out.println "${con.name} [shape=box];" | |
| con.extendsFrom.each { ext -> | |
| out.println "${con.name} -> ${ext.name};" | |
| } | |
| } |
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
| task showConfigurationsGml << { | |
| new File("graph/configurations.graphml").withWriter { out -> | |
| builder = new groovy.xml.StreamingMarkupBuilder() | |
| builder.encoding = 'UTF-8' | |
| xml = builder.bind { | |
| mkp.xmlDeclaration() | |
| mkp.declareNamespace('': 'http://graphml.graphdrawing.org/xmlns') | |
| mkp.declareNamespace('y': 'http://www.yworks.com/xml/graphml') | |
| graphml(edgedefault: 'directed') { | |
| key('for': 'node', id: 'd1', 'yfiles.type': 'nodegraphics') |
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.mine | |
| import groovy.xml.StreamingMarkupBuilder | |
| import groovy.xml.XmlUtil | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.Set; | |
| import org.gradle.api.Project; | |
| import org.gradle.api.artifacts.Configuration; |
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.mydemo.jgraphx; | |
| import java.awt.BorderLayout; | |
| import javax.swing.JFrame; | |
| import javax.swing.SwingConstants; | |
| import com.mxgraph.layout.mxIGraphLayout; | |
| import com.mxgraph.layout.hierarchical.mxHierarchicalLayout; | |
| import com.mxgraph.swing.mxGraphComponent; |
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.mydemo.jgraphx; | |
| import java.util.Collection; | |
| import java.util.List; | |
| import javax.swing.SwingConstants; | |
| import com.mxgraph.layout.hierarchical.mxHierarchicalLayout; | |
| import com.mxgraph.model.mxCell; | |
| import com.mxgraph.model.mxGeometry; |
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.mydemo.jgraphx; | |
| import java.awt.BorderLayout; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import javax.swing.JFrame; | |
| import javax.swing.SwingConstants; | |
| import com.mxgraph.layout.mxIGraphLayout; |
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.swing | |
| import java.awt.Color | |
| /** | |
| * A utility object to provide Java Color objects from the X11 namespace. | |
| * | |
| * @see http://en.wikipedia.org/wiki/X11_color_names | |
| * @author satyagraha | |
| * @license MIT |
OlderNewer