This file contains hidden or 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 | |
| import datetime | |
| from collections import defaultdict | |
| import subprocess | |
| def main(): | |
| git_log = subprocess.check_output(['git', 'log', "--pretty=format:%an\t%ct"]).decode('utf-8') | |
| users = defaultdict(list) |
This file contains hidden or 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
| # Deployment with zero downtime | |
| # By default keeps 2 last deployments in KEEP_DEPLOYMENTS_DIR and current deployment | |
| # Project domain | |
| PROJECT_NAME=test.com | |
| # Project directory | |
| PROJECT_DIR=/home/forge/test.com | |
| # Deployments directory | |
| KEEP_DEPLOYMENTS_DIR=/home/forge/deploy |
This file contains hidden or 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
| import { Command, Mark, mergeAttributes } from '@tiptap/core' | |
| export interface SubscriptExtensionOptions { | |
| HTMLAttributes: Object, | |
| } | |
| declare module '@tiptap/core' { | |
| interface Commands { | |
| subscript: { | |
| setSubscript: () => Command, |
This file contains hidden or 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
| import { Extension } from '@tiptap/core' | |
| import { PluginKey, Plugin } from 'prosemirror-state'; | |
| function nodeEqualsType({ types, node }) { | |
| return (Array.isArray(types) && types.includes(node.type)) || node.type === types | |
| } | |
| /** | |
| * Extension based on: | |
| * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js |
This file contains hidden or 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
| // 2020, 2, 16 === march 16th, 2020 | |
| let startDate = new Date(2020, 2, 16); | |
| let nowDate = new Date(inputData.year, parseInt(inputData.month) - 1, inputData.day) | |
| let milisecondsPerDay = 24 * 60 * 60 * 1000; | |
| // Check if it's in a 14 days interval from now. | |
| if (Math.round((nowDate - startDate) / milisecondsPerDay) % 14 === 0) { | |
| return { "continue": true } | |
| } |