Skip to content

Instantly share code, notes, and snippets.

View simonsarris's full-sized avatar

Simon Sarris simonsarris

View GitHub Profile
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="go.js"></script>
<link href="goSamples.css" rel="stylesheet" type="text/css" /> <!-- you don't need to use this -->
<script src="goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
<script id="code">
function init() {
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="http://gojs.net/latest/release/go.js"></script>
<script id="code">
function init() {
if (window.goSamples) goSamples(); // init for these samples -- you don't need to call this
var $ = go.GraphObject.make; // for conciseness in defining templates
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="http://gojs.net/latest/release/go.js"></script>
<script id="code">
function init() {
if (window.goSamples) goSamples(); // init for these samples -- you don't need to call this
var $ = go.GraphObject.make; // for conciseness in defining templates
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="http://gojs.net/latest/release/go.js"></script>
<link href="goSamples.css" rel="stylesheet" type="text/css" /> <!-- you don't need to use this -->
<script src="goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
<script id="code">
function init() {
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="http://gojs.net/latest/release/go.js"></script>
<script id="code">
function init() {
var $ = go.GraphObject.make; // for conciseness in defining templates
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<script src="http://gojs.net/latest/release/go.js"></script>
<script id="code">
function init() {
var $ = go.GraphObject.make; // for conciseness in defining templates
<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<link href="goSamples.css" rel="stylesheet" type="text/css"/>
<script src="http://www.gojs.net/latest/release/go.js"></script>
<script id="code">
function init() {
var $ = go.GraphObject.make; // for conciseness in defining templates

A few more years of the same, though, and I got used to it: I would load entire libraries from country castles and city mansions, fine, rare, leather- and Morroco-bound books, load whole trains full, and as soon as a train had thirty cars, off it would go to Switzerland or Austria, one kilogram of rare books for the equivalent of one crown of convertible currency, and nobody blinked an eye, nobody shed a tear, not even I myself, no, all I did was stand there smiling as I watched the train hauling those priceless libraries off to Switzerland and Austria for one crown in convertible currency a kilo. By then I had mustered the strength to look upon misfortune with composure, to still my emotions, by then I had begun to understand the beauty of destruction and I loaded more and more freight cars, and more and more trains left the station heading west at one crown per kilogram, and as I stood there staring after the red lantern hanging from the last car, as I stood there leaning on a lamppost like Leonardo da Vinc

<!doctype html>
<html>
<head>
<title>Minimal GoJS Sample</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<link href="goSamples.css" rel="stylesheet" type="text/css"/>
<script src="http://www.gojs.net/latest/release/go.js"></script>
<script id="code">
window.DiagramManager;
@simonsarris
simonsarris / robots.html
Created April 2, 2014 19:02
Modified version of http://gojs.net/latest/extensions/robot.html (see "// !!!" comments)
<!doctype html>
<html>
<head>
<title>Simulating Input Events</title>
<!-- Copyright 1998-2014 by Northwoods Software Corporation. -->
<link href="goSamples.css" rel="stylesheet" type="text/css"/>
<script src="go.js"></script>
<script src="goSamples.js"></script>
<script src="Robot.js"></script>