This file contains hidden or 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 quickconnect = require('rtc-quickconnect'); | |
var createDataStream = require('rtc-dcstream'); | |
var dnode = require('dnode'); | |
quickconnect('https://switchboard.rtc.io/', { room: 'dnode-test' }) | |
.createDataChannel('primary') | |
.on('channel:opened:primary', function(id, dc) { | |
var stream = createDataStream(dc) | |
connectionReady(stream) | |
}) |
This file contains hidden or 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 quickconnect = require('rtc-quickconnect'); | |
var createDataStream = require('rtc-dcstream'); | |
quickconnect('http://rtc.io/switchboard', { room: 'dnode-test' }) | |
.createDataChannel('primary') | |
.on('channel:opened:primary', function(id, dc) { | |
var stream = createDataStream(dc) | |
connectionReady(stream) | |
}) |
This file contains hidden or 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 esprima = require('esprima') | |
var escodegen = require('escodegen') | |
var treeify = require('treeify').asTree | |
var match = require('pattern-match') | |
var isArray = require('is-array') | |
// setup registry | |
var registry = {} |
This file contains hidden or 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
Rx = require('rx-dom') | |
main() | |
// Search Wikipedia for a given term | |
function searchWikipedia(term) { | |
var cleanTerm = window.encodeURIComponent(term) | |
var url = 'http://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=' + cleanTerm + '&callback=JSONPCallback' | |
return Rx.DOM.jsonpRequest(url) |
This file contains hidden or 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
(function () { | |
function c() { | |
var e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", f); | |
e.setAttribute("class", l); | |
document.body.appendChild(e) | |
} | |
function h() { |
This file contains hidden or 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 rtcDataStream = require('rtc-data-stream') | |
var quickconnect = require('rtc-quickconnect') | |
var generateName = require('sillyname'); | |
// setup DOM | |
var output = document.createElement('textarea') | |
output.style.width = "100%" | |
output.style.height = "80%" | |
output.style.resize = "none" | |
document.body.appendChild(output) |
This file contains hidden or 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
// Utility - changes the parent but preserves global position + rotation | |
function orientUnderParent( target, parent ) { | |
// calculate new pos | |
var newPos = new THREE.Vector3() | |
newPos.setFromMatrixPosition( target.matrixWorld ) | |
parent.worldToLocal( newPos ) | |
target.position = newPos | |
// calculate new rot |
This file contains hidden or 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
Connected play | |
Whyville | |
Breeding dragons | |
Habbohotel | |
Kidsdiy .com | |
Cheating! Cheating is thinking about learning and challenges. | |
Design the challenge such that cheating is learning. | |
Teachable moment and cheat able moment | |
Looking for cheating in user data | |
Mischievous learner |
This file contains hidden or 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
/* Sachie Holtz CA110 pl5.cpp | |
programming Lab 5: Palindrome Program | |
To examine a user-entered string to determine if it's a palindrome. | |
*/ | |
#include <iostream> | |
#include <cstring> | |
using namespace std; |
This file contains hidden or 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
(function (){/* | |
hey look at me | |
im a block string | |
a single string | |
across many lines | |
neat, huh? | |
*/}).toString().slice(15,-4) |