Skip to content

Instantly share code, notes, and snippets.

View hesyifei's full-sized avatar
😸
Hello world!

He Yifei 何一非 hesyifei

😸
Hello world!
View GitHub Profile
var glob = require("glob");
const ts = require("typescript");
const { readFileSync, readdirSync, statSync } = require("fs");
const { join } = require("path");
const dirs = p =>
readdirSync(p).filter(f => statSync(join(p, f)).isDirectory());
var results = new Set();
const alldirs = dirs("[FOLDER PATH HERE]/expo/packages/");
@hesyifei
hesyifei / deletepersondata.py
Last active May 20, 2018 04:32
Pywikibot Script: Remove deprecated {{Persondata}} templates for Chinese Wikipedia
#!/usr/bin/python
# -*- coding: utf-8 -*-
# https://zh.wikipedia.org/wiki/User:Eflybot/task/1
from __future__ import absolute_import, unicode_literals
import pywikibot
from pywikibot.tools.formatter import color_format