Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-the-hito authored Dec 19, 2022
1 parent f27fd08 commit 526e4eb
Show file tree
Hide file tree
Showing 14 changed files with 10,196 additions and 0 deletions.
112 changes: 112 additions & 0 deletions .store/part1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -*- encoding:UTF-8 -*-
# coding=utf-8
# coding:utf-8

import codecs
from PyQt6.QtWidgets import (QWidget, QPushButton, QApplication,
QLabel, QHBoxLayout, QVBoxLayout, QLineEdit,
QSystemTrayIcon, QMenu, QComboBox, QDialog,
QDialogButtonBox, QMenuBar, QFrame, QFileDialog,
QPlainTextEdit, QTabWidget, QTextEdit, QScrollBar, QGraphicsOpacityEffect)
from PyQt6.QtCore import Qt, QRect, QPoint, QPropertyAnimation, QObjectCleanupHandler
from PyQt6.QtGui import QAction, QIcon, QPixmap, QTextCursor, QColor, QPalette, QPainter
import PyQt6.QtGui
import sys
import webbrowser
import os
from pathlib import Path
import re
import jieba
from pypinyin import lazy_pinyin
import markdown2
import plistlib
import fire
import datetime

app = QApplication(sys.argv)
app.setQuitOnLastWindowClosed(False)

# Create the icon
icon = QIcon("strmenu.icns")

# Create the tray
tray = QSystemTrayIcon()
tray.setIcon(icon)
tray.setVisible(True)

# Create the menu
menu = QMenu()

action3 = QAction("📔 Let's collect!")
menu.addAction(action3)

action4 = QAction("⚙️ Settings")
menu.addAction(action4)

menu.addSeparator()

action5 = QAction("🔕 Focus mode!")
menu.addAction(action5)
action5.setCheckable(True)

action6 = QAction("🔏 Editor mode!")
menu.addAction(action6)
action6.setCheckable(True)

action7 = QAction("📺 RealTime mode!")
menu.addAction(action7)
action7.setCheckable(True)

action10 = QAction("📚 Compact mode!")
menu.addAction(action10)
action10.setCheckable(True)

action8 = QAction("📐 Restore size!")
menu.addAction(action8)

action9 = QAction("☁️ Hide dock!(reboot)")
menu.addAction(action9)
action9.setCheckable(True)
dock_st = codecs.open('dock_state.txt', 'r', encoding='utf-8').read()
if dock_st == '1':
action9.setChecked(True)
if dock_st == '0':
action9.setChecked(False)

menu.addSeparator()

action2 = QAction("🆕 Check for Updates")
menu.addAction(action2)

action1 = QAction("ℹ️ About")
menu.addAction(action1)

menu.addSeparator()

# Add a Quit option to the menu.
quit = QAction("Quit")
quit.triggered.connect(app.quit)
menu.addAction(quit)

# Add the menu to the tray
tray.setContextMenu(menu)

# create a system menu
button_action = QAction("&Let's collect!")
btna2 = QAction("&Focus mode!")
btna2.setCheckable(True)
btna3 = QAction("&Editor mode!")
btna3.setCheckable(True)
btna4 = QAction("&Pin!")
btna4.setCheckable(True)
btna5 = QAction("&RealTime mode!")
btna5.setCheckable(True)
sysmenu = QMenuBar()
file_menu = sysmenu.addMenu("&Actions")
file_menu.addAction(button_action)
file_menu.addAction(btna2)
file_menu.addAction(btna3)
file_menu.addAction(btna5)
file_menu.addAction(btna4)
20 changes: 20 additions & 0 deletions .store/part10.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
% cmd for this doc
\\usepackage{array}
\\newcommand{\\ccr}[1]{\\makecell{{\\color{#1}\\rule{1cm}{1cm}}}}

\\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\\maketitle

\\begin{abstract}
Words.
\\keywords{Keywords}
\\end{abstract}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'''
if self.widgettem.currentIndex() == 2:
part_c = '\n' + '''\\author{人名}
\\institute{单位}
\\date{\\zhtoday}
96 changes: 96 additions & 0 deletions .store/part11.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
\\usepackage{array}

\\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\\maketitle
\\newpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'''
if self.widgettem.currentIndex() == 3:
part_c = '\n' + '''\\author{Name}
\\institute{Institute}
\\date{\\today}

\\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\\maketitle
\\newpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'''
if self.widgettem.currentIndex() == 4:
part_c = '\n' + '''\\author{\\IEEEauthorblockN{1\\textsuperscript{st} Given Name Surname}
\\IEEEauthorblockA{\\textit{dept. name of organization (of Aff.)} \\\\
\\textit{name of organization (of Aff.)}\\\\
City, Country \\\\
email address or ORCID}
\\and
\\IEEEauthorblockN{2\\textsuperscript{nd} Given Name Surname}
\\IEEEauthorblockA{\\textit{dept. name of organization (of Aff.)} \\\\
\\textit{name of organization (of Aff.)}\\\\
City, Country \\\\
email address or ORCID}
\\and
\\IEEEauthorblockN{3\\textsuperscript{rd} Given Name Surname}
\\IEEEauthorblockA{\\textit{dept. name of organization (of Aff.)} \\\\
\\textit{name of organization (of Aff.)}\\\\
City, Country \\\\
email address or ORCID}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\\maketitle

\\begin{abstract}
Words.
\\end{abstract}

\\begin{IEEEkeywords}
Keywords.
\\end{IEEEkeywords}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'''
if self.widgettem.currentIndex() == 5:
part_c = '\n' + '''{\\songti 作者}
{(~机构~)}

\\begin{minipage}[b]{0.9\\linewidth}
\\narrower\\zihao{5}\\noindent {\\songti \\textbf{}\\quad\\textbf{}}\\ \\
文字
\\end{minipage}

\\normalsize \\normalsize \\abovedisplayskip=2.0pt plus 2.0pt minus
2.0pt \\belowdisplayskip=2.0pt plus 2.0pt minus 2.0pt \\baselineskip
16pt

\\begin{multicols}{2}\\songti \\zihao{5}%宋体字

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'''
if self.widgettem.currentIndex() == 6:
part_c = '\n' + '''\\subtitle{副标题}
\\author{人名}
\\institute{学校机构}
\\date{\\zhtoday}
\\usepackage{BeamerCN}

% defs
\\def\\cmd#1{\\texttt{\\color{red}\\footnotesize $\\backslash$#1}}
\\def\\env#1{\\texttt{\\color{blue}\\footnotesize #1}}
\\definecolor{deepblue}{rgb}{0,0,0.5}
\\definecolor{deepred}{rgb}{0.5,0,0}
\\definecolor{deepgreen}{rgb}{0,0.5,0}
\\definecolor{halfgray}{gray}{0.45}

\\lstset{
basicstyle=\\ttfamily\\small,
keywordstyle=\\bfseries\\color{deepblue},
emphstyle=\\ttfamily\\color{deepred}, % Custom highlighting style
stringstyle=\\color{deepgreen},
numbers=left,
numberstyle=\\small\\color{halfgray},
rulesepcolor=\\color{red!20!green!20!blue!20},
frame=shadowbox,
}
Loading

0 comments on commit 526e4eb

Please sign in to comment.