Skip to content

Instantly share code, notes, and snippets.

View IrenaYuan's full-sized avatar

Irena IrenaYuan

View GitHub Profile
@IrenaYuan
IrenaYuan / prompts_v1.0
Last active July 16, 2024 01:57
Readwise reader - Ghostreader prompts 給繁體中文使用者簡單使用的 prompt
寫下三到五個簡短列點,告訴我這篇文章在說什麼,請使用繁體中文,遇到專有名詞、人名請保持原狀。如果內容涵蓋過多,可以允許超過五個列點,但句子就需要更加簡潔。
"""
Title: {{ document.title }}
Author: {{ document.author }}
Domain: {{ document.domain}}
{% if (document.content | count_tokens) > 2000 %}
{{ document.content | central_sentences | join('\n\n') }}
{% else %}
{{ document.content }}
@IrenaYuan
IrenaYuan / find-unused-sass-variables.sh
Last active September 7, 2017 06:08 — forked from badsyntax/find-unused-sass-variables.sh
Find unused SCSS variables. Usage: `./find-unused-sass-variables.sh sassDir/`
#!/usr/bin/env bash
#
# Approach:
# 1. Find variable declaration in the form of "$my-var: anyvalue"
# 2. Loop through found variables and find occurrences of each variable in all sass files
# 3. Filter out vars that occurred only once
if [ -z "$1" ]; then
echo "Please specify a directory as the first argument."
exit 1