Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Sarris simonsarris

View GitHub Profile
View gist:9318374

"If you want to build a ship, don't drum up people to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea."

  • Antoine de Saint Exupéry
View robots.html
<!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>
View linktest.html
<!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;
View gist:11014861

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

View nodeKeyPropertyandmakeUniqueKeyFunction.html
<!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
View arbitrarydata.html
<!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
View arbitrarydata.html
<!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
View bindingtest.html
<!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() {
View dividedRoundedRect.html
<!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
View roundedRectWithLine.html
<!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