Code Monkey home page Code Monkey logo

hust-courses-to-ics's Introduction

Hi there 👋

  • 🌱 I’m currently learning idk)

MMMartt's GitHub stats

hust-courses-to-ics's People

Contributors

dependabot[bot] avatar kyle-ye avatar maniaciachao avatar milkybird98 avatar mmmartt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hust-courses-to-ics's Issues

Error opening data file ./eng.traineddata

Error opening data file ./eng.traineddata

npm start运行后会报错,并会产生一个eng.traineddata文件

➜  hust-courses-to-ics git:(master) ✗ npm start

> [email protected] start /Users/kyle/Developer/hust-courses-to-ics
> babel-node src/index.js

==== node-hustpass ====
 logging in...
==== node-hustpass ====
Error opening data file ./eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
AdaptedTemplates != nullptr:Error:Assert failed:in file /workspace/tesseract/src/classify/adaptmatch.cpp, line 196
undefined
undefined
/Users/kyle/Developer/hust-courses-to-ics/node_modules/tesseract.js/src/createWorker.js:173
        throw Error(data);
        ^

Error: RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
    at ChildProcess.<anonymous> (/Users/kyle/Developer/hust-courses-to-ics/node_modules/tesseract.js/src/createWorker.js:173:15)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:485:12)
    at emit (internal/child_process.js:906:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `babel-node src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kyle/.npm/_logs/2020-09-05T03_12_19_550Z-debug.log

eng.traineddata文件内容

<?xml version='1.0' encoding='utf-8' ?>
<Error>
	<Code>UnavailableForLegalReasons</Code>
	<Message>The appid is unavailable for legal reasons.</Message>
	<Resource>file-1252889006.cos.ap-guangzhou.myqcloud.com/tesseract/eng.traineddata.gz</Resource>
	<RequestId>NWY1MmQwYTRfNzQyZDdhNjRfYWU3N18xNDI0NGQ=</RequestId>
	<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTdjMDczODYwZjM5YTU3ZmZmOWI5MmY4NjkxY2I3MGNiMTZmYzA2N2QxZWU5MzkxNGQxNGZkZGE2OTAyOWUxMDA=</TraceId>
</Error>

Other info

OS: macOS 11 beta6
[email protected]
node v14.4.0

Useless dependencies.

Barrett.js, BigInt.js, and RSA.js are no longer needed. Just remove them.
Too lazy to make a PR.

Login failed due to captcha

From April 30, 2020, HUSTPass requires users to input captcha when authenticating.
I've made a PR (ignore CI failures).

timezone is not set correctly

Time of ics exported is not correct in some devices.
I think this should be something wrong with timezone setting, and I tried to fix it by this, but don't seem to work.
I will try to figure it out when I get some spare time(several weeks later).

ps: if someone knows how to do with this, please let me know!

Duration and Repeat Question

It seems the current project didn't need duration and repeat.( I changed the duration and repeat, but nothing changes, at least in my iOS and Mac devices)

I alse looked it up at https://icalendar.org/iCalendar-RFC-5545/3-3-6-duration.html, it says

Negative durations are typically used to schedule an alarm to trigger before an associated time (see Section 3.8.6.3).

But we already have trigger time to indicate it, so what's the duration and repeat mean and for?

“deduplicate” is not working properly

非常抱歉打扰了,但这里这个deduplicate的实现貌似对于同时同地同名课程的多个老师生成多个课程
截屏2020-02-1710 36 33
如图,对于这里的马原课程ics则会生成两个,对于开启了提醒的话会提醒两次,有时间的话可以合并一下吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.