Skip to content

Instantly share code, notes, and snippets.

View IrenaYuan's full-sized avatar

Irena IrenaYuan

  • Taipei, Taiwan
View GitHub Profile
@IrenaYuan
IrenaYuan / prompts_v1.0
Created April 11, 2024 04:38
Readwise reader - Ghostreader prompts
寫下三到五個簡短列點,告訴我這篇文章在說什麼,請使用繁體中文,遇到專有名詞、人名請保持原狀。如果內容涵蓋過多,可以允許超過五個列點,但句子就需要更加簡潔。
"""
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 }}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/* stylelint-disable at-rule-no-unknown */
@font-face {
font-family: 'Chinese Quote';
src: local('PingFang SC'), local('SimSun');
unicode-range: U+2018, U+2019, U+201c, U+201d;
}
@IrenaYuan
IrenaYuan / .babelrc
Last active March 15, 2018 08:06
webpack3 with React
{
"presets": ['env', 'react']
}
@IrenaYuan
IrenaYuan / webpack.config.js
Created March 15, 2018 07:24
Note for webpack3 with babel, react...setting
module.exports = {
//...
module: {
/* version 1
* use loaders
*/
loaders:[
{
test: /\.js[x]?$/,
exclude: /node_modules/,
@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