Skip to content

Instantly share code, notes, and snippets.

View tlylt's full-sized avatar

Liu Yongliang tlylt

View GitHub Profile
@tlylt
tlylt / add-all-contributors.py
Created January 10, 2022 15:57
Automatically add all existing GitHub repo contributors with all-contributors-cli
import subprocess
import shlex
import sys
def init():
print("Initialize all-contributors")
subprocess.run(shlex.split("npx all-contributors-cli init"), shell=True)
@tlylt
tlylt / site.json.test.js
Created March 1, 2022 06:08
e2e test case for MarkBind
const fs = require('fs');
const _ = {};
_.cloneDeep = require('lodash/cloneDeep');
describe('Live Preview reload triggered by changes to site.json', () => {
const SITE_JSON_PATH = 'test/e2e/test_site/site.json';
const originalJson = JSON.parse(fs.readFileSync(SITE_JSON_PATH, 'utf8'));
beforeAll(async () => {
await page.goto('http://localhost:8888/');