Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
packages=("backslash@0.2.1" "chalk-template@1.1.1" "supports-hyperlinks@4.1.1" "has-ansi@6.0.1" "simple-swizzle@0.2.3" "color-string@2.1.1" "error-ex@1.3.3" "color-name@2.0.1" "is-arrayish@0.3.3" "slice-ansi@7.1.1" "color-convert@3.1.1" "wrap-ansi@9.0.1" "ansi-regex@6.2.1" "supports-color@10.2.1" "strip-ansi@7.1.1" "chalk@5.6.1" "debug@4.4.2" "ansi-styles@6.2.2")
for pkg in "${packages[@]}"; do
if npm why "$pkg" >/dev/null 2>&1; then
echo "$pkg"
fi
done
@lisez
lisez / shoppee_2021_v1.py
Last active March 10, 2021 01:37
Shopee 2021 #1
import json
import pandas as pd
import numpy as np
filepath = "/content/contacts.json"
with open(filepath, "r") as raw:
df = pd.DataFrame(json.load(raw)).set_index("Id")
fields = ["Email", "Phone", "OrderId"]
@lisez
lisez / colab_display_cht_on_plots.ipynb
Created November 2, 2020 10:39
colab_display_cht_on_plots.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lisez
lisez / hugo-auto-deoply.yml
Last active November 10, 2025 05:18
如何使用 Github Actions 自動部署 Hugo
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/
# author: lisez <mm4324@gmail.com>
name: Auto publish to public site
# 只有推送到 master 才自動化
on:
push:
branches:
- master