repo_id
stringlengths
6
101
size
int64
367
5.14M
file_path
stringlengths
1
269
content
stringlengths
367
5.14M
007gzs/meeting
1,831
server/apps/meetings/serializer.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from rest_framework import serializers from apps.wechat.models import User from apps.wechat.serializer import UserSerializer from core import utils from . import models class RoomSerializer(utils.BaseSerializer): class Meta: mod...
007gzs/meeting
17,211
server/apps/meetings/views.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import datetime import json from cool.views import ViewSite, CoolAPIException, ErrorCode, mixins from cool.views.fields import SplitCharField from rest_framework import fields from constance import config from django.db import transaction from...
007gzs/meeting
1,361
miniprogram/components/time_table.wxml
<!--components/time_table.wxml--> <view class='time_table'> <view class="table"> <view class='thead'> <view class="tr"> <view class="th label" bindtap='title_label_click'> {{title_label}} </view> <view class="th" wx:for="{{titles}}" wx:key="id" id="{{item.id}}" bindtap='title...
007gzs/meeting
1,441
miniprogram/components/time_table.wxss
/* components/time_table.wxss */ .time_table{ height: 100%; } .table { position: relative; overflow: hidden; width: 100%; height: 100%; font-size: 32rpx; line-height: 32rpx; border-right: 1rpx solid #ddd; border-bottom: 1rpx solid #ddd; } .table .thead{ height: 48rpx; } .table .tbody{ position: ab...
007gzs/meeting
1,240
miniprogram/components/time_table.js
// components/time_table.js Component({ /** * 组件的属性列表 */ properties: { no_title_desc: String, title_label: String }, /** * 组件的初始数据 */ data: { titles: [], labels: [], td_data: {}, }, /** * 组件的方法列表 */ methods: { set_data: function({titles, labels, td_data} = {}){...
007gzs/meeting
2,491
miniprogram/components/date_select.js
// components/date_select.js const weekStr = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] const app = getApp() Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { start_date: '', end_date: '', select_date: '', date_range: [] }, lifetimes: { // 生命周期函数,可以为函数...
007gzs/meeting
19,071
miniprogram/weui/weui.wxss
/*! * WeUI v1.1.1 (https://github.com/weui/weui-wxss) * Copyright 2017 Tencent, Inc. * Licensed under the MIT license */ page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle}.weui-cells{position:relative;margin-top:1.17647059em;background-color:#fff;line-height:1....
007gzs/meeting
8,012
miniprogram/utils/api.js
"use strict"; const request = require('./request'); const server = 'http://127.0.0.1:8000'; const ERROR_CODE = { SUCCESS: 0, // 返回成功 ERROR_UNKNOWN: -1, // 未知错误 ERROR_SYSTEM: -2, // 系统错误 ERROR_BAD_PARAMETER: -11, // 参数错误 ERROR_BAD_FORMAT: -12, // 格式错误 ERROR_PERMISSION: -13, // 权限错误 ERR_WECHAT_LOGIN: 10001...
007idc/GoEdgeKeyGen
1,230
main.go
package main import ( "GoEdgeKeyGen/third/encode" "encoding/base64" "encoding/json" "fmt" ) const ( id = "nameless" dayFrom = "1949-10-01" dayTo = "2077-06-04" requestCode = "" company = "GoEdge | 分遗产群出品" nodes = 0 updatedAt = 1700000000 edition = "ultra" email = "" ) func main() { fmt.Println("GoEdge L...
007gzs/meeting
4,208
miniprogram/utils/meetings.js
"use strict"; const check_status = (start_time, end_time, now_time) => { /** * 0: 不在范围内 * 0x1: 第一 * 0x2: 最后 * 0x4: 中间 */ let ret = 0 if (start_time > now_time || now_time > end_time) { return ret } ret |= 0x4 if (start_time == now_time) { ret |= 0x1 } if (end_time == now_time) { ...
007gzs/meeting
4,551
miniprogram/utils/set-cookie.js
"use strict"; var defaultParseOptions = { decodeValues: true }; function extend(target, source) { return Object.keys(source).reduce(function (target, key) { target[key] = source[key]; return target; }, target); } function isNonEmptyString(str) { return typeof str === "string" && !!str.trim(); } func...
007gzs/meeting
2,268
miniprogram/utils/http-cookie.js
"use strict"; const setCookieTool = require('./set-cookie.js'); /** * 设置cookie 参数为字符串, * 例如cookieA=a; expires=Tue, 14-Aug-2018 10:00:45 GMT; path=/; HttpOnly,cookieB=b; expires=Wed, 15-Aug-2018 08:00:45 GMT; path=/ */ const setCookie = (str) => { // 处理参数 var splitCookieHeaders = setCookieTool.splitCookiesStrin...
007revad/ContainerManager_for_all_armv8
9,099
my-other-scripts.md
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
007revad/ContainerManager_for_all_armv8
15,615
install_container_manager.sh
#!/usr/bin/env bash # shellcheck disable=SC2076 #--------------------------------------------------------------------------------------- # Install Container Manager on RS819, DS119j, DS418, DS418j, DS218, DS218play and DS118 # # Github: https://github.com/007revad/ContainerManager_for_all_armv8 # Script verified at htt...
007gzs/meeting
4,493
miniprogram/utils/apiviewws.js
"use strict"; const httpCookie = require('./http-cookie.js') let app = getApp() const TASK_STATUS = { INIT: -1, // 初始化 ERROR: -2, // 连接错误 CLOSE: -3, // 连接关闭 CLOSEING: -4, // 请求连接关闭中 OK: 0, // 连接成功 CONNECTING: 1, // 连接中 RECONNECTING: 3, // 请求重连中 } const ApiViewWS = function (ws_path, common_listener) { ...
007gzs/meeting
3,921
miniprogram/utils/request.js
"use strict"; const USE_WEBSOCKET = true const httpCookie = require('./http-cookie.js') const ApiViewWS = require('./apiviewws.js') let app = getApp() let apiViewWSs = {} const reconnectApiViews = (check_time) => { if(!USE_WEBSOCKET){ return } for(let i in apiViewWSs){ apiViewWSs[i].check_and_reconnect(c...
007gzs/meeting
1,094
miniprogram/utils/time.js
"use strict"; const formatNumber = n => { n = n.toString() return n[1] ? n : '0' + n } const Time = function (hour = 0, minute = 0, second = 0) { this.hour = hour this.minute = minute this.second = second this.string = function (num = 2) { let ret = [] if (num > 0) { ret.push(this.hour) } ...
007revad/ContainerManager_for_all_armv8
6,117
README.md
# Container Manager for all armv8 <a href="https://github.com/007revad/ContainerManager_for_all_armv8/releases"><img src="https://img.shields.io/github/release/007revad/ContainerManager_for_all_armv8.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2FContainerManager_for_all_a...
007/hashcash-js
3,700
hashcash.js
// hash function abstraction: // always call hc_HashFunc, and the behind-the-scenes // hash function used can be changed easily // currently crc32 for speed/convenience, // needs to be defined in its native script // include the hash script before this one // make sure your hash function returns a hex string // case d...
007/hashcash-js
6,935
README.md
# Hashcash for PHP/JavaScript forms Hashcash works by requiring the client to perform a complex calculation before the server will accept its input. Although the calculation may take the client several seconds to process, the server can check the results almost instantly. The process is easiest to explain using squar...
007gzs/meeting
6,619
miniprogram/pages/meeting/reserve.js
"use strict"; // pages/meeting/reserve.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { room_ids: "", loading: true, select:{ selected: false, click: false, start: "", end: "", room: {} } }, date_select_change: function (e) { this.setData({ ...
007idc/GoEdgeKeyGen
1,156
third/encode/test.go
package encode import ( "fmt" "log" ) func Decode(data []byte) []byte { method, err := NewMethodInstance("aes-256-cfb", "41100c93a65cfb71d5b0672c0d60d7ec", "70ba69d67bf7e61e17ac565c6093a325") if err != nil { fmt.Println("[MagicKeyEncode]" + err.Error()) return data } src, err := method.Decrypt(data) if er...
007idc/GoEdgeKeyGen
1,208
third/encode/aes-256.go
package encode import ( "bytes" "crypto/aes" "crypto/cipher" ) type AES256CFBMethod struct { block cipher.Block iv []byte } func (a *AES256CFBMethod) Init(key, iv []byte) error { // 判断key是否为32长度 l := len(key) if l > 32 { key = key[:32] } else if l < 32 { key = append(key, bytes.Repeat([]byte{' '}, 32...
007/hashcash-js
5,161
hashcash.php
<?php include "hc_config.php"; ////////////////////// // helper functions // ////////////////////// function DEBUG_OUT($x) { echo "<pre>$x</pre>\n"; } // define generic hash function (currently md5) function hc_HashFunc($x) { return sprintf("%08x", crc32($x)); } // convert hex numbers to decimal function hc_HexI...
007/hashcash-js
3,525
crc32.js
var Crc32Tab = new Array( /* CRC polynomial 0xEDB88320 */ 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3, 0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D38...
007gzs/meeting
2,857
miniprogram/pages/meeting/detail.wxml
<wxs module="timeUtils" src="../../utils/timeUtils.wxs"></wxs> <!--pages/meeting/detail.wxml--> <view class="page"> <view class="page__hd"> <view class='weui-cell'> <view class='weui-cell__bd'> <view class="page__title">{{info.name}}</view> <view class="page__desc">{{info.description}}</view...
007gzs/meeting
1,654
miniprogram/pages/meeting/edit.wxml
<wxs module="timeUtils" src="../../utils/timeUtils.wxs"></wxs> <!--pages/meeting/edit.wxml--> <view class="page"> <view class="page_bd page__bd_spacing weui-cells weui-cells_after-title"> <view class="weui-cell weui-cell_input"> <view class="weui-cell__hd"> <view class="weui-label">名称</view> ...
007gzs/meeting
2,895
miniprogram/pages/meeting/detail.js
"use strict"; // pages/meeting/detail.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { meeting_id: 0, owner: false, joined: false, attendees_show: false, no_icon_attendee_num: 0, info: {} }, refresh: function () { if (this.data.meeting_id <= 0) { return } ...
007gzs/meeting
2,097
miniprogram/pages/meeting/my.js
// pages/meeting/my.js "use strict"; const app = getApp() Page({ /** * 页面的初始数据 */ data: { loading: true }, check_td_data: function () { this.data.td_data = app.meetings.getTdData( this.data.rooms, this.data.meetings, this.data.time_range, { selected: false }, this.s...
007gzs/meeting
3,207
miniprogram/pages/meeting/edit.js
"use strict"; // pages/meeting/edit.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { user_info: {}, meeting_id: 0, room_id: 0, date: "", start_time: "", end_time: "", room: {}, name: "", description: "" }, bindKeyInput(e) { this.data[e.currentTarget.dataset....
007gzs/meeting
1,702
miniprogram/pages/room/history.wxml
<wxs module="timeUtils" src="../../utils/timeUtils.wxs"></wxs> <view class="page history"> <view class="page__hd"> <view class='weui-cell'> <view class='weui-cell__bd'> <view class="page__title">{{info.name}}</view> <view class="page__desc">{{info.description}}</view> </view> </vie...
007gzs/meeting
2,456
miniprogram/pages/room/history.js
"use strict"; // pages/room/history.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { room_id: 0, info: {}, meetings: [], history_start: '', history_end: '', history_limit_start: '', history_limit_end: '', }, refresh: function () { app.api.api_meeting_room_info({ ro...
007gzs/meeting
2,901
miniprogram/pages/room/list.wxml
<!--pages/room/list.wxml--> <view class="page"> <view class="head"> <block wx:for="{{tabs}}" wx:key="*this"> <view id="{{index}}" class="weui-navbar__item {{activeIndex == index ? 'weui-bar__item_on' : ''}}" bindtap="tabClick"> <view class="weui-navbar__title">{{item}}</view> </view> </blo...
007gzs/meeting
2,983
miniprogram/pages/room/detail.wxml
<wxs module="timeUtils" src="../../utils/timeUtils.wxs"></wxs> <!--pages/room/detail.wxml--> <view class="page"> <view class="page__hd"> <view class='weui-cell'> <view class='weui-cell__bd'> <view class="page__title">{{info.name}}</view> <view class="page__desc">{{info.description}}</view> ...
007gzs/meeting
1,586
miniprogram/pages/room/edit.wxml
<!--pages/room/edit.wxml--> <view class="page"> <view class="page_bd page__bd_spacing weui-cells weui-cells_after-title"> <view class="weui-cell weui-cell_input"> <view class="weui-cell__hd"> <view class="weui-label">名称</view> </view> <view class="weui-cell__bd"> <i...
007gzs/meeting
4,337
miniprogram/pages/room/detail.js
"use strict"; // pages/room/detail.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { room_id: 0, show_home: false, owner: false, info: {}, meetings: [], }, refresh: function () { app.api.api_meeting_room_info({ room_id: this.data.room_id }).then(res => { this.setData(...
007gzs/meeting
2,524
miniprogram/pages/room/edit.js
"use strict"; // pages/room/edit.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { user_info: {}, room_id: 0, name: "", description: "", create_user_manager: false }, refreshInfo: function() { if (this.data.room_id > 0){ app.api.api_meeting_room_info({ room_id: this.da...
007gzs/meeting
3,645
miniprogram/pages/room/list.js
"use strict"; // pages/room/list.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { tags: ["关注", "创建", ""], tabs: ["我关注的", "我创建的"], activeIndex: 0, rooms: [null, null, null], shareSelect: [] }, refreshShareRooms: function () { app.api.api_meeting_create_rooms().then(res => { ...
007revad/Plex_Server_Sync
1,910
plex_server_sync.config
#------------------------------------------------------------------------- # User settings config file for Plex_Server_Sync.sh # # https://github.com/007revad/Plex_Server_Sync #------------------------------------------------------------------------- # Local machine's IP or hostname and OS # OS can be ADM, DSM6, DSM7 ...
007revad/Plex_Server_Sync
9,099
my-other-scripts.md
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
007revad/Plex_Server_Sync
16,437
plex_server_sync.sh
#!/usr/bin/env bash #----------------------------------------------------------------------------- # Script to sync Plex server database & metadata to backup Plex server. # # It also syncs your settings, though you can disable this by adding the # following to the included plex_rsync_exclude.txt # Preferences.xml # # R...
007revad/Plex_Server_Sync
6,016
README.md
# Plex Server Sync Sync main Plex server database &amp; metadata to a backup Plex server <a href="https://github.com/007revad/Plex_Server_Sync/releases"><img src="https://img.shields.io/github/release/007revad/Plex_Server_Sync.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2...
007revad/Plex_Server_Sync
3,869
edit_preferences.sh
#!/usr/bin/env bash #------------------------------------------------------------------------- # Companion script to Plex_Server_Sync.sh # # https://github.com/007revad/Plex_Server_Sync # Script verified at https://www.shellcheck.net/ #-------------------------------------------------------------------------- cd "$(di...
007gzs/dingtalk-sdk
1,112
README.rst
####################### DingTalk Sdk for Python ####################### .. image:: https://travis-ci.org/007gzs/dingtalk-sdk.svg?branch=master :target: https://travis-ci.org/007gzs/dingtalk-sdk .. image:: https://img.shields.io/pypi/v/dingtalk-sdk.svg :target: https://pypi.org/project/dingtalk-sdk 钉钉开放平台...
007gzs/dingtalk-sdk
2,742
setup.py
#! /usr/bin/env python # encoding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup from setuptools.command.test import test as TestCommand # To use...
007gzs/dingtalk-sdk
1,777
docs/index.rst
.. dingtalk-sdk documentation master file, created by sphinx-quickstart on Fri May 4 11:18:22 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. dingtalk-sdk 使用文档 ======================================== dingtalk-sdk 是一个钉钉开放平台的第三方 Python SDK...
007gzs/dingtalk-sdk
1,316
docs/changelog.rst
Changelog ================ Version 1.3.3 ------------------ + fix 创建审批bug Version 1.3.2 ------------------ + 增加审批待办接口 Version 1.3.1 ------------------ + 增加DING日程相关接口 + 增加钉钉运动相关接口 + 增加公告相关接口 + 增加待办事项相关接口 + 增加撤回工作通知消息接口 + fix 发送工作通知参数错误 Version 1.3.0 ------------------ + 增加企业外部联系人相关接口 + 增加日志相关接口 + 更新淘宝接口 Version 1...
007gzs/dingtalk-sdk
5,606
docs/conf.py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config import sphinx_rtd_theme # -- Path setup -----------------------------------...
007gzs/dingtalk-sdk
6,204
tests/test_crypto.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import unittest import json from dingtalk import crypto as _crypto from dingtalk.crypto import DingTalkCrypto class PrpCryptoMock(_crypto.PrpCrypto): def get_random_string(self): return '1234567890123456' class CryptoTes...
007gzs/dingtalk-sdk
2,583
tests/test_storage.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import unittest class WeChatSessionTestCase(unittest.TestCase): def test_dingtalk_cache(self, storage=None): from dingtalk.storage.cache import DingTalkCache if storage is None: return cache = Din...
007gzs/dingtalk-sdk
5,638
tests/test_message.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import unittest class MessagesTestCase(unittest.TestCase): def test_text_message(self): from dingtalk.model.message import TextBody msgbody = TextBody('test') msg = msgbody.get_dict() self.assertEqu...
007gzs/dingtalk-sdk
5,079
dingtalk/client/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging import time from dingtalk.client import api from dingtalk.client.api.taobao import TaobaoMixin from dingtalk.client.base import BaseClient from dingtalk.core.utils import DingTalkSigner, random_string from dingtalk.crypto...
007gzs/dingtalk-sdk
8,659
dingtalk/client/isv.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from dingtalk.core.utils import to_text, json_loads from dingtalk.client import DingTalkClient from dingtalk.client.base import BaseClient from dingtalk.client.channel import ChannelClient from dingtalk.core.constants impo...
007gzs/dingtalk-sdk
4,311
dingtalk/client/channel.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging import time from dingtalk.client.base import BaseClient from dingtalk.core.utils import random_string, DingTalkSigner from dingtalk.storage.cache import ChannelCache logger = logging.getLogger(__name__) class ChannelCl...
007gzs/dingtalk-sdk
9,327
dingtalk/client/base.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import inspect import json import logging import requests import six from six.moves.urllib.parse import urljoin from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.core.exceptions import DingTalkClientException from dingta...
007revad/Seagate_lowCurrentSpinup
9,099
my-other-scripts.md
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
007revad/Seagate_lowCurrentSpinup
6,956
seagate_lowcurrentspinup.sh
#!/usr/bin/env bash #------------------------------------------------------------------------------ # Some Synology NAS and Expansion Units do not have enough power to spin-up # multiple Seagate's 20TB and larger drives during boot-up. # # This script uses Seagate's openSeaChest to set your 20TB and larger # Seagate H...
007gzs/dingtalk-sdk
3,522
dingtalk/crypto/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import time import base64 import json from dingtalk.core.exceptions import InvalidSignatureException, InvalidCorpIdOrSuiteKeyException from dingtalk.core.utils import to_text, to_binary, DingTalkSigner, random_string from dingtalk.crypto...
007gzs/dingtalk-sdk
1,707
dingtalk/crypto/base.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import struct import socket import base64 from dingtalk.core.utils import to_text, to_binary, random_string, byte2int from dingtalk.crypto.pkcs7 import PKCS7Encoder try: from dingtalk.crypto.cryptography import DingTalkCipher except I...
007revad/Seagate_lowCurrentSpinup
3,201
README.md
# Seagate Low Current Spinup <a href="https://github.com/007revad/Seagate_lowCurrentSpinup/releases"><img src="https://img.shields.io/github/release/007revad/Seagate_lowCurrentSpinup.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2FSeagate_lowCurrentSpinup&label=Visitors&ico...
007revad/Seagate_lowCurrentSpinup
1,389
how_to_run_from_scheduler.md
# How to run a script in Synology Task Scheduler To run a script from Task Scheduler follow these steps: **Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button. 1. Go to **Control Panel** > **Task Scheduler** > click *...
007gzs/dingtalk-sdk
1,788
dingtalk/core/exceptions.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import six from dingtalk.core.utils import to_binary, to_text class DingTalkException(Exception): def __init__(self, errcode, errmsg): """ :param errcode: Error code :param errmsg: Error message """...
007gzs/dingtalk-sdk
2,105
dingtalk/core/utils.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import hashlib import json import random import string import six class ObjectDict(dict): """Makes a dictionary behave like an object, with attribute-style access. """ def __getattr__(self, key): if key in self: ...
007gzs/dingtalk-sdk
6,776
dingtalk/model/message.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.core.utils import to_text class BodyBase(object): _msgtype = None def __init__(self, **kwargs): for k, v in kwargs.items(): if callable(v): v = v() setattr(self, k,...
007gzs/dingtalk-sdk
3,578
dingtalk/model/field.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import random import string class FieldBase(object): component_name = None def __init__(self, **kwargs): for k, v in kwargs.items(): if callable(v): v = v() setattr(self, k, v) ...
007gzs/dingtalk-sdk
1,855
dingtalk/storage/cache.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import inspect from dingtalk.storage import BaseStorage def _is_cache_item(obj): return isinstance(obj, DingTalkCacheItem) class DingTalkCacheItem(object): def __init__(self, cache=None, name=None): self.cache = cach...
007revad/Synology_CPU_temperature
9,099
my-other-scripts.md
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
0015/Grid_Board
102,472
sdkconfig.thatproject
# # Automatically generated file. DO NOT EDIT. # Espressif IoT Development Framework (ESP-IDF) 5.4.2 Project Configuration # CONFIG_SOC_ADC_SUPPORTED=y CONFIG_SOC_ANA_CMPR_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC...
007gzs/dingtalk-sdk
3,278,113
dingtalk/client/api/taobao.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI class TbDingDing(DingTalkBaseAPI): """ 钉钉API """ def dingtalk_corp_message_corpconversation_sendmock( self, microapp_agent_id, to_...
007revad/Synology_Clear_Drive_Error
9,099
my-other-scripts.md
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
007revad/Synology_CPU_temperature
3,975
README.md
# Synology CPU temperature <a href="https://github.com/007revad/Synology_CPU_temperature/releases"><img src="https://img.shields.io/github/release/007revad/Synology_CPU_temperature.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2FSynology_CPU_temperature&label=Visitors&icon=...
0015/Grid_Board
102,472
sdkconfig
# # Automatically generated file. DO NOT EDIT. # Espressif IoT Development Framework (ESP-IDF) 5.4.2 Project Configuration # CONFIG_SOC_ADC_SUPPORTED=y CONFIG_SOC_ANA_CMPR_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC...
007revad/Synology_CPU_temperature
14,153
syno_cpu_temp.sh
#!/usr/bin/env bash #---------------------------------------------------------- # Display CPU temperature and each core's temperature # # Github: https://github.com/007revad/Synology_CPU_temp # Script verified at https://www.shellcheck.net/ #---------------------------------------------------------- scriptver="v2.3.9"...
007revad/Synology_CPU_temperature
1,162
how_to_schedule.md
# How to schedule a script in Synology Task Scheduler To schedule a script to run on your Synology at boot-up or shutdown follow these steps: **Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button. 1. Go to **Control P...
007revad/Synology_Clear_Drive_Error
5,420
syno_clear_drive_error.sh
#!/usr/bin/env bash #------------------------------------------------------------------------------ # Clear drive critical errors so DSM will let you use the drive # # GitHub: https://github.com/007revad/Synology_clear_drive_error # Script verified at https://www.shellcheck.net/ # # To run in a shell (replace /volume1/...
007revad/Synology_Clear_Drive_Error
2,914
README.md
# Synology Clear Drive Error <a href="https://github.com/007revad/Synology_Clear_Drive_Error/releases"><img src="https://img.shields.io/github/release/007revad/Synology_Clear_Drive_Error.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2FSynology_clear_drive_error&label=Visito...
0015/Grid_Board
6,371
README.md
# Grid Board Project Grid Board is an advanced, large-screen animated character display system based on the **ESP32-P4** platform. This project leverages the **DSI interface** of ESP32-P4 to drive a 10.1" LCD panel at high speed, allowing smooth, visually impressive character animations—including emoji—across a 12×5 g...
007gzs/dingtalk-sdk
4,237
dingtalk/client/api/chat.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.model.message import BodyBase class Chat(DingTalkBaseAPI): def create(self, name, owner, useridlist, show_history_type=False, searchable=0, validatio...
007gzs/dingtalk-sdk
1,150
dingtalk/client/api/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.attendance import Attendance # NOQA from dingtalk.client.api.blackboard import BlackBoard # NOQA from dingtalk.client.api.bpms import Bpms # NOQA from dingtalk.client.api.calendar import Calendar # NOQA from d...
007gzs/dingtalk-sdk
7,738
dingtalk/client/api/message.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import json from optionaldict import optionaldict from dingtalk.core.utils import to_text from six.moves.urllib.parse import urlencode from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.model.message import BodyBase c...
007gzs/dingtalk-sdk
3,725
dingtalk/client/api/microapp.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI class MicroApp(DingTalkBaseAPI): def create(self, app_icon, app_name, app_desc, homepage_url, pc_homepage_url=None, omp_link=None): """ 创建微应用 :param app_...
007gzs/dingtalk-sdk
2,905
dingtalk/client/api/department.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI class Department(DingTalkBaseAPI): def list_ids(self, _id=1): """ 获取子部门ID列表 :param _id: 父部门id(如果不传,默认部门为根部门,根部门ID为1) :return: 子部门ID列表数据 "...
007gzs/dingtalk-sdk
2,536
dingtalk/client/api/checkin.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import time import datetime import six from dingtalk.core.utils import to_text from dingtalk.client.api.base import DingTalkBaseAPI class Checkin(DingTalkBaseAPI): def record(self, department_id, start_time, end_time, offset=0, s...
007gzs/dingtalk-sdk
5,144
dingtalk/client/api/cspace.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import six from dingtalk.core.utils import to_text, json_loads from dingtalk.client.api.base import DingTalkBaseAPI class Cspace(DingTalkBaseAPI): def add_to_single_chat(self, agent_id, userid, media_id, file_name): """ ...
007gzs/dingtalk-sdk
3,771
dingtalk/client/api/report.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import datetime import time from dingtalk.client.api.base import DingTalkBaseAPI class Report(DingTalkBaseAPI): def list(self, start_time, end_time, cursor=0, size=20, template_name='', userid=''): """ 查询企业员工发出的日志列表 ...
0015/Grid_Board
1,420
grid_board_app/analysis_options.yaml
# This file configures the analyzer, which statically analyzes Dart code to # check for errors, warnings, and lints. # # The issues identified by the analyzer are surfaced in the UI of Dart-enabled # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be # invoked from the command line by running `flu...
007gzs/dingtalk-sdk
8,451
dingtalk/client/api/bpms.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import datetime import time import six from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.core.utils import to_text from optionaldict import optionaldict class Bpms(DingTalkBaseAPI): def process_copy(self, agent_id...
007gzs/dingtalk-sdk
5,160
dingtalk/client/api/attendance.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import time import datetime from dingtalk.client.api.base import DingTalkBaseAPI class Attendance(DingTalkBaseAPI): DATE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S' def list_record(self, user_ids, check_date_from, check_date_to): ...
0015/Grid_Board
1,114
grid_board_app/.metadata
# This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # # This file should be version controlled and should not be manually edited. version: revision: "d7b523b356d15fb81e7d340bbe52b47f93937323" channel: "stable" project_type: app # Tracks m...
0015/Grid_Board
2,598
grid_board_app/README.md
# GRID BOARD APP A Flutter app for sending customizable text and emoji grids via BLE (Bluetooth Low Energy) to ESP32-P4 Device. Create, save, and reload messages in a 12×5 grid—perfect for smart displays and IoT dashboards. --- ## Features - 12×5 customizable grid (text and emoji supported) - Fast BLE connection ...
007gzs/dingtalk-sdk
7,646
dingtalk/client/api/workrecord.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import datetime import time from optionaldict import optionaldict from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.model.field import FieldBase class WorkRecord(DingTalkBaseAPI): def add(self, userid, create_time, tit...
007gzs/dingtalk-sdk
2,292
dingtalk/client/api/ext.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import six from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.core.utils import json_loads class Ext(DingTalkBaseAPI): def listlabelgroups(self, offset=0, size=100): """ 标签列表 :param offset:...
007gzs/dingtalk-sdk
2,855
dingtalk/client/api/callback.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI class Callback(DingTalkBaseAPI): ALL_CALL_BACK_TAGS = ( 'user_add_org', 'user_modify_org', 'user_leave_org', 'user_active_org', 'org_admin_add', 'org_admin_remove'...
0015/Grid_Board
16,714
main/grid_board.cpp
#include "grid_board.hpp" #include "esp_log.h" #include "esp_random.h" #include <algorithm> #include <random> #include <cstring> static const char *TAG = "LVGL"; // Static character sets const char *GridBoard::card_chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.,:;!?@#$%&*()-+=/\\\"'<>[]{}|_^~ °±•…×÷−≠≤≥€£¥™®©"; const...
0015/Grid_Board
2,806
main/ble_server.c
#include "ble_server.h" #include "esp_log.h" #include "nvs_flash.h" #include "host/util/util.h" #include "nimble/nimble_port.h" #include "nimble/nimble_port_freertos.h" #include "host/ble_hs.h" #include "services/gap/ble_svc_gap.h" #include "services/gatt/ble_svc_gatt.h" #include "bleprph.h" static void (*conn_cb)(boo...
007gzs/dingtalk-sdk
4,510
dingtalk/client/api/extcontact.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.client.api.base import DingTalkBaseAPI class ExtContact(DingTalkBaseAPI): def listlabelgroups(self, offset=0, size=100): """ 获取外部联系人标签列表 :param size: 分页大小,最大100 :param offset: 偏移位置 ...
007gzs/dingtalk-sdk
3,746
dingtalk/client/api/role.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from dingtalk.core.utils import to_text from dingtalk.client.api.base import DingTalkBaseAPI class Role(DingTalkBaseAPI): def simplelist(self, role_id, offset=0, size=20): """ 获取角色的员工列表 :param role_id: 角色I...
0015/Grid_Board
3,948
main/gatt_svr.c
#include <assert.h> #include <stdio.h> #include <string.h> #include "host/ble_hs.h" #include "host/ble_uuid.h" #include "services/gap/ble_svc_gap.h" #include "services/gatt/ble_svc_gatt.h" #include "bleprph.h" #define MAX_GATT_VAL_SIZE 128 static uint8_t gatt_svr_chr_val[MAX_GATT_VAL_SIZE]; static uint16_t gatt_svr_c...
007gzs/dingtalk-sdk
1,792
dingtalk/client/api/health.py
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import datetime from dingtalk.client.api.base import DingTalkBaseAPI from dingtalk.core.utils import to_text class Health(DingTalkBaseAPI): def stepinfo_getuserstatus(self, userid): """ 查询用户是否开启了钉钉运动 :param user...
007gzs/dingtalk-sdk
7,387
dingtalk/client/api/employeerm.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import datetime import json from optionaldict import optionaldict from dingtalk.core.utils import to_text from dingtalk.client.api.base import DingTalkBaseAPI class Employeerm(DingTalkBaseAPI): DATE_TIME_FORMAT = '%Y-%m-%d %H:%M:...