Set cols-3 as default

This commit is contained in:
fechin committed 2022-11-20 15:30:55 +08:00
1 parent 5a2dd07d58
commit ed0e02b932
59 files changed
+238 -219

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ Getting started {.cols-2}
Lists of Aspect Ratios {.cols-3}
Lists of Aspect Ratios
-------------------
+9 -9
View File
@@ -13,7 +13,7 @@ intro: |
This is a one page quick reference cheat sheet to the [GNU awk](https://www.gnu.org/software/gawk/manual/gawk.html), which covers commonly used awk expressions and commands.
---
Getting started {.cols-3}
Getting started
---------------
### Have a try
@@ -146,7 +146,7 @@ See: [Functions](#awk-functions)
Awk Variables {.cols-3}
Awk Variables
---------
@@ -262,7 +262,7 @@ awk -v varName="$PWD" '
Awk Operators {.cols-3}
Awk Operators
---------
### Operators
@@ -341,7 +341,7 @@ awk 'BEGIN {
Awk Functions {.cols-3}
Awk Functions
----------
### Common functions {.col-span-2}
| Function | Description |
@@ -395,7 +395,7 @@ awk '
Awk Arrays {.cols-3}
Awk Arrays
---------
@@ -470,7 +470,7 @@ awk 'BEGIN {
Awk Conditions {.cols-3}
Awk Conditions
----------
### if-else statement
@@ -532,7 +532,7 @@ awk -F: '{
```
Awk Loops {.cols-3}
Awk Loops
----------
### for...i
@@ -663,7 +663,7 @@ awk 'BEGIN {
Awk Formatted Printing {.cols-3}
Awk Formatted Printing
---------
### Usage
@@ -727,7 +727,7 @@ daemon /sbin
Miscellaneous {.cols-3}
Miscellaneous
-------------
### Regex Metacharacters
+8 -8
View File
@@ -14,7 +14,7 @@ categories:
intro: This is a quick reference cheat sheet to getting started with linux bash shell scripting.
---
Getting started {.cols-3}
Getting started
---------------
### hello.sh
@@ -136,7 +136,7 @@ See: [Command substitution](http://wiki.bash-hackers.org/syntax/expansion/cmdsub
Bash Parameter expansions {.cols-3}
Bash Parameter expansions
--------------------
@@ -252,7 +252,7 @@ echo "${ARR[@]^}" # => Hello World
Bash Arrays {.cols-3}
Bash Arrays
------
### Defining arrays
@@ -339,7 +339,7 @@ extract Fruits 2 # => Orangle
Bash Dictionaries {.cols-3}
Bash Dictionaries
------------
### Defining
@@ -384,7 +384,7 @@ done
Bash Conditionals {.cols-3}
Bash Conditionals
------------
### Integer conditions
@@ -513,7 +513,7 @@ fi
Bash Loops {.cols-3}
Bash Loops
-----
### Basic for loop
@@ -635,7 +635,7 @@ done
Bash Functions {.cols-3}
Bash Functions
---------
### Defining functions
@@ -778,7 +778,7 @@ Bash History {.cols-2}
`!!` can be replaced with any valid expansion i.e. `!cat`, `!-2`, `!42`, etc.
Miscellaneous {.cols-3}
Miscellaneous
-------------
### Numeric calculations
+3 -3
View File
@@ -12,7 +12,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
--------
@@ -117,7 +117,7 @@ d rwx r-x r-x
Chmod Examples {.cols-3}
Chmod Examples
--------
@@ -207,7 +207,7 @@ $ chmod u=rwx,g=rx,o=r foo.sh
Chmod Practices {.cols-3}
Chmod Practices
---------------
### SSH Permissions
+8 -8
View File
@@ -11,7 +11,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
--------
### hello.cpp
@@ -176,7 +176,7 @@ int main()
Namespaces allow global identifiers under a name
C++ Arrays {.cols-3}
C++ Arrays
------
### Declaration
@@ -260,7 +260,7 @@ for (int i = 0; i < 2; ++i) {
// Outputs: 1 2 3 4 5 6 6 5 4 3 2 1
```
C++ Conditionals {.cols-3}
C++ Conditionals
------------
### If Clause
@@ -406,7 +406,7 @@ switch (num) {
}
```
C++ Loops {.cols-3}
C++ Loops
------------
### While
@@ -525,7 +525,7 @@ for (int i = 0, j = 2; i < 3; i++, j--){
// Outputs: i=0,j=2;i=1,j=1;i=2,j=0;
```
C++ Functions {.cols-3}
C++ Functions
------------
### Arguments & Returns
@@ -570,7 +570,7 @@ int main() {
}
```
C++ Classes & Objects {.cols-3}
C++ Classes & Objects
-----------------
### If statement
@@ -597,7 +597,7 @@ C++ Classes & Objects {.cols-3}
```
C++ Preprocessor {.cols-3}
C++ Preprocessor
------------
### Preprocessor {.row-span-3}
@@ -686,7 +686,7 @@ char * a = STR(object); #=> char * a = "object";
#=> console.log("file.txt", 3, "hey")
```
Miscellaneous {.cols-3}
Miscellaneous
-------------
### Escape Sequences
+3 -3
View File
@@ -13,7 +13,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
--------
### Hello.cs
@@ -150,7 +150,7 @@ foreach(int num in numbers) {
C# Strings {.cols-3}
C# Strings
----------------
### String concatenation
@@ -203,7 +203,7 @@ lengthOfString.Contains("How"); // => true
Misc {.cols-3}
Misc
-----------
### General .NET Terms {.col-span-2}
+10 -10
View File
@@ -15,7 +15,7 @@ intro: |
Getting started {.cols-3}
Getting started
------------
### Introduction {.row-span-3}
@@ -206,7 +206,7 @@ element {
See: [Dynamic content](#css-dynamic-content)
CSS Selectors {.cols-3}
CSS Selectors
-----------
@@ -354,7 +354,7 @@ See also: [Attribute selectors](https://developer.mozilla.org/en-US/docs/Web/CSS
CSS Fonts {.cols-3}
CSS Fonts
------
@@ -420,7 +420,7 @@ text-transform: lowercase;
CSS Colors {.cols-3}
CSS Colors
------------
@@ -484,7 +484,7 @@ color: currentcolor; /* keyword */
CSS Backgrounds {.cols-3}
CSS Backgrounds
----------
### Properties {.row-span-2}
@@ -524,7 +524,7 @@ background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(13,232,230,1) 35%, rg
CSS The Box Model {.cols-3}
CSS The Box Model
------------
@@ -734,7 +734,7 @@ CSS Flexbox {.cols-2}
}
CSS Flexbox Tricks {.cols-3}
CSS Flexbox Tricks
--------------
### Vertical center
@@ -836,7 +836,7 @@ Vertically-center all items.
CSS Grid Layout {.cols-3}
CSS Grid Layout
------------
@@ -1001,7 +1001,7 @@ The grid items are positioned to the right (end) of the row.
CSS Dynamic Content {.cols-3}
CSS Dynamic Content
------------
### Variable
@@ -1069,7 +1069,7 @@ li::before {
```
Css 3 tricks {.cols-3}
Css 3 tricks
------------
### Scrollbar smooth
+3 -3
View File
@@ -191,7 +191,7 @@ switch(myPet){
Control Flows : Loops {.cols-3}
Control Flows : Loops
------------
@@ -319,7 +319,7 @@ list.forEach(
//Prints: 0: apples 1: bananas 2: oranges
```
Classes and Objects {.cols-3}
Classes and Objects
----------
### Class
@@ -444,7 +444,7 @@ class SmartPhone extends Phone {
}
```
Exceptions {.cols-3}
Exceptions
------------
### Throw
+1 -1
View File
@@ -448,7 +448,7 @@ Use `C-s` or `C-r` again to repeat the search in either direction. If Emacs is s
Misc {.cols-3}
Misc
----
+1 -1
View File
@@ -16,7 +16,7 @@ intro: |
---
Emmet Syntax {.cols-3}
Emmet Syntax
---------------
+1 -1
View File
@@ -9,7 +9,7 @@ categories:
intro: Some of the emoji codes are not super easy to remember, so here is a little cheat sheet.
---
Getting Started {.cols-3}
Getting Started
----------
### People
+2 -2
View File
@@ -13,7 +13,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
---------------
### Usage
@@ -218,7 +218,7 @@ $ find . -type f -empty -delete
```
Find Date and Time {.cols-3}
Find Date and Time
-------------
+2 -2
View File
@@ -13,7 +13,7 @@ categories:
intro: This cheat sheet summarizes commonly used Git command line instructions for quick reference.
---
Getting started {.cols-3}
Getting started
---------------
### Create a Repository
@@ -303,7 +303,7 @@ A `.gitignore` file specifies intentionally untracked files that Git should igno
Git Tricks {.cols-3}
Git Tricks
------
### Rename branch
+10 -10
View File
@@ -12,7 +12,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
--------
@@ -96,7 +96,7 @@ See: [Flow control](#golang-flow-control)
Golang Basic types {.cols-3}
Golang Basic types
--------
### Strings
@@ -288,7 +288,7 @@ fmt.Println(s) // Outputs: 90
Golang Strings {.cols-3}
Golang Strings
--------
### Strings function
@@ -383,7 +383,7 @@ See also: [fmt](https://golang.org/pkg/fmt/)
Golang Flow control {.cols-3}
Golang Flow control
--------
### Conditional
@@ -485,7 +485,7 @@ for {
Golang Structs & Maps {.cols-3}
Golang Structs & Maps
--------
### Defining {.row-span-2}
@@ -559,7 +559,7 @@ Doing `v.X` is the same as doing `(*v).X`, when `v` is a pointer.
Golang Functions {.cols-3}
Golang Functions
--------
@@ -691,7 +691,7 @@ fmt.Println(val) // => 101
```
Golang Packages {.cols-3}
Golang Packages
--------
@@ -757,7 +757,7 @@ See: [Exported names](https://tour.golang.org/basics/3)
Golang Concurrency {.cols-3}
Golang Concurrency
--------
### Goroutines {.row-span-2}
@@ -870,7 +870,7 @@ See: [Buffered channels](https://tour.golang.org/concurrency/3)
Golang Error control {.cols-3}
Golang Error control
--------
### Deferring functions
@@ -1004,7 +1004,7 @@ func main() {
}
```
Miscellaneous {.cols-3}
Miscellaneous
-------------
### Keywords
+1 -1
View File
@@ -13,7 +13,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
--------
### Overview
+1 -1
View File
@@ -56,7 +56,7 @@ Wildcards are accepted in filename.
| `-n` | grep -n "go" demo.txt | Show the line numbers of the matches |
Grep regular expressions {.cols-3}
Grep regular expressions
---------------
### Refer
+5 -5
View File
@@ -12,7 +12,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
------------
### hello.html {.col-span-2 .row-span-2}
@@ -211,7 +211,7 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
HTML5 Tags {.cols-3}
HTML5 Tags
-------------
### Document
@@ -356,7 +356,7 @@ HTML5 Tags {.cols-3}
<p>I Love <mark>QuickRef.ME</mark></p>
HTML Tables {.cols-3}
HTML Tables
--------------
### Table Example {.row-span-2}
@@ -424,7 +424,7 @@ See: [th\#Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/
HTML Lists {.cols-3}
HTML Lists
--------------
@@ -466,7 +466,7 @@ See: [The Description List element](https://developer.mozilla.org/en-US/docs/Web
HTML Forms {.cols-3}
HTML Forms
-----------
+1 -1
View File
@@ -14,7 +14,7 @@ plugins:
- tooltip
---
HTTP Status code {.cols-3}
HTTP Status code
-----------
+1 -1
View File
@@ -15,7 +15,7 @@ intro: |
IDEA Windows & Linux Keymap {.cols-3}
IDEA Windows & Linux Keymap
--------
+1 -1
View File
@@ -50,7 +50,7 @@ Getting Started {.cols-2}
- [JPEG](https://tableconvert.com/html-to-jpeg?data=https://quickref.me/iso-639-1#TableGenerator)
{.cols-4 .marker-none}
List of ISO 639-1 codes
List of ISO 639-1 codes {.cols-1}
-----------
### Full codes
+7 -7
View File
@@ -15,7 +15,7 @@ plugins:
---
Getting started {.cols-3}
Getting started
--------
### Hello.java {.row-span-2}
@@ -153,7 +153,7 @@ int num = in.nextInt();
System.out.println(num);
```
Java Strings {.cols-3}
Java Strings
-------
### Basic
@@ -283,7 +283,7 @@ Once created cannot be modified, any modification creates a new String
Java Arrays {.cols-3}
Java Arrays
-------
@@ -362,7 +362,7 @@ Arrays.toString(chars);
Java Conditionals {.cols-3}
Java Conditionals
-----------
@@ -459,7 +459,7 @@ System.out.println(max);
```
Java Loops {.cols-3}
Java Loops
----
### For Loop
@@ -535,7 +535,7 @@ for (int i = 0; i < 5; i++) {
// Outputs: 0123
```
Java Collections Framework {.cols-3}
Java Collections Framework
--------------------
### Java Collections {.col-span-2}
@@ -657,7 +657,7 @@ System.out.println(a.peek());
System.out.println(a.pop());
```
Misc {.cols-3}
Misc
----
+8 -8
View File
@@ -15,7 +15,7 @@ intro: |
Getting started {.cols-3}
Getting started
------------
### Introduction
@@ -150,7 +150,7 @@ numberOfColumns = 8;
JavaScript Conditionals {.cols-3}
JavaScript Conditionals
------------
@@ -271,7 +271,7 @@ null === undefined // false
The `==` just check the value, `===` check both the value and the type.
JavaScript Functions {.cols-3}
JavaScript Functions
------------
@@ -395,7 +395,7 @@ function add(num1, num2) {
JavaScript Scope {.cols-3}
JavaScript Scope
------------
@@ -480,7 +480,7 @@ The variable has its own copy using `let`, and the variable has shared copy usin
JavaScript Arrays {.cols-3}
JavaScript Arrays
------------
@@ -588,7 +588,7 @@ numbers.concat(newFirstNumber)
if you want to avoid mutating your original array, you can use concat.
JavaScript Loops {.cols-3}
JavaScript Loops
------------
@@ -1016,7 +1016,7 @@ myCat.name = 'Yankee';
JavaScript Classes {.cols-3}
JavaScript Classes
------------
@@ -1470,7 +1470,7 @@ msg(); // Message: Hello World! <-- after 2 seconds
JavaScript Requests {.cols-3}
JavaScript Requests
------------
### JSON
+9 -9
View File
@@ -17,7 +17,7 @@ plugins:
---
Getting started {.cols-3}
Getting started
------------
@@ -69,7 +69,7 @@ $(function(){
jQuery Selectors {.cols-3}
jQuery Selectors
----------
### Examples {.secondary}
@@ -167,7 +167,7 @@ $("selector1, selector2 ...selectorn")
jQuery Attributes {.cols-3}
jQuery Attributes
------------
@@ -244,7 +244,7 @@ $('.choice').toggleClass('highlighted');
jQuery Manipulation {.cols-3}
jQuery Manipulation
------------
### Examples {.secondary .row-span-3}
@@ -302,7 +302,7 @@ $('span').wrap('<p></p>');
{.marker-none .cols-3}
jQuery Traversing {.cols-3}
jQuery Traversing
------------
@@ -344,7 +344,7 @@ jQuery Traversing {.cols-3}
{.marker-none .cols-3}
jQuery Events {.cols-3}
jQuery Events
------------
@@ -476,7 +476,7 @@ $( "p" ).click(function( event ) {
jQuery Effects {.cols-3}
jQuery Effects
------------
### Examples {.secondary .row-span-2}
@@ -536,7 +536,7 @@ $('#menu-button').on('click', () => {
jQuery Ajax {.cols-3}
jQuery Ajax
------------
### Examples {.secondary .row-span-2}
@@ -586,7 +586,7 @@ $.ajax({
Miscellaneous {.cols-3}
Miscellaneous
------------
+2 -2
View File
@@ -12,7 +12,7 @@ intro: |
This is a quick reference cheat sheet for understanding and writing JSON format configuration files.
---
Getting started {.cols-3}
Getting started
---------------
@@ -210,7 +210,7 @@ Begins with `[` and ends with `]`
Access JSON in JavaScript {.cols-3}
Access JSON in JavaScript
-------------------------
### Access Object
+13 -13
View File
@@ -15,7 +15,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
---------------
### Requirements {.row-span-2}
@@ -80,7 +80,7 @@ Access application via `http://localhost`
Configuration {.cols-3}
Configuration
---------------
### .env {.cols-2}
@@ -143,7 +143,7 @@ php artisan down --secret="1630542a-246b-4b66-afa1-dd72a4c43515"
```
Visit your application URL `https://example.com/1630542a-246b-4b66-afa1-dd72a4c43515` to set a cookie and bypass the maintenance screen
Routing {.cols-3}
Routing
---------------
### Router HTTP Methods {.row-span-2}
@@ -388,7 +388,7 @@ $action = Route::currentRouteAction();
```
Helpers {.cols-3}
Helpers
---------------
### routes {.row-span-2}
@@ -477,7 +477,7 @@ Report an exception but continue handling the current request
Generate an HTTP exception response using status code
Controllers {.cols-3}
Controllers
---------------
### Basic
@@ -504,7 +504,7 @@ use App\Http\Controllers\UserController;
Route::get('/user/{id}', [UserController::class, 'show']);
```
Requests {.cols-3}
Requests
---------------
### CSRF Protection
@@ -770,7 +770,7 @@ $path = $request->photo->storeAs('images', 'filename.jpg', 's3');
See More: [Laravel File Storage](https://laravel.com/docs/8.x/filesystem)
Views {.cols-3}
Views
---------------
### Intro
- [Laravel Docs - Views](https://laravel.com/docs/8.x/views)
@@ -829,7 +829,7 @@ return view('admin.profile');
```
Blade Templates {.cols-3}
Blade Templates
---------------
### Intro
@@ -991,7 +991,7 @@ Prepend to the beginning of a stack
```
Forms {.cols-3}
Forms
---------------
### Intro
- [Laravel Docs - Forms](https://laravel.com/docs/8.x/blade#forms)
@@ -1043,7 +1043,7 @@ Or the `old()` helper
<input type="text" name="title" value="{{ old('title') }}">
```
Validation {.cols-3}
Validation
---------------
### Intro
- [Laravel Docs - Validation](https://laravel.com/docs/8.x/validation)
@@ -1280,7 +1280,7 @@ $email = $validated['email'];
```
Session {.cols-3}
Session
---------------
### Intro
- [Laravel Docs - Session](https://laravel.com/docs/8.x/session)
@@ -1380,7 +1380,7 @@ $request->session()->push('user.teams', 'developers');
```
Logging {.cols-3}
Logging
---------------
### Configuration
@@ -1420,7 +1420,7 @@ Log::info('User failed to login.', ['id' => $user->id]);
```
Deployment {.cols-3}
Deployment
---------------
### Intro
- [Laravel Docs - Deployment](https://laravel.com/docs/8.x/deployment)
+1 -1
View File
@@ -13,7 +13,7 @@ intro: |
This quick reference cheat sheet provides various for using lsof command.
---
Getting started {.cols-3}
Getting started
--------------
### Introduction
+1 -1
View File
@@ -13,7 +13,7 @@ categories:
intro: This is a quick reference cheat sheet to the Markdown syntax.
---
Markdown Quick Reference {.cols-3}
Markdown Quick Reference
---------------
### Headers (atx style)
+1 -1
View File
@@ -50,7 +50,7 @@ Getting started {.cols-2}
{.cols-4 .marker-none}
Lists of MIME types
Lists of MIME types {.cols-1}
-------------------
### Common MIME (Media) types
+2 -2
View File
@@ -14,7 +14,7 @@ intro: |
[mitmproxy](https://mitmproxy.org/) is a free and open source interactive HTTPS proxy. This is a quick reference cheat sheet to the mitmproxy.
---
Getting started {.cols-3}
Getting started
---------------
### Usage {.col-span-2}
@@ -123,7 +123,7 @@ h ◀ ─── + ─── ▶ l ││ page
Mitmproxy Filter {.cols-3}
Mitmproxy Filter
---------------
### Filter
+3 -3
View File
@@ -86,7 +86,7 @@ mysql -u user -p db_name < db.sql
MySQL Examples {.cols-3}
MySQL Examples
--------------
@@ -562,7 +562,7 @@ DROP INDEX idx_name;
```
MySQL Data Types {.cols-3}
MySQL Data Types
---------
@@ -609,7 +609,7 @@ MySQL Data Types {.cols-3}
MySQL Functions & Operators {.cols-3}
MySQL Functions & Operators
---------
+1 -1
View File
@@ -62,7 +62,7 @@ $ nc 192.168.1.9 8000
Netcat Examples {.cols-3}
Netcat Examples
--------
### Banner grabbing
+1 -1
View File
@@ -36,7 +36,7 @@ Neo4j is a Graph Database consisting of nodes connected together by relationship
| **Properties** | Both nodes and relationships can have properties set against them. Properties are [name-value pairs](https://neo4j.com/docs/cypher-manual/4.3/syntax/values/#cypher-values). |
Neo4j Syntax {.cols-3}
Neo4j Syntax
------
### Read query structure
+1 -1
View File
@@ -13,7 +13,7 @@ intro: |
This quick reference cheat sheet provides various for using netstat command.
---
Getting started {.cols-3}
Getting started
---------------
+9 -9
View File
@@ -12,7 +12,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
---------------
@@ -177,7 +177,7 @@ See: [Classes](#php-classes)
PHP Types {.cols-3}
PHP Types
---------------
@@ -268,7 +268,7 @@ foreach (bar() as $value) {
```
PHP Strings {.cols-3}
PHP Strings
---------------
@@ -329,7 +329,7 @@ See: [String Functions](https://www.php.net/manual/en/ref.strings.php)
PHP Arrays {.cols-3}
PHP Arrays
---------------
### Defining {.row-span-2}
@@ -554,7 +554,7 @@ $num /= $float; // Divide and assign the quotient to $num
PHP Conditionals {.cols-3}
PHP Conditionals
---------------
### If elseif else
@@ -634,7 +634,7 @@ echo $result; # => young adult
```
PHP Loops {.cols-3}
PHP Loops
---------------
@@ -699,7 +699,7 @@ See: [Array iteration](#php-value-iteration)
PHP Functions {.cols-3}
PHP Functions
---------------
@@ -824,7 +824,7 @@ echo $fn2(5); # => 6
PHP Classes {.cols-3}
PHP Classes
---------------
@@ -924,7 +924,7 @@ class Cls implements Foo, Bar
}
```
Miscellaneous {.cols-3}
Miscellaneous
-------------
### Basic error handling
+4 -4
View File
@@ -14,7 +14,7 @@ intro: |
Getting started {.cols-3}
Getting started
---------------
### Getting started
@@ -68,7 +68,7 @@ Run in PostgreSQL console
PostgreSQL Working {.cols-3}
PostgreSQL Working
-------
### Recon
@@ -334,7 +334,7 @@ DROP SCHEMA IF EXISTS <schema_name> CASCADE;
PostgreSQL Commands {.cols-3}
PostgreSQL Commands
-----------
### Tables
@@ -456,7 +456,7 @@ PostgreSQL Commands {.cols-3}
Miscellaneous {.cols-3}
Miscellaneous
-------------
+12 -12
View File
@@ -14,7 +14,7 @@ intro: |
Getting Started {.cols-3}
Getting Started
---------------
@@ -164,7 +164,7 @@ See: [Python F-Strings](#python-f-strings-since-python)
Python Data Types {.cols-3}
Python Data Types
---------------
@@ -278,7 +278,7 @@ z = str(3.0) # z will be '3.0'
Python Strings {.cols-3}
Python Strings
------------
### Array-like
@@ -448,7 +448,7 @@ Get input data from console
True
```
Python F-Strings (Since Python 3.6+) {.cols-3}
Python F-Strings (Since Python 3.6+)
----------------
@@ -555,7 +555,7 @@ it is available since Python 3.6, also see: [Formatted string literals](https://
'-000012345'
```
Python Lists {.cols-3}
Python Lists
------------
@@ -730,7 +730,7 @@ IndexError: list index out of range
['re', 're', 're']
```
Python Flow control {.cols-3}
Python Flow control
------------
### Basic
@@ -767,7 +767,7 @@ else:
Python Loops {.cols-3}
Python Loops
--------
### Basic
@@ -854,7 +854,7 @@ print(result)
Python Functions {.cols-3}
Python Functions
--------
### Basic
@@ -924,7 +924,7 @@ add(5, 20) # => 25
Python Modules {.cols-3}
Python Modules
--------
@@ -970,7 +970,7 @@ dir(math)
Python File Handling {.cols-3}
Python File Handling
----------
@@ -1053,7 +1053,7 @@ os.rmdir("myfolder")
Python Classes & Inheritance {.cols-3}
Python Classes & Inheritance
--------
@@ -1215,7 +1215,7 @@ Yoki.sound() # => Woof!
Miscellaneous {.cols-3}
Miscellaneous
----------
### Comments
+7 -7
View File
@@ -11,7 +11,7 @@ categories:
intro: This is a reference of styles that you can use on quickref cheatsheets!
---
Variants {.cols-3}
Variants
--------
### H2 section
@@ -122,7 +122,7 @@ See: [Paragraphs](#paragraphs-2)
### How to add variants {.secondary}
```
H2 section {.cols-3}
H2 section
----------
### H3 section {.col-span-2}
@@ -134,7 +134,7 @@ H2 section {.cols-3}
QuickRefs uses [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs#markdown-it-attrs---), and supports adding classes via its syntax.
Code {.cols-3}
Code
----
### Basic code
@@ -192,7 +192,7 @@ function createNode(nodeName: string, options: { key: string }) {
Long lines will have scrollbars.
Paragraphs {.cols-3}
Paragraphs
--------
### Basic paragraphs
@@ -228,7 +228,7 @@ Add `{.link-arrow}` to make big loud external links:
Tables {.cols-3}
Tables
------
### Basic table
@@ -310,7 +310,7 @@ QuickRef uses markdown-it-multimd-table to render the table, See:[markdown-it-
Lists {.cols-3}
Lists
--------
### One column (Default)
@@ -399,7 +399,7 @@ H2 section {.cols-5}
```
H3 section {.cols-3}
H3 section
----------
### row-span-2 {.row-span-2}
+28 -13
View File
@@ -1,8 +1,8 @@
---
title: QuickRef
date: 2020-11-25 18:28:43
icon: icon-style
background: bg-emerald-600
icon: icon-star
background: bg-red-600
tags:
- guide
- reference
@@ -11,7 +11,7 @@ categories:
intro: This is a reference of styles that you can use on quickref cheatsheets!
---
Variants {.cols-3}
Variants
--------
### H2 section
@@ -22,8 +22,7 @@ Variants {.cols-3}
| `.cols-2` | |
| `.cols-3` | three column |
| ... | |
| `.cols-11` | |
| `.cols-12` | |
| `.cols-6` | |
@@ -84,8 +83,7 @@ See: [Tables](#tables-2)
| `.cols-2` | |
| `.cols-3` | three column |
| ... | |
| `.cols-11` | |
| `.cols-12` | |
| `.cols-6` | |
See: [Lists](#lists-2)
@@ -122,7 +120,7 @@ See: [Paragraphs](#paragraphs-2)
### How to add variants {.secondary}
```
H2 section {.cols-3}
H2 section
----------
### H3 section {.col-span-2}
@@ -134,7 +132,24 @@ H2 section {.cols-3}
QuickRefs uses [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs#markdown-it-attrs---), and supports adding classes via its syntax.
Code {.cols-3}
Layout Variants
--------
### H2 section
| - | - |
|------------|------------------------|
| `.cols-1` | one column _(default)_ |
| `.cols-2` | |
| `.cols-3` | three column |
| ... | |
| `.cols-6` | |
Code
----
### Basic code
@@ -192,7 +207,7 @@ function createNode(nodeName: string, options: { key: string }) {
Long lines will have scrollbars.
Paragraphs {.cols-3}
Paragraphs
--------
### Basic paragraphs
@@ -228,7 +243,7 @@ Add `{.link-arrow}` to make big loud external links:
Tables Variants {.cols-3}
Tables Variants
------
@@ -309,7 +324,7 @@ Tables Variants {.cols-3}
Lists Variants {.cols-3}
Lists Variants
--------
### List Overview {.secondary}
@@ -469,7 +484,7 @@ H2 section {.cols-5}
```
H3 section {.cols-3}
H3 section
----------
### row-span-2 {.row-span-2}
+5 -5
View File
@@ -13,7 +13,7 @@ intro: |
Getting started {.cols-3}
Getting started
---------------
### Getting started
@@ -526,7 +526,7 @@ Run algorithms (currently LCS) against strings
Redis Set command {.cols-3}
Redis Set command
------------
@@ -892,7 +892,7 @@ Add multiple sets and store the resulting set in a key
Redis List command {.cols-3}
Redis List command
------------
### Misc
@@ -1293,7 +1293,7 @@ Append an element to a list, only if the list exists
Redis Hash command {.cols-3}
Redis Hash command
------------
@@ -1552,7 +1552,7 @@ Get all the values in a hash
Redis Sorted set command {.cols-3}
Redis Sorted set command
------------
### BZPOPMIN
+5 -5
View File
@@ -13,7 +13,7 @@ intro: |
A quick reference for regular expressions (regex), including symbols, ranges, grouping, assertions and some sample patterns to get you started.
---
Getting Started {.cols-3}
Getting Started
--------
### Introduction
@@ -477,7 +477,7 @@ M(?(?=.*?\bher\b)s|r)\.
requires lookaround for IF condition
RegEx in Python {.cols-3}
RegEx in Python
---------------
### Getting started
@@ -572,7 +572,7 @@ False
Regex in JavaScript {.cols-3}
Regex in JavaScript
---------------
### test()
@@ -683,7 +683,7 @@ console.log(result);
Regex in PHP {.cols-3}
Regex in PHP
------------
### Functions {.col-span-2}
@@ -764,7 +764,7 @@ print_r(preg_split($regex, $str));
```
Regex in Java {.cols-3}
Regex in Java
-------------
+1 -1
View File
@@ -50,7 +50,7 @@ Getting started {.cols-2}
- [JPEG](https://tableconvert.com/html-to-jpeg?data=https://quickref.me/resolutions#TableGenerator)
{.cols-4 .marker-none}
Lists of Resolutions
Lists of Resolutions {.cols-1}
-------------------
### Mobile Phones
+7 -7
View File
@@ -11,7 +11,7 @@ intro: |
---
Getting Started {.cols-3}
Getting Started
---------------
### Hello_World.rs
@@ -133,7 +133,7 @@ See: [Functions](#rust-functions)
Rust Types {.cols-3}
Rust Types
--------------
@@ -259,7 +259,7 @@ let tuple = (1, 'A' , "Cool", 78, true);
Rust Strings {.cols-3}
Rust Strings
--------------
### String Literal
@@ -324,7 +324,7 @@ println!("{hi}");
Rust Operators {.cols-3}
Rust Operators
-----------
@@ -443,7 +443,7 @@ let mut l = k;
Rust Flow Control {.cols-3}
Rust Flow Control
--------------
### If Expression
@@ -636,7 +636,7 @@ for (v, c) in (0..10+1).enumerate(){
Rust Functions {.cols-3}
Rust Functions
--------------
@@ -749,7 +749,7 @@ fn multiply (mut arr: [i32 ; 5]) -> [i32 ; 5]{
Misc {.cols-3}
Misc
--------------
+4 -4
View File
@@ -11,7 +11,7 @@ intro: |
This is a quick reference cheat sheet that lists the most useful features of [SASS](https://sass-lang.com).
---
Sass Basics {.cols-3}
Sass Basics
--------
### Introduction
@@ -124,7 +124,7 @@ text: {
The `.sass` or `.sass` extension is optional.
Sass Mixins {.cols-3}
Sass Mixins
------
@@ -341,7 +341,7 @@ feature-exists(global-variable-shadowing)
* units-level-3
* at-error
Sass Loops {.cols-3}
Sass Loops
--------
### For loops
@@ -386,7 +386,7 @@ $i: 6;
}
```
Sass Other features {.cols-3}
Sass Other features
--------
### Conditionals {.row-span-2}
+1 -1
View File
@@ -13,7 +13,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
---------------
### Getting started
+3 -3
View File
@@ -14,7 +14,7 @@ intro: |
[Sed](https://www.gnu.org/software/sed/manual/sed.html) is a stream editor, this sed cheat sheet contains sed commands and some common sed tricks.
---
Getting started {.cols-3}
Getting started
---------------
### Sed Usage
@@ -79,7 +79,7 @@ See: [Sed examples](#sed-examples)
Sed commands {.cols-3}
Sed commands
-----------
### Commands {.col-span-2}
@@ -151,7 +151,7 @@ $ sed 's/old/new/[flags]' [input-file]
Sed examples {.cols-3}
Sed examples
----------
+1 -1
View File
@@ -14,7 +14,7 @@ intro: |
This quick reference cheat sheet provides various for using SSH.
---
Getting started {.cols-3}
Getting started
---------------
### Connecting
+3 -3
View File
@@ -15,7 +15,7 @@ intro: |
Tmux CLI {.cols-3}
Tmux CLI
-------
### New session {.row-span-2}
@@ -92,7 +92,7 @@ Mainly works like selecting text in [Vim](/vim#motions)
Tmux shortcuts {.cols-3}
Tmux shortcuts
--------------
### Getting started {.secondary}
@@ -159,7 +159,7 @@ $ tmux info
Tmux Command Mode {.cols-3}
Tmux Command Mode
-----------
### Usage {.secondary}
+3 -3
View File
@@ -13,7 +13,7 @@ intro: |
---
Getting started {.cols-3}
Getting started
---------------
### Introduction
@@ -125,7 +125,7 @@ array3 = [
TOML Strings {.cols-3}
TOML Strings
-----
@@ -164,7 +164,7 @@ is preserved.
TOML Tables {.cols-3}
TOML Tables
-----
### Basic
```toml
+7 -7
View File
@@ -15,7 +15,7 @@ intro: |
A useful collection of [Vim](http://www.vim.org/) 8.2 quick reference cheat sheets to help you learn vim editor faster.
---
Getting started {.cols-3}
Getting started
---------------
### Motion Diagrams {.row-span-2}
@@ -213,7 +213,7 @@ G gg H M L k j ▶ print("to")
You can save macro for any letters not just `i`
Vim Operators {.cols-3}
Vim Operators
---------
### Usage {.secondary}
@@ -281,7 +281,7 @@ Combine [operators](#available-operators) with [motions](#motions) to use them
Vim Text objects {.cols-3}
Vim Text objects
------------
### Usage {.secondary}
@@ -353,7 +353,7 @@ See `:help text-objects`
Vim Multiple files {.cols-3}
Vim Multiple files
-------------
@@ -422,7 +422,7 @@ Vim Multiple files {.cols-3}
Vim Search and Replace {.cols-3}
Vim Search and Replace
------------------
### Search
@@ -567,7 +567,7 @@ Vim Search and Replace {.cols-3}
Vimdiff {.cols-3}
Vimdiff
-------
@@ -632,7 +632,7 @@ See: [Ranges](#ranges)
Miscellaneous {.cols-3}
Miscellaneous
-------------
+1 -1
View File
@@ -13,7 +13,7 @@ intro: |
This quick reference cheat sheet lists the default keyboard shortcuts for WebStorm running on Windows/Linux or Mac
---
Webstorm Windows & Linux Keymap {.cols-3}
Webstorm Windows & Linux Keymap
--------
+2 -2
View File
@@ -107,7 +107,7 @@ $x('//a[text()="XPath"]')[0].click()
XPath Expressions {.cols-3}
XPath Expressions
-----------
### Steps and axes {.secondary}
@@ -140,7 +140,7 @@ XPath Expressions {.cols-3}
XPath Predicates {.cols-3}
XPath Predicates
----------
### Predicates
+3 -3
View File
@@ -12,7 +12,7 @@ intro: |
This is a quick reference cheat sheet for understanding and writing YAML format configuration files.
---
Getting started {.cols-3}
Getting started
---------------
@@ -177,7 +177,7 @@ YAML uses `---` to separate directives from document content.
YAML Collections {.cols-3}
YAML Collections
-----------
### Sequence
@@ -369,7 +369,7 @@ ordered: !!omap
YAML Reference {.cols-3}
YAML Reference
--------------
### Terms
+1 -1
View File
@@ -5,7 +5,7 @@ intro: |
We appreciate your help in order to pay for the hosting fees and ensuring I can spend enough time to create and optimize the cheatsheet webpage.
---
Sponsor {.cols-3}
Sponsor
---------------
+1 -1
View File
@@ -42,7 +42,7 @@
<link rel="alternate" href="/atom.xml" title="<%- config.title %>" type="application/atom+xml"/>
<!-- font -->
<link rel="preload" href="/font/iconfont.woff2?1641177301" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/font/iconfont.woff2?1668928635" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="/font/iconfont.css">
<!-- styles -->
+1 -1
View File
@@ -92,7 +92,7 @@ html.scrollbar {
}
/** Grid layout. */
.mdLayout .h2-wrap > .h3-wrap-list { @apply flex flex-col lg:grid lg:gap-7; }
.mdLayout .h2-wrap > .h3-wrap-list { @apply flex flex-col lg:grid lg:grid-cols-3 lg:gap-7; }
.mdLayout .h2-wrap.cols-1 > .h3-wrap-list { @apply lg:grid-cols-1; }
.mdLayout .h2-wrap.cols-2 > .h3-wrap-list { @apply lg:grid-cols-2; }
.mdLayout .h2-wrap.cols-3 > .h3-wrap-list { @apply lg:grid-cols-3; }
+7 -3
View File
@@ -1,8 +1,8 @@
@font-face {
font-family: "icon"; /* Project id 2226430 */
src: url('iconfont.woff2?1641177301') format('woff2'),
url('iconfont.woff?1641177301') format('woff'),
url('iconfont.ttf?1641177301') format('truetype');
src: url('//at.alicdn.com/t/c/font_2226430_2mo75parafn.woff2?1668928635') format('woff2'),
url('//at.alicdn.com/t/c/font_2226430_2mo75parafn.woff?1668928635') format('woff'),
url('//at.alicdn.com/t/c/font_2226430_2mo75parafn.ttf?1668928635') format('truetype');
}
.icon {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-star:before {
content: "\f0d4";
}
.icon-rust:before {
content: "\e685";
}
Binary file not shown.
Binary file not shown.
Binary file not shown.