Skip to content

Instantly share code, notes, and snippets.

View davidjgraph's full-sized avatar
🏠
Typing...

David Benson davidjgraph

🏠
Typing...
View GitHub Profile
@davidjgraph
davidjgraph / gist:5b80c4349343aeb37a18
Created October 29, 2014 07:12
google drive october outages
https://www.google.com/appsstatus#hl=en&v=issue&sid=4&iid=b1cb0e38a5a53273c8a2d8c626cd235f
https://www.google.com/appsstatus#hl=en&v=issue&ts=1414018799000&sid=4&iid=1dfba0ee002bf62fdd6ec449bc4519b7
https://www.google.com/appsstatus#hl=en&v=issue&ts=1413413999000&sid=4&iid=12f2355b54d0cd4d792c8874f5abb548
<!--
$Id: radiallayout.html$
Copyright (c) 2006-2014, JGraph Ltd
Hierarchical Layout example for mxGraph. This example demonstrates the
use of the hierarchical and organic layouts. Note that the hierarchical
layout requires another script tag in the head of the page.
-->
<html>
<head>
@davidjgraph
davidjgraph / gist:9d997cdf81f438bbd725
Created July 29, 2014 13:27
explore.js draw.io plugin
/**
* Explore plugin.
*/
Draw.loadPlugin(function(ui)
{
// Adds resource for action
mxResources.parse('exploreFromHere=Explore from here...');
// Max number of edges per page
var pageSize = 20;
@davidjgraph
davidjgraph / helloworld.html
Created June 5, 2014 06:24
helloworld.html
<!--
$Id: helloworld.html,v 1.6 2013/10/28 08:44:54 gaudenz Exp $
Copyright (c) 2006-2013, JGraph Ltd
Hello, World! example for mxGraph. This example demonstrates using
a DOM node to create a graph and adding vertices and edges.
-->
<html>
<head>
<title>Hello, World! example for mxGraph</title>
@davidjgraph
davidjgraph / ExportServlet.java
Created March 27, 2014 16:25
Old PDF exporter with custom font mapping
protected void writePdf(String fname, int w, int h, Color bg, String xml, HttpServletResponse response) throws DocumentException,
IOException, SAXException, ParserConfigurationException
{
response.setContentType("application/pdf");
if (fname != null)
{
response.setHeader("Content-Disposition", "attachment; filename=\"" + fname + "\"");
}
draw.io Online Privacy and Security Policy
------------------------------------------
This is the privacy and security policy of JGraph Ltd (JGraph) for usage of the online draw.io tool. This policy applies to usage of www.draw.io and drive.draw.io. It does not apply to other sites and applications that embed the draw.io application.
We are JGraph Limited, a company registered in England and Wales - No. 04051179. Our registered office is at:
JGraph Ltd
Artisans' House
Queensbridge
@davidjgraph
davidjgraph / dia_it.txt
Created March 6, 2014 16:33
draw.io Italian translations
# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE
aboutDrawio=About draw.io
access_denied=Accesso negato
actualSize=Dimensione attuale
add=Add
addLayer=Add layer
addProperty=Add property
addToExistingDrawing=Aggiungi al disegno esistente
addWaypoint=Add waypoint
align=Allinea
@davidjgraph
davidjgraph / mxCompactTree.js
Created March 5, 2014 11:13
mxCompactTree from mxGraph 2.5.1
/**
* $Id: mxCompactTreeLayout.js,v 1.6 2013/10/28 08:45:05 gaudenz Exp $
* Copyright (c) 2006-2013, JGraph Ltd
*/
/**
* Class: mxCompactTreeLayout
*
* Extends <mxGraphLayout> to implement a compact tree (Moen) algorithm. This
* layout is suitable for graphs that have no cycles (trees). Vertices that are
* not connected to the tree will be ignored by this layout.
@davidjgraph
davidjgraph / flowchart.xml
Created January 27, 2014 21:05
mxgraph stencils for flowcharts
<shapes name="mxGraph.flowchart">
<shape name="Annotation 1" h="98" w="50" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0.5" y="0" perimeter="0" name="N"/>
<constraint x="0.5" y="1" perimeter="0" name="S"/>
<constraint x="0" y="0.5" perimeter="0" name="W"/>
<constraint x="1" y="0.5" perimeter="0" name="E"/>
<constraint x="0" y="0" perimeter="0" name="NW"/>
<constraint x="0" y="1" perimeter="0" name="SW"/>
<constraint x="1" y="0" perimeter="0" name="NE"/>
17-JAN-2014: 1.13.0.12
- Fixes mxUtils.getTextContent for Firefox, adds mxUtils.setTextContent [JavaScript]
- Improves edge crossing calculation performance in hierarchical layout [JavaScript]
- Corrects issue with the hierarchical layout where there are multiple parallel, bi-directional edges between two
vertices and the initial traversal from roots doesn't follow the direction the majority of edges travel in. [JavaScript]
08-JAN-2014: 1.13.0.11
- Fixes possible undefined function in mxUtils.clearSelection [JavaScript]