Skip to content

Instantly share code, notes, and snippets.

View ghostoy's full-sized avatar

Cong Liu ghostoy

  • Dolearning.net
  • Shanghai, China
View GitHub Profile
名称 math.js
网址 https://mathjs.org/
协议 Apache 2.0
大数 支持
分数 支持
特殊无理数 π e
运算 +-*/乘方开方……
Latex 支持(转成Latex)
解析和构造 支持
@ghostoy
ghostoy / math-drawing.csv
Created December 22, 2019 05:04
公式绘图
名称 Geogebra Desmos JSXGraph
网址 https://geogebra.org/ https://www.desmos.com/ https://jsxgraph.uni-bayreuth.de/wp/index.html
协议 商业 商业 MIT & LGPL
公式绘图 支持 支持 支持
变量 支持 支持 编程支持
固定点 支持 支持 编程支持
几何绘图 支持 支持 编程支持
@ghostoy
ghostoy / math-input.csv
Created December 22, 2019 05:00
数学输入库
名称 MathQuill MathLive WIRIS MathType
网址 http://mathquill.com/ https://mathlive.io/ http://wiris.com/mathtype
协议 MPL 2.0 MIT 商业
Latex
虚拟键盘 有(工具栏)
快捷键
iOS 支持 支持(不显示光标)
化学公式 无(PR)
手写识别
语音朗读
名称 MathJax KaTex
网址 https://www.mathjax.org/ https://katex.org/
协议 Apache 2.0 MIT
Latex
MathML
化学公式
#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];
@ghostoy
ghostoy / full-rgb.c
Last active May 28, 2019 01:10
Arduino控制全彩LED
// 如果是共阳的LED,取消下一行的注释
// #define COMMON_ANODE
const int redPin = A0; // 红色引脚
const int greenPin = A1; // 绿色引脚
const int bluePin = A2; // 蓝色引脚
void setup() {
}
@ghostoy
ghostoy / led-loop.c
Last active May 21, 2019 09:54
Arduino控制3个LED循环亮灭
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);
}
@ghostoy
ghostoy / led.c
Created May 21, 2019 09:31
Arduino点亮LED灯
const int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT); // 设置13端口为输出
}
void loop() {
digitalWrite(ledPin, HIGH); // 设13端口为高位,让灯亮起来
delay(1000); // 等待1s
digitalWrite(ledPin, LOW); // 设为低位,让灯熄灭
@ghostoy
ghostoy / bar.js
Last active December 27, 2021 23:51
test nwjc
console.log('bar');