This file contains 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
(async () => { | |
// The CORS Proxy use to fetch Notion API | |
// Ref. https://github.com/Rob--W/cors-anywhere#server | |
const CORS_PROXY = await getEnv("CORS_PROXY"); | |
// Your Notion Internal Integration Token | |
// Ref. https://www.notion.so/my-integrations | |
const NOTION_TOKEN = await getEnv("NOTION_TOKEN"); | |
const NOTION_API = CORS_PROXY + "https://api.notion.com/v1/pages/"; |
This file contains 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
// ---------------------------------------------------------------------------------- | |
// CONFIGURATION SETTINGS | |
// ---------------------------------------------------------------------------------- | |
// The CORS Proxy | |
const CORS_PROXY = ""; | |
// Your Notion Internal Integration Token | |
// Ref. https://www.notion.so/my-integrations | |
const NOTION_TOKEN = ""; |
This file contains 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 python3 | |
# -*- coding: utf-8 -* | |
# 屈臣氏 - 造美值中心 | |
import os, re, sys | |
import json | |
import time | |
try: | |
import requests |
This file contains 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 python3 | |
# -*- coding: utf-8 -* | |
# 奥乐齐每日签到 | |
import os, re, sys | |
import json | |
try: | |
import requests | |
except Exception as e: | |
print(e, "\n缺少requests 模块,请执行命令安装:python3 -m pip install requests") |
This file contains 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
// ==UserScript== | |
// @name Notion Fixed TOC | |
// @name:zh-CN Notion 浮动 TOC | |
// @namespace https://notion.cx/ | |
// @version 0.2.0 | |
// @description Make Notion TOC Fixed. | |
// @description:zh-cn 让 Notion 的 TOC 浮动显示。 | |
// @author Ruter Lü | |
// @match https://www.notion.so/* | |
// @grant none |
This file contains 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
// ==UserScript== | |
// @name Notion Page Words Counter | |
// @name:zh-CN Notion 页面字数统计 | |
// @namespace https://notion.cx/ | |
// @version 0.1.0 | |
// @description Count current page words. | |
// @description:zh-cn 统计当前页面的字数。 | |
// @author Ruter Lü | |
// @match https://www.notion.so/* | |
// @grant none |
This file contains 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 pattern = /[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff\u0400-\u04ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g; | |
function wordCount(str) { | |
var m = str.match(pattern); | |
var count = 0; | |
if (!m) { | |
return 0; | |
} | |
for (var i = 0; i < m.length; i++) { | |
if (m[i].charCodeAt(0) >= 0x4e00) { |
This file contains 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
[options] | |
# | |
# WARNING: | |
# If you use the Odoo Database utility to change the master password be aware | |
# that the formatting of this file WILL be LOST! A copy of this file named | |
# /etc/odoo/openerp-server.conf.template has been made in case this happens | |
# Note that the copy does not have any first boot changes | |
#----------------------------------------------------------------------------- | |
# Odoo Server Config File - TurnKey Linux |
This file contains 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
/*自定义样式,实时生效*/ | |
/*初始化格式*/ | |
#nice { | |
line-height: 1.6; | |
letter-spacing: .034em; | |
color: rgb(63, 63, 63); | |
font-size: 16px; | |
word-break:all; |
This file contains 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
class Event { | |
on (event, fn, ctx) { | |
if (typeof fn != "function") { | |
console.error('fn must be a function') | |
return | |
} | |
this._stores = this._stores || {} | |
;(this._stores[event] = this._stores[event] || []).push({cb: fn, ctx: ctx}) |
NewerOlder