Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
70e11b0
feat: add prettier
FireIsGood May 16, 2024
a3333f1
fix: delete unused scaffold files
FireIsGood May 16, 2024
bc3e778
fix: format trivial changes
FireIsGood May 16, 2024
ef82348
fix: format complex changes
FireIsGood May 16, 2024
8b522dc
chore: lint README
FireIsGood May 16, 2024
bf532d2
chore: lint CSS
FireIsGood May 16, 2024
9c0d043
chore: lint non-post pages
FireIsGood May 16, 2024
e80c168
fix: quickref format
FireIsGood May 16, 2024
b1edd42
fix: 1password format
FireIsGood May 16, 2024
3f8a0ad
fix: ai format
FireIsGood May 16, 2024
413891a
fix: alan-ai format
FireIsGood May 16, 2024
be7fee8
fix: aspect-ratio format
FireIsGood May 16, 2024
6507064
fix: awk format
FireIsGood May 16, 2024
0c8ef94
fix: bash format
FireIsGood May 16, 2024
119fad4
fix: c format
FireIsGood May 16, 2024
6a2944c
fix: chatgpt format
FireIsGood May 16, 2024
1f601a6
fix: cpp format
FireIsGood May 16, 2024
5b25000
fix: cron format
FireIsGood May 16, 2024
f0f2b6b
fix: cs format
FireIsGood May 16, 2024
7a69e64
fix: css3 format
FireIsGood May 16, 2024
8dd19e6
fix: curl format
FireIsGood May 16, 2024
486f4ae
fix: c minor formatting issues
FireIsGood May 16, 2024
6d4d14b
fix: django patch (needs work)
FireIsGood May 16, 2024
75a6574
fix: docker format
FireIsGood May 16, 2024
59b53bd
fix: ejs format
FireIsGood May 16, 2024
87c31c5
fix: c formatting and style fixes
FireIsGood May 16, 2024
248a443
fix: emacs format
FireIsGood May 16, 2024
2c44008
fix: marker-timeline style
FireIsGood May 16, 2024
15c2510
fix: emmet format
FireIsGood May 16, 2024
2e7a4c2
fix: emoji format
FireIsGood May 16, 2024
b866f8d
fix: es6 format
FireIsGood May 16, 2024
a42926c
fix: feedly format
FireIsGood May 16, 2024
a02928b
fix: github-cli format
FireIsGood May 16, 2024
c83099e
fix: go format
FireIsGood May 16, 2024
60c55c2
fix: homebrew format
FireIsGood May 16, 2024
9da9436
fix: hook format
FireIsGood May 16, 2024
2a7c857
fix: html format
FireIsGood May 16, 2024
ced0f36
fix: http-status-code-format
FireIsGood May 16, 2024
d527c60
fix: idea format
FireIsGood May 17, 2024
36c8863
fix: ini format
FireIsGood May 17, 2024
d1e93bc
fix: iso-639-1 format
FireIsGood May 17, 2024
b4e983a
fix: java format
FireIsGood May 17, 2024
06bfa7b
fix: javascript formatting
FireIsGood May 17, 2024
b6e1a81
fix: jquery formatting
FireIsGood May 17, 2024
ec1b2d9
fix: json formatting
FireIsGood May 17, 2024
bd7e74c
Merge branch 'main' into prettier
FireIsGood May 19, 2024
8ab067b
Merge branch 'main' into prettier
FireIsGood May 21, 2024
c57919c
fix: nim formatting
FireIsGood May 21, 2024
ff4d15b
fix: kanbanmail format
FireIsGood May 21, 2024
09c1f28
fix: kotlin format
FireIsGood May 21, 2024
7d426e2
fix: kotlin format
FireIsGood May 21, 2024
75eb0ec
fix: laravel format
FireIsGood May 21, 2024
fd39e9b
fix: latex format
FireIsGood May 21, 2024
6bd807f
fix: markdown format
FireIsGood May 21, 2024
365bae6
doc: add note about escaped code blocks
FireIsGood May 21, 2024
55c8418
Merge branch 'main' into prettier
FireIsGood May 22, 2024
2701879
doc: Change escape code table to use code
FireIsGood May 22, 2024
ade92e7
fix: matlab format
FireIsGood May 22, 2024
3afa993
fix: mime format
FireIsGood May 22, 2024
a1432fc
fix: mitmproxy format
FireIsGood May 22, 2024
8191a8d
fix: mongodb format
FireIsGood May 22, 2024
23efdc0
fix: mysql format
FireIsGood May 22, 2024
c811ae9
fix: obsidian format
FireIsGood May 22, 2024
4aaaf76
fix: postgres format
FireIsGood May 22, 2024
7809ccb
fix: react formatting
FireIsGood May 22, 2024
f76f290
fix: regex formatting
FireIsGood May 22, 2024
5f4f606
fix: resolutions format
FireIsGood May 22, 2024
741a8cf
fix: ruby formatting
FireIsGood May 22, 2024
2189dad
fix: rust formatting
FireIsGood May 22, 2024
2db2631
fix: sdkman formatting
FireIsGood May 22, 2024
3a2b37f
fix: sed format
FireIsGood May 22, 2024
33c4fe4
fix: sequel-pro formatting
FireIsGood May 22, 2024
9f8683a
fix: slack format
FireIsGood May 22, 2024
f7d93d7
fix: spotify format
FireIsGood May 22, 2024
47be263
fix: swift format
FireIsGood May 22, 2024
c4d4718
fix: taskset format
FireIsGood May 22, 2024
d3f3ca2
fix: terraform format
FireIsGood May 22, 2024
bb15101
fix: ticktick format
FireIsGood May 22, 2024
062412c
fix: vim format
FireIsGood May 22, 2024
3a08736
fix: vscode format
FireIsGood May 22, 2024
16519f3
fix: xpath format
FireIsGood May 22, 2024
4a8c84d
fix: yaml format
FireIsGood May 22, 2024
361736a
fix: trivial formatted posts
FireIsGood May 22, 2024
deb6992
fix: django format
FireIsGood May 22, 2024
9a5e11a
Merge branch 'main' into prettier
FireIsGood May 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://buymeacoffee.com/randy8080']
custom: ["https://buymeacoffee.com/randy8080"]
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/cheatsheet-request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
name: Cheatsheet request
about: For request cheatsheet and reference.
title: 'Cheatsheet request: '
title: "Cheatsheet request: "
labels: request
assignees: Fechin
---


2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"code_blocks": true,
"spaces_per_tab": 2
}
}
}
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Minimized files
**.min.css
fuse_*.js
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"proseWrap": "always",
"plugins": ["prettier-plugin-tailwindcss"]
}
391 changes: 250 additions & 141 deletions README.md

Large diffs are not rendered by default.

26 changes: 12 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

# Site
title: CheatSheets.zip
subtitle: 'Quick Reference Cheat Sheet'
description: 'Share quick reference and cheat sheet for developers'
subtitle: "Quick Reference Cheat Sheet"
description: "Share quick reference and cheat sheet for developers"
keywords: reference,cheatsheet,code table,snippets,linux
author: CheatSheets.zip
language: en
timezone: ''
timezone: ""

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
Expand Down Expand Up @@ -39,7 +39,7 @@ titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
exclude: ""
filename_case: 1
render_drafts: false
post_asset_folder: false
Expand All @@ -53,7 +53,7 @@ highlight:
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
path: ""
per_page: 0
order_by: -date

Expand All @@ -73,7 +73,7 @@ meta_generator: false
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## Use post's date for updated date unless set in front-matter
updated_option: 'date'
updated_option: "date"

# Pagination
## Set per_page to 0 to disable pagination
Expand All @@ -96,19 +96,18 @@ nofollow:
enable: true
field: site
exclude:
- 'exclude1.com'
- "exclude1.com"

excerpt:
depth: 2
excerpt_excludes: []
more_excludes: []
hideWholePostExcerpts: true


# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
# - type: cjh_google_url_submitter
# - type: cjh_google_url_submitter
- type: cjh_bing_url_submitter
- type: cjh_baidu_url_submitter

Expand All @@ -123,7 +122,6 @@ sitemap:
tags: false
categories: false


# Markdown-it configuration
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
Expand All @@ -133,12 +131,12 @@ markdown:
breaks: false
linkify: false
typographer: false
quotes: '“”‘’'
quotes: "“”‘’"
anchors:
level: 2
collisionSuffix: ''
collisionSuffix: ""
permalink: true
permalinkClass: h-anchor
permalinkSymbol: '#'
permalinkSymbol: "#"
case: 1
separator: '-'
separator: "-"
67 changes: 37 additions & 30 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const htmlclean = require('gulp-htmlclean');
const version = require('gulp-version-number');
const terser = require('gulp-terser');
const gulp = require("gulp");
const htmlmin = require("gulp-htmlmin");
const htmlclean = require("gulp-htmlclean");
const version = require("gulp-version-number");
const terser = require("gulp-terser");

// Compress js files
gulp.task('js', function () {
return gulp.src(['./public/js/main.js'])
.pipe(terser({
compress: true
}))
.pipe(gulp.dest('./public/js'));
gulp.task("js", function () {
return gulp
.src(["./public/js/main.js"])
.pipe(
terser({
compress: true,
}),
)
.pipe(gulp.dest("./public/js"));
});


// Build html files
gulp.task('html', function () {
return gulp.src('./public/**/*.html')
.pipe(htmlclean())
.pipe(htmlmin({
removeComments: true,
minifyJS: true,
minifyCSS: true,
minifyURLs: true,
}))
.pipe(version({
'append': {
'key': '_v',
'cover': 1,
'to': ['css', 'js', 'png', 'jpg', 'woff2']
}
}))
.pipe(gulp.dest('./public'));
gulp.task("html", function () {
return gulp
.src("./public/**/*.html")
.pipe(htmlclean())
.pipe(
htmlmin({
removeComments: true,
minifyJS: true,
minifyCSS: true,
minifyURLs: true,
}),
)
.pipe(
version({
append: {
key: "_v",
cover: 1,
to: ["css", "js", "png", "jpg", "woff2"],
},
}),
)
.pipe(gulp.dest("./public"));
});

gulp.task('default', gulp.parallel('js', 'html'));
gulp.task("default", gulp.parallel("js", "html"));
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build:rm-db.json": "rm db.json || exit 0",
"build:css": "npx postcss themes/coo/source/css/style.tailwindcss -o themes/coo/source/css/style.css",
"build:generate": "npx hexo generate",
"build:gulp": "npx gulp --max-old-space-size=4096"
"build:gulp": "npx gulp --max-old-space-size=4096",
"format": "prettier --write"
},
"hexo": {
"version": "5.4.2"
Expand Down Expand Up @@ -69,6 +70,8 @@
"postcss-cli": "^9.1.0",
"postcss-import": "^14.0.2",
"postcss-minify": "^1.1.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"sync-request": "^6.1.0",
"tailwindcss": "^3.0.1",
"tailwindcss-animate": "^1.0.5",
Expand Down
14 changes: 7 additions & 7 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
plugins: {
'postcss-import': {path: 'themes/coo/source/css'},
'tailwindcss': {config: './tailwind.config.js'},
'autoprefixer': {},
'postcss-minify':{},
}
};
plugins: {
"postcss-import": { path: "themes/coo/source/css" },
tailwindcss: { config: "./tailwind.config.js" },
autoprefixer: {},
"postcss-minify": {},
},
};
6 changes: 0 additions & 6 deletions scaffolds/draft.md

This file was deleted.

4 changes: 0 additions & 4 deletions scaffolds/page.md

This file was deleted.

16 changes: 0 additions & 16 deletions scaffolds/post.md

This file was deleted.

6 changes: 0 additions & 6 deletions scaffolds/table.md

This file was deleted.

Loading