Code Monkey home page Code Monkey logo

moyu's Introduction

摸鱼小助手

一款贴心的命令行工具,在残酷的职场里,时刻提醒你不要忘记摸鱼。

以下是详细文档,建议上班时间阅读

主要功能

运行程序时,提醒你该摸鱼啦!

运行效果如下图所示:

demo

日历

输出当前日期,阴历 / 阳历 同时输出,让你不会错过每个 传统 / 现代 假期。

摸鱼提醒

工作太忙,忘了摸鱼?摸鱼小助手贴心提醒,不要忘了去 茶水间/厕所/走廊 走一走!

假期提醒

日历不会看,怕错过假期?别担心! 自动提醒 周末 / 法定假日 距离天数。打工人,不要忘了放假!

项目依赖

  • Python 3

安装教程

建议在上班时间安装。

下载 / clone 本项目到任意目录,然后运行以下命令即可。

  • Windows:
pip install 项目目录
moyu.exe
  • Linux / Mac (未测试)
pip install 项目目录
moyu

建议用法

建议在上班时间配置。

让摸鱼小助手在每次打开命令行时出现,需要做以下操作。

  • Windows

C:\Users\你的用户名\Documents\WindowsPowerShell\profile.ps1 文件中最后一行加入一行:

moyu.exe
  • Linux / Mac

~/.zsrhc~/.bashrc 文件中最后一行加入一行:

moyu

打工人,工作再累,不要忘记摸鱼哦!

moyu's People

Contributors

qianmingxue-msft avatar sleepybag avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

kifgep

moyu's Issues

Lack of data for 2023

Dear Developer,

The application met error due to lack of holiday data for 2023, please help or suggest!

可能是个小bug?

2024年6月21号, 周五的时候, 想摸鱼了, 打开一看, 为啥显示今天是周末😂

	# 0 -- 周一
	# 1 -- 周二
	# 2 -- 周三
	# 3 -- 周四
	# 4 -- 周五
	# 5 -- 周六
	# 6 -- 周日
	weekend_gap = max(4 - weekday, 0)
	print(GAP_NAMES[weekend_gap] + "周末")

周五的时候, weekday 应该是4, 计算得来weekend_gap就等于0了, GAP_NAMES[0]就输出 "今天周末"

image

或许应该4换成5?

weekend_gap = max(5 - weekday, 0)

我瞎改的, 不晓得对不对哈😂

image

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.