This commit is contained in:
Fechin committed 2023-06-15 10:37:46 +08:00
1 parent 44cb045a37
commit 19a9e9c0c6
17 files changed
+40 -57

No files matched your search

+3 -3
View File
@@ -204,7 +204,7 @@ This reference was made for Emacs 27.
- [Resolutions](https://quickref.me/resolutions.html): This cheat sheet lists screen sizes, viewport size and CSS media queries for popular Phones, Tablets, Laptops and Watches
- [HTTP Status Code](https://quickref.me/http-status-code.html): The http status codes cheat sheet. a quick reference to every HTTP status code.
- [Emoji](https://quickref.me/emoji.html): Some of the emoji codes are not super easy to remember, so here is a little cheat sheet.
- [QuickRef](https://quickref.me/quickref.html): This is the magic syntax variant manual that you can use on QuickRef.ME, It's a good practice for contributors.
- [CheatSheets](https://quickref.me/quickref.html): This is the magic syntax variant manual that you can use on CheatSheets.zip, It's a good practice for contributors.
- [MIME types](https://quickref.me/mime.html): This cheat sheet lists some common MIME types for the Web. You can look in the [IANA/MIME Media Types registry](http://www.iana.org/assignments/media-types/index.html) which contains all registered MIME types.
</details>
@@ -238,7 +238,7 @@ This reference was made for Emacs 27.
## 🤝 Contributing
We would like to extend our gratitude to you for considering a contribution to Reference. Your support is what makes QuickRef.ME a truly amazing resource. Please feel free to [submit issues](https://github.com/Fechin/reference/issues/new?assignee=Fechin) and enhancement requests.
We would like to extend our gratitude to you for considering a contribution to Reference. Your support is what makes CheatSheets.zip a truly amazing resource. Please feel free to [submit issues](https://github.com/Fechin/reference/issues/new?assignee=Fechin) and enhancement requests.
For consistency, we encourage you to refer to the [https://quickref.me/quickref](https://quickref.me/quickref) when creating or editing cheatsheets. To get started with development, follow these steps:
@@ -255,7 +255,7 @@ To create or edit a cheat sheet, you'll need to create or edit a markdown file i
```markdown
---
title: QuickRef
title: CheatSheets
date: 2020-11-25 18:28:43
icon: icon-style
background: bg-emerald-600
+2 -2
View File
@@ -3,11 +3,11 @@
## Source: https://github.com/hexojs/hexo/
# Site
title: QuickRef.ME
title: CheatSheets.zip
subtitle: 'Quick Reference Cheat Sheet'
description: 'Share quick reference and cheat sheet for developers'
keywords: reference,cheatsheet,code table,snippets,linux
author: QuickRef.ME
author: CheatSheets.zip
language: en
timezone: ''
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "QuickRef.ME",
"name": "CheatSheets.zip",
"version": "1.0.0",
"private": true,
"scripts": {
+2 -2
View File
@@ -108,12 +108,12 @@ Getting Started
- **Change the CSS of a line of code**
``` {.wrap}
Update the CSS for this line to change the font color to blue?
<p class="example">Hello, QuickRef.ME!</p>
<p class="example">Hello, CheatSheets.zip!</p>
```
- **Change the HTML of a line of code**
``` {.wrap}
Add a class of "header" to this header tag?
<h1>Hello, QuickRef.ME!</h1>
<h1>Hello, CheatSheets.zip!</h1>
```
{.collapsible}
+4 -4
View File
@@ -21,7 +21,7 @@ Getting Started
#include <iostream>
int main() {
std::cout << "Hello QuickRef\n";
std::cout << "Hello CheatSheets\n";
return 0;
}
```
@@ -31,7 +31,7 @@ Compiling and running
```shell script
$ g++ hello.cpp -o hello
$ ./hello
Hello QuickRef
Hello CheatSheets
```
### Variables
@@ -130,7 +130,7 @@ int main() { // main function
}
void hello() { // Defining
std::cout << "Hello QuickRef!\n";
std::cout << "Hello CheatSheets!\n";
}
```
@@ -494,7 +494,7 @@ for (int n : {1, 2, 3, 4, 5}) {
---
```cpp
std::string hello = "QuickRef.ME";
std::string hello = "CheatSheets.zip";
for (char c: hello)
{
std::cout << c << " ";
+8 -8
View File
@@ -28,7 +28,7 @@ Getting Started
<title>HTML5 Boilerplate</title>
</head>
<body>
<h1>Hello world, hello QuickRef.ME!</h1>
<h1>Hello world, hello CheatSheets.zip!</h1>
</body>
</html>
```
@@ -50,7 +50,7 @@ Or try it out in the [jsfiddle](https://jsfiddle.net/Fechin/1e4wz20b/)
### Paragraph
```html
<p>I'm from QuickRef.ME</p>
<p>I'm from CheatSheets.zip</p>
<p>Share quick reference cheat sheet.</p>
```
See: [The Paragraph element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
@@ -61,7 +61,7 @@ See: [The Paragraph element](https://developer.mozilla.org/en-US/docs/Web/HTML/E
### HTML link
```html
<a href="https://quickref.me">QuickRef</a>
<a href="https://quickref.me">CheatSheets</a>
<a href="mailto:jack@abc.com">Email</a>
<a href="tel:+12345678">Call</a>
<a href="sms:+12345678&body=ha%20ha">Msg</a>
@@ -173,7 +173,7 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
```html
<script type="text/javascript">
let text = "Hello QuickRef.ME";
let text = "Hello CheatSheets.zip";
alert(text);
</script>
```
@@ -221,10 +221,10 @@ HTML5 Tags
<nav>...</nav>
</header>
<main>
<h1>QuickRef.ME</h1>
<h1>CheatSheets.zip</h1>
</main>
<footer>
<p>©2023 QuickRef.ME</p>
<p>©2023 CheatSheets.zip</p>
</footer>
</body>
```
@@ -351,9 +351,9 @@ HTML5 Tags
### HTML5 mark
```html
<p>I Love <mark>QuickRef.ME</mark></p>
<p>I Love <mark>CheatSheets.zip</mark></p>
```
<p>I Love <mark>QuickRef.ME</mark></p>
<p>I Love <mark>CheatSheets.zip</mark></p>
HTML Tables
+2 -2
View File
@@ -77,11 +77,11 @@ See: [Strings](#java-strings)
### Loops
```java
String word = "QuickRef";
String word = "CheatSheets";
for (char c: word.toCharArray()) {
System.out.print(c + "-");
}
// Outputs: Q-u-i-c-k-R-e-f-
// Outputs: C-h-e-a-t-S-h-e-e-t-s-
```
See: [Loops](#java-loops)
+2 -2
View File
@@ -32,8 +32,8 @@ JavaScript is a lightweight, interpreted programming language.
// => Hello world!
console.log('Hello world!');
// => Hello QuickRef.ME
console.warn('hello %s', 'QuickRef.ME');
// => Hello CheatSheets.zip
console.warn('hello %s', 'CheatSheets.zip');
// Prints error message to stderr
console.error(new Error('Oops!'));
+1 -1
View File
@@ -80,7 +80,7 @@ Getting Started
```json {.wrap}
{
"url": "https://quickref.me",
"msg" : "Hi,\n\"QuickRef.ME\"",
"msg" : "Hi,\n\"CheatSheets.zip\"",
"intro": "Share quick reference and cheat sheet for developers."
}
```
+1 -1
View File
@@ -23,7 +23,7 @@ Introduction to Kotlin
```kotlin
fun main() {
println("Greetings, QuickRef.ME!")
println("Greetings, CheatSheets.zip!")
// Code goes here
}
```
+4 -4
View File
@@ -1,5 +1,5 @@
---
title: QuickRef
title: CheatSheets
date: 2020-11-25 18:28:43
background: bg-gradient-to-l from-green-400 to-blue-500 hover:from-pink-500 hover:to-yellow-500
tags:
@@ -7,7 +7,7 @@ tags:
- reference
categories:
- Other
intro: This is the magic syntax variant manual that you can use on QuickRef.ME, It's a good practice for contributors.
intro: This is the magic syntax variant manual that you can use on CheatSheets.zip, It's a good practice for contributors.
plugins:
- copyCode
---
@@ -35,7 +35,7 @@ Getting Started
- Send us pull request and chill
{.marker-timeline}
It's a good practice to refer to the source code of the [QuickRef cheatsheet](https://github.com/Fechin/reference/blob/main/source/_posts/quickref.md).
It's a good practice to refer to the source code of the [CheatSheets reference](https://github.com/Fechin/reference/blob/main/source/_posts/quickref.md).
@@ -109,7 +109,7 @@ It's a good practice to refer to the source code of the [QuickRef cheatsheet](ht
- [Paragraph Variants](#paragraph-variants)
- [Cards Example](#cards-example)
All the magic variants supported by QuickRef.ME
All the magic variants supported by CheatSheets.zip
### Create source/_posts/demo.md
+4 -4
View File
@@ -706,16 +706,16 @@ Regex in PHP
$str = "Visit Microsoft!";
$regex = "/microsoft/i";
// Output: Visit QuickRef!
echo preg_replace($regex, "QuickRef", $str);
// Output: Visit CheatSheets!
echo preg_replace($regex, "CheatSheets", $str);
```
### preg_match
```php
$str = "Visit QuickRef";
$regex = "#quickref#i";
$str = "Visit CheatSheets";
$regex = "#cheatsheets#i";
// Output: 1
echo preg_match($regex, $str);
+1 -1
View File
@@ -646,7 +646,7 @@ Rust Functions
```rust
fn print_message(){
println!("Hello, QuickRef.ME!");
println!("Hello, CheatSheets.zip!");
}
fn main(){
+2 -2
View File
@@ -1153,11 +1153,11 @@ func washCar() -> Void {
```swift
func greetLearner() {
print("Welcome to QuickRef.ME!")
print("Welcome to CheatSheets.zip!")
}
// function call:
greetLearner()
// print: Welcome to QuickRef.ME!
// print: Welcome to CheatSheets.zip!
```
+2 -2
View File
@@ -27,7 +27,7 @@
<% } %>
<div class="max-container flex flex-col sm:flex-row items-center ">
<p class="py-2 md:py-3 text-slate-500 text-sm text-center w-full">
© <%= new Date().getFullYear() %> QuickRef.ME, All rights reserved.
© <%= new Date().getFullYear() %> CheatSheets.zip, All rights reserved.
</p>
</div>
</footer>
</footer>
+1 -1
View File
@@ -6,7 +6,7 @@
</div>
</div>
<% } %>
<span class="domain text-slate-600 dark:text-slate-300 text-lg md:text-2xl">Quick<span class="text-emerald-400">Ref</span>.ME</span>
<span class="domain text-slate-600 dark:text-slate-300 text-lg md:text-2xl">Cheat<span class="text-emerald-400">Sheets</span>.zip</span>
</a>
<% if (page.layout == "note" || page._isNotePagination){ %>
<a class="hidden md:block" href="/notes/">
-17
View File
@@ -1,11 +1,6 @@
let Utils = (function () {
return {
LIBRARY: {
gtag: {
lib: ['https://www.googletagmanager.com/gtag/js?id=G-6SZEXN62V8'],
instance: 'gtag',
attr: {async: true}
},
fuse: {
lib: ['/js/fuse_6.4.6.js'],
instance: 'Fuse',
@@ -84,18 +79,6 @@ window.addEventListener('load', () => {
});
/******** google analytics ***********/
Utils.externalLibrary(Utils.LIBRARY.gtag).then(() => {
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-6SZEXN62V8');
});
/******** Remove bottom border noise ********/
document.querySelectorAll(".h3-wrap ul").forEach(function (ul, i) {
let length = ul.querySelectorAll("li").length;