This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
//... | |
module: { | |
/* version 1 | |
* use loaders | |
*/ | |
loaders:[ | |
{ | |
test: /\.js[x]?$/, | |
exclude: /node_modules/, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ['env', 'react'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
寫下三到五個簡短列點,告訴我這篇文章在說什麼,請使用繁體中文,遇到專有名詞、人名請保持原狀。如果內容涵蓋過多,可以允許超過五個列點,但句子就需要更加簡潔。 | |
""" | |
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 }} |