Skip to content

Instantly share code, notes, and snippets.

@jcollins-g
jcollins-g / index.html
Last active October 19, 2018 19:03 — forked from devoncarew/index.html
WebSocket test
<!-- Copyright 2015 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>A WebSocket test using echo.websocket.org</h2>
<br>
<p>Enter text to echo:</p>
@jcollins-g
jcollins-g / main.dart
Created October 19, 2018 17:51 — forked from devoncarew/main.dart
Fibonacci
// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
void main() {
var i = 20;
print('fibonacci($i) = ${fibonacci(i)}');
}
/// Computes the nth Fibonacci number.
@jcollins-g
jcollins-g / main.dart
Last active October 19, 2018 17:50 — forked from devoncarew/main.dart
helloworld
// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
void main() {
for (var i = 0; i < 4; i++) {
print('hello $i');
}
}
@jcollins-g
jcollins-g / index.html
Last active February 11, 2024 10:23 — forked from devoncarew/index.html
Sunflower
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Dr. Fibonacci's Sunflower Spectacular</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@jcollins-g
jcollins-g / .metadata.json
Last active May 31, 2018 18:32 — forked from devoncarew/.metadata.json
Spirodraw
{
"origin": "dartlab.org",
"url": "http://dartlab.org/#:gistId",
"history": []
}
@jcollins-g
jcollins-g / index.html
Last active May 31, 2018 18:20 — forked from devoncarew/index.html
Solar
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Solar System</h2>
<div id="container">
<canvas id="area" height="300px"></canvas>
</div>