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 ocrText = ""; | |
| var answer = 0; | |
| var questionCount = 0; // 添加题目计数器 | |
| const TOTAL_QUESTIONS = 99999999; // 设置总题数 | |
| var lastOcrText = ""; // 添加变量记录上一次的OCR文本 | |
| // 主函数 | |
| function main() { | |
| while (questionCount < TOTAL_QUESTIONS) { |
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
| # main.py -- put your code here! | |
| import pyb | |
| # a scheduler class, to schedule and run events after a delay | |
| class Scheduler: | |
| def __init__(self): | |
| # begin with no events | |
| self.events = [] | |
| # after the delay, run the function |
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
| #!/usr/bin/env python | |
| #coding=utf-8 | |
| import serial | |
| import time | |
| class BLEPrinter(object): | |
| SERIALPORT = '/dev/tty.usbserial-AM021OAT' | |
| BAUDRATE = 9600 |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include "hiredis.h" | |
| int main(void) | |
| { | |
| unsigned int i,j=0;char **str1; | |
| redisContext *c; char *t; | |
| redisReply *reply, *rep; |
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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: redis-server | |
| # Required-Start: $syslog | |
| # Required-Stop: $syslog | |
| # Should-Start: $local_fs | |
| # Should-Stop: $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: redis-server - Persistent key-value db |
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
| {} |
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
| {sys, [ | |
| {lib_dirs, ["../apps","../deps"]}, | |
| {erts, [{mod_cond, derived}, {app_file, strip}]}, | |
| {app_file, strip}, | |
| {rel, "baiduhi", "1", | |
| [ | |
| baiduhi, | |
| kernel, | |
| stdlib, | |
| sasl, |