This file contains 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
var doc, env, report, schema; | |
schema = { | |
"paneSchema": { | |
"type": "object", | |
"properties": { | |
"height": { | |
"type": "number" | |
} | |
} |
This file contains 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
schema = { | |
"properties": { | |
"topPane": { | |
"$ref": "paneSchema" // referring directly by a new id, not #/paneSchema | |
}, | |
"bottomPane": { | |
"$ref": "paneSchema" | |
} | |
}, | |
"paneSchema": { |
This file contains 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
/* | |
Fade | |
This example shows how to fade an LED on pin 9 | |
using the analogWrite() function. | |
This example code is in the public domain. | |
*/ | |
int brightness = 0; // how bright the LED is |
This file contains 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
/* | |
AnalogReadSerial | |
Reads an analog input on pin A0, prints the result to the serial monitor | |
This example code is in the public domain. | |
*/ | |
int pin = A0; | |
void setup() { |
This file contains 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
/* | |
sfentress: Set up: a piezoelectric or other speaker with one lead on ground and the other on pin D8 | |
*/ | |
/* | |
Melody | |
Plays a melody | |
circuit: |
This file contains 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
// Sweep | |
// by BARRAGAN <http://barraganstudio.com> | |
// This example code is in the public domain. | |
#include <Servo.h> | |
Servo myservo; // create servo object to control a servo | |
// a maximum of eight servo objects can be created | |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<java version="1.6.0_29" class="java.beans.XMLDecoder"> | |
<object id="Element0" class="org.concord.mw2d.models.Element"> | |
<void property="mass"> | |
<double>0.16666666666666666</double> | |
</void> | |
<void property="sigma"> | |
<double>7.0</double> | |
</void> | |
</object> |
This file contains 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
$ ./script/gh-pages.sh | |
remote: Counting objects: 303, done. | |
remote: Compressing objects: 100% (172/172), done. | |
remote: Total 248 (delta 182), reused 134 (delta 68) | |
Receiving objects: 100% (248/248), 41.88 KiB, done. | |
Resolving deltas: 100% (182/182), completed with 45 local objects. | |
From github.com:concord-consortium/lab | |
4b6c277..01d3c22 gh-pages -> origin/gh-pages | |
b4b018a..10f47ea master -> origin/master |
This file contains 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
// [KCPT] | |
// The dgApi object contains everything needed to communicate back to the DG application. | |
dgApi = {}; | |
// For now we go through 'DG.currGameController.doCommand'. | |
// Very shortly a development branch will be merged to the trunk | |
// which simplifies that to 'DG.doCommand'. | |
dgApi.gameController = window.parent.DG.currGameController; | |
dgApi.doCommand = dgApi.gameController && dgApi.gameController.doCommand; |
This file contains 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
// [KCPT] | |
// The dgApi object contains everything needed to communicate back to the DG application. | |
dgApi = {}; | |
// For now we go through 'DG.currGameController.doCommand'. | |
// Very shortly a development branch will be merged to the trunk | |
// which simplifies that to 'DG.doCommand'. | |
dgApi.gameController = window.parent.DG.currGameController; | |
dgApi.doCommand = dgApi.gameController && dgApi.gameController.doCommand; |