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
const Roku = require('rokujs'); | |
const roku = new Roku('roku-address'); | |
Roku.discover(function (devices) { | |
console.log(devices); | |
/* example response | |
[ { server: 'Roku UPnP/1.0 MiniUPnPd/1.4', | |
address: '192.168.2.45', | |
location: 'http://192.168.2.45:8060/', |
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
Disp "V1: " | |
Input "X: ",A | |
Input "Y: ",B | |
Input "Z: ",C | |
Disp "V2: " | |
Input "X: ",D | |
Input "Y: ",E | |
Input "Z: ",F | |
Input "DOT (0) OR CROSS (1)? ",T |
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
--- | |
title: About Me | |
--- | |
<p> | |
Let me tell you about myself... | |
</p> |
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
0→T | |
(B-A)/N→D | |
Prompt A,B,N | |
Menu("Select Method:","Left Riemann",LR,"Right Riemann",RR,"Midpoint Riemann",MR) | |
Lbl LR | |
For(G,A,B-D,D | |
Y₁(G)+T→T |
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
<html> | |
<body> | |
<h1>{{title}}</h1> | |
{{{body}}} | |
</body> | |
</html> |
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
--- | |
title: Home | |
date: 20000909 | |
--- | |
<p>Hello!</p> |
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 canvas = document.getElementById("view"); // get the canvas context from our webpage | |
var context = canvas.getContext("2d"); // get the 2d context from our canvas. our canvas has several contexts, however we want to get the 2D context. | |
var x = 0; // x variable that is equal to 0 | |
var y = 0; // y variable that is equal to 0 | |
function drawRectangle(){ // function called drawRectangle that draws a rectangle for us | |
context.fillStyle = "black"; // set the context state to "black." Everything in canvas is drawn using this state. If you don't change it, then it will forever have these properties. | |
context.fillRect(x, y, 16, 16); // fill a rectangle with our x and y positions. | |
} |
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 canvas = document.getElementById("view"); | |
var context = canvas.getContext("2d"); | |
context.fillStyle = "black"; | |
context.fillRect(0, 0, 32, 32); |
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 canvas = document.getElementById("view"); | |
var context = canvas.getContext("2d"); |
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
/* Example A*/ | |
/* HTML */ | |
<canvas id='view' width=800 height=600></canvas> | |
/* JS */ | |
var canvas = document.getElementById('view').getContext('2d'); | |
/* Example B*/ |
NewerOlder