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
(function() { | |
// detect `nw` object of NW13 | |
if (!(self.nw && self.nw.require)) return; | |
var realrequire = nw.require; | |
self.require = function() { | |
if (arguments[0] === 'nw.gui') { | |
return nw; | |
} else { |
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
exports.log = function(msg) { | |
console.log(msg); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>form post</title> | |
</head> | |
<body> | |
<form method="POST" action="http://localhost:9999/post.html"> | |
<input type="text" name="myfield" value="myvalue"> |
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
console.log('bar'); |
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 int ledPin = 13; | |
void setup() { | |
pinMode(ledPin, OUTPUT); // 设置13端口为输出 | |
} | |
void loop() { | |
digitalWrite(ledPin, HIGH); // 设13端口为高位,让灯亮起来 | |
delay(1000); // 等待1s | |
digitalWrite(ledPin, LOW); // 设为低位,让灯熄灭 |
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 int redPin = 13; | |
const int yellowPin = 12; | |
const int bluePin = 11; | |
void setup() { | |
pinMode(redPin, OUTPUT); // 设置3个LED的端口为输出 | |
pinMode(yellowPin, OUTPUT); | |
pinMode(bluePin, OUTPUT); | |
} |
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
// 如果是共阳的LED,取消下一行的注释 | |
// #define COMMON_ANODE | |
const int redPin = A0; // 红色引脚 | |
const int greenPin = A1; // 绿色引脚 | |
const int bluePin = A2; // 蓝色引脚 | |
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
#include <FastLED.h> | |
// 7个LED灯,如果你的数量不一样改成自己的LED灯数量 | |
#define NUM_LEDS 7 | |
// led控制端口 | |
const int ledPin = 3; | |
CRGB rainbow[NUM_LEDS] = { CRGB::Red, CRGB::Orange, CRGB::Yellow, CRGB::Green, CRGB::Blue, {0, 0x7f, 0xff}, CRGB::Purple }; | |
CRGB leds[NUM_LEDS]; |
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
名称 | MathJax | KaTex | |
---|---|---|---|
网址 | https://www.mathjax.org/ | https://katex.org/ | |
协议 | Apache 2.0 | MIT | |
Latex | 是 | 是 | |
MathML | 是 | ? | |
化学公式 | 是 | 是 |
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
名称 | MathQuill | MathLive | WIRIS MathType | |
---|---|---|---|---|
网址 | http://mathquill.com/ | https://mathlive.io/ | http://wiris.com/mathtype | |
协议 | MPL 2.0 | MIT | 商业 | |
Latex | 是 | 是 | ? | |
虚拟键盘 | 无 | 有 | 有(工具栏) | |
快捷键 | 无 | 有 | ? | |
iOS | 支持 | 支持(不显示光标) | ? | |
化学公式 | 无(PR) | 无 | 有 | |
手写识别 | 无 | 无 | 有 | |
语音朗读 | 无 | 有 | 无 |
OlderNewer