Merge branch 'main' into chatgpt

This commit is contained in:
S-JZR authored and GitHub committed 2025-08-30 00:34:56 +10:00
commit 17f4796d55
212 files changed
+25368 -3817

No files matched your search

+24 -6
View File
@@ -4,12 +4,14 @@ date: 2024-03-20 12:00:00
icon: icon-alpine
background: bg-blue-600
tags:
- linux
- server
- container
- linux
- server
- container
categories:
- Operating System
intro: A comprehensive cheatsheet for Alpine Linux, covering package management, system administration, networking, and more. Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
- Operating System
intro:
A comprehensive cheatsheet for Alpine Linux, covering package management, system administration, networking, and more.
Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
---
# Alpine Linux Cheatsheet
@@ -17,6 +19,7 @@ intro: A comprehensive cheatsheet for Alpine Linux, covering package management,
## Package Management (apk)
### Basic Package Operations
```bash
# Update package index
apk update
@@ -41,6 +44,7 @@ apk list --installed
```
### Advanced Package Operations
```bash
# Add package from testing repository
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing <package-name>
@@ -55,6 +59,7 @@ apk cache clean
## System Administration
### Service Management (OpenRC)
```bash
# Start a service
rc-service <service-name> start
@@ -76,6 +81,7 @@ rc-status
```
### System Information
```bash
# Show system information
uname -a
@@ -94,6 +100,7 @@ uptime
```
### Network Configuration
```bash
# Show network interfaces
ip addr show
@@ -112,6 +119,7 @@ vi /etc/network/interfaces
```
### User Management
```bash
# Add a new user
adduser <username>
@@ -132,6 +140,7 @@ cat /etc/passwd
## File System Operations
### Basic File Operations
```bash
# Create directory
mkdir <directory-name>
@@ -155,6 +164,7 @@ chown <user>:<group> <file>
## Container Operations
### Docker Support
```bash
# Install Docker
apk add docker
@@ -169,6 +179,7 @@ rc-update add docker default
## System Maintenance
### Disk Operations
```bash
# Check disk space
df -h
@@ -184,6 +195,7 @@ umount /mnt/<mountpoint>
```
### Backup and Restore
```bash
# Create tar archive
tar -czf backup.tar.gz /path/to/backup
@@ -198,6 +210,7 @@ lbu package /media/backup.apkovl.tar.gz
## Tips and Tricks
### Common Configuration Files
- `/etc/apk/repositories` - Package repositories
- `/etc/network/interfaces` - Network configuration
- `/etc/hostname` - System hostname
@@ -205,6 +218,7 @@ lbu package /media/backup.apkovl.tar.gz
- `/etc/resolv.conf` - DNS configuration
### Environment Variables
```bash
# Set environment variable
export VARIABLE=value
@@ -217,6 +231,7 @@ echo "export VARIABLE=value" >> ~/.profile
```
### System Logs
```bash
# View system logs
less /var/log/messages
@@ -231,6 +246,7 @@ tail -f /var/log/messages
## Security
### Firewall (using iptables)
```bash
# Install iptables
apk add iptables
@@ -246,6 +262,7 @@ iptables -A INPUT -p tcp --dport 22 -j ACCEPT
```
### SSH Configuration
```bash
# Generate SSH key
ssh-keygen -t rsa -b 4096
@@ -260,6 +277,7 @@ vi /etc/ssh/sshd_config
## Troubleshooting
### Common Commands
```bash
# Check system logs for errors
dmesg | grep -i error
@@ -275,4 +293,4 @@ netstat -tuln
# Check disk health
smartctl -a /dev/sda # Requires smartmontools package
```
```
+3 -3
View File
@@ -3,8 +3,7 @@ title: Arduino Programming
date: 2024-05-29 8:58:31
background: bg-[#387f83]
label:
tags: -cpp
-I/O
tags: -cpp -I/O
categories:
- Programming
intro: |
@@ -42,7 +41,8 @@ plugins:
- Select the Port:
- Go to Tools > Port and select the port that the Arduino is connected to (it usually shows as COMx on Windows, /dev/cu.usbmodemxxxx on macOS, and /dev/ttyUSBx on Linux).
- Go to Tools > Port and select the port that the Arduino is connected to (it usually shows as COMx on Windows,
/dev/cu.usbmodemxxxx on macOS, and /dev/ttyUSBx on Linux).
## Basic Structure
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Aspect Ratio
date: 2022-09-21 10:28:43
background: bg-emerald-600
background: bg-indigo-600
tags:
- photo
- image
+31 -22
View File
@@ -515,26 +515,6 @@ for i in {5..50..5}; do
done
```
### Auto increment
```bash
i=1
while [[ $i -lt 4 ]]; do
echo "Number: $i"
((i++))
done
```
### Auto decrement
```bash
i=3
while [[ $i -gt 0 ]]; do
echo "Number: $i"
((i--))
done
```
### Continue
```bash {data=3,5}
@@ -569,6 +549,35 @@ until [ $count -gt 10 ]; do
done
```
### While with increment
```bash
i=1
while [[ $i -lt 4 ]]; do
echo "Number: $i"
((i++))
done
```
### While with decrement
```bash
i=3
while [[ $i -gt 0 ]]; do
echo "Number: $i"
((i--))
done
```
#### Combined with test
```bash
i=3
while ((i--)); do
echo "Number: $i"
done
```
### Forever
```bash
@@ -588,9 +597,9 @@ done
### Reading lines
```bash
cat file.txt | while read line; do
while read line; do
echo $line
done
done < file.txt
```
## Bash Functions
+243 -238
View File
@@ -1,238 +1,243 @@
---
title: HTML Canvas
date: 2024-05-28 22:16:42
background: bg-[#cc5534]
tags:
- web
categories:
- Programming
intro: |
This HTML Canvas quick reference cheat sheet lists the common HTML5 Canvas design tags in readable layout.
plugins:
- copyCode
- runCode
---
## Getting Started
### Basic Setup
```html
<!DOCTYPE html>
<html>
<head>
<title>Canvas Example</title>
</head>
<body>
<canvas id="myCanvas" width="500" height="400" style="border:1px solid #000000;"></canvas>
<script src="script.js"></script>
</body>
</html>
```
### Getting the Context
```js
const canvas = document.getElementById("myCanvas");
const ctx = canvas.getContext("2d");
```
## Drawing Shapes
### Rectangles
```js
ctx.fillStyle = "red";
ctx.fillRect(10, 10, 150, 100); // x, y, width, height
ctx.strokeStyle = "blue";
ctx.lineWidth = 5;
ctx.strokeRect(200, 10, 150, 100); // x, y, width, height
ctx.clearRect(15, 15, 30, 30); // x, y, width, height
```
## Paths
### Lines
```js
ctx.beginPath();
ctx.moveTo(50, 50); // Starting point
ctx.lineTo(200, 50); // Ending point
ctx.lineTo(200, 200); // Next line ending point
ctx.closePath(); // Connects the end point to the start point
ctx.stroke();
```
### Circles
```js
ctx.beginPath();
ctx.arc(150, 150, 75, 0, 2 * Math.PI); // x, y, radius, startAngle, endAngle
ctx.fillStyle = "green";
ctx.fill();
ctx.stroke();
```
### Arcs
```js
ctx.beginPath();
ctx.arc(150, 150, 75, 0, Math.PI); // x, y, radius, startAngle, endAngle
ctx.stroke();
```
## Bezier and Quadratic Curves
### Quadratic Curve
```js
ctx.beginPath();
ctx.moveTo(50, 250);
ctx.quadraticCurveTo(200, 100, 400, 250); // cpX, cpY, endX, endY
ctx.stroke();
```
### Bezier Curve
```js
ctx.beginPath();
ctx.moveTo(50, 300);
ctx.bezierCurveTo(150, 100, 350, 500, 450, 300); // cp1X, cp1Y, cp2X, cp2Y, endX, endY
ctx.stroke();
```
### Text
```js
ctx.font = "30px Arial";
ctx.fillStyle = "black";
ctx.fillText("Hello Canvas", 10, 50); // text, x, y
ctx.strokeText("Hello Canvas", 10, 100); // text, x, y
```
### Images
```js
const img = new Image();
img.src = "path/to/image.jpg";
img.onload = () => {
ctx.drawImage(img, 10, 10); // img, x, y
ctx.drawImage(img, 50, 50, 100, 100); // img, x, y, width, height
ctx.drawImage(img, 100, 100, 100, 100, 150, 150, 200, 200); // img, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight
};
```
## Transformations
### Translation
```js
ctx.translate(100, 100); // x, y
ctx.fillRect(0, 0, 50, 50);
```
### Rotation
```js
ctx.rotate((Math.PI / 180) * 45); // Angle in radians
ctx.fillRect(100, 100, 50, 50);
```
### Scaling
```js
ctx.scale(2, 2); // x, y
ctx.fillRect(50, 50, 50, 50);
```
## Gradients
### Linear Gradient
```js
const linearGradient = ctx.createLinearGradient(0, 0, 200, 0); // x0, y0, x1, y1
linearGradient.addColorStop(0, "red");
linearGradient.addColorStop(1, "blue");
ctx.fillStyle = linearGradient;
ctx.fillRect(10, 10, 200, 100);
```
### Radial Gradient
```js
const radialGradient = ctx.createRadialGradient(75, 50, 5, 90, 60, 100); // x0, y0, r0, x1, y1, r1
radialGradient.addColorStop(0, "red");
radialGradient.addColorStop(1, "blue");
ctx.fillStyle = radialGradient;
ctx.fillRect(10, 10, 200, 100);
```
### Patterns
```js
const img = new Image();
img.src = "path/to/image.jpg";
img.onload = () => {
const pattern = ctx.createPattern(img, "repeat"); // 'repeat', 'repeat-x', 'repeat-y', 'no-repeat'
ctx.fillStyle = pattern;
ctx.fillRect(0, 0, 300, 300);
};
```
### Shadows
```js
ctx.shadowColor = "rgba(0, 0, 0, 0.5)";
ctx.shadowBlur = 10;
ctx.shadowOffsetX = 5;
ctx.shadowOffsetY = 5;
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
```
## Compositing
### Global Alpha
```js
ctx.globalAlpha = 0.5;
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
ctx.fillStyle = "blue";
ctx.fillRect(150, 150, 100, 100);
```
### Global Composite Operation
```js
ctx.globalCompositeOperation = "source-over"; // Default
ctx.fillStyle = "red";
ctx.fillRect(100, 100, 100, 100);
ctx.globalCompositeOperation = "destination-over";
ctx.fillStyle = "blue";
ctx.fillRect(150, 150, 100, 100);
```
### Animations
```js
let x = 0;
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "blue";
ctx.fillRect(x, 100, 50, 50);
x += 2;
requestAnimationFrame(draw);
}
draw();
```
## Also read
- [MDN doc ](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)
---
title: HTML Canvas
date: 2024-05-28 22:16:42
background: bg-[#cc5534]
tags:
- web
categories:
- Programming
intro: |
This HTML Canvas quick reference cheat sheet lists the common HTML5 Canvas design tags in readable layout.
plugins:
- copyCode
- runCode
---
## Getting Started
### Basic Setup
```html
<!DOCTYPE html>
<html>
<head>
<title>Canvas Example</title>
</head>
<body>
<canvas
id="myCanvas"
width="500"
height="400"
style="border:1px solid #000000;"
></canvas>
<script src="script.js"></script>
</body>
</html>
```
### Getting the Context
```js
const canvas = document.getElementById('myCanvas');
const ctx = canvas.getContext('2d');
```
## Drawing Shapes
### Rectangles
```js
ctx.fillStyle = 'red';
ctx.fillRect(10, 10, 150, 100); // x, y, width, height
ctx.strokeStyle = 'blue';
ctx.lineWidth = 5;
ctx.strokeRect(200, 10, 150, 100); // x, y, width, height
ctx.clearRect(15, 15, 30, 30); // x, y, width, height
```
## Paths
### Lines
```js
ctx.beginPath();
ctx.moveTo(50, 50); // Starting point
ctx.lineTo(200, 50); // Ending point
ctx.lineTo(200, 200); // Next line ending point
ctx.closePath(); // Connects the end point to the start point
ctx.stroke();
```
### Circles
```js
ctx.beginPath();
ctx.arc(150, 150, 75, 0, 2 * Math.PI); // x, y, radius, startAngle, endAngle
ctx.fillStyle = 'green';
ctx.fill();
ctx.stroke();
```
### Arcs
```js
ctx.beginPath();
ctx.arc(150, 150, 75, 0, Math.PI); // x, y, radius, startAngle, endAngle
ctx.stroke();
```
## Bezier and Quadratic Curves
### Quadratic Curve
```js
ctx.beginPath();
ctx.moveTo(50, 250);
ctx.quadraticCurveTo(200, 100, 400, 250); // cpX, cpY, endX, endY
ctx.stroke();
```
### Bezier Curve
```js
ctx.beginPath();
ctx.moveTo(50, 300);
ctx.bezierCurveTo(150, 100, 350, 500, 450, 300); // cp1X, cp1Y, cp2X, cp2Y, endX, endY
ctx.stroke();
```
### Text
```js
ctx.font = '30px Arial';
ctx.fillStyle = 'black';
ctx.fillText('Hello Canvas', 10, 50); // text, x, y
ctx.strokeText('Hello Canvas', 10, 100); // text, x, y
```
### Images
```js
const img = new Image();
img.src = 'path/to/image.jpg';
img.onload = () => {
ctx.drawImage(img, 10, 10); // img, x, y
ctx.drawImage(img, 50, 50, 100, 100); // img, x, y, width, height
ctx.drawImage(img, 100, 100, 100, 100, 150, 150, 200, 200); // img, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight
};
```
## Transformations
### Translation
```js
ctx.translate(100, 100); // x, y
ctx.fillRect(0, 0, 50, 50);
```
### Rotation
```js
ctx.rotate((Math.PI / 180) * 45); // Angle in radians
ctx.fillRect(100, 100, 50, 50);
```
### Scaling
```js
ctx.scale(2, 2); // x, y
ctx.fillRect(50, 50, 50, 50);
```
## Gradients
### Linear Gradient
```js
const linearGradient = ctx.createLinearGradient(0, 0, 200, 0); // x0, y0, x1, y1
linearGradient.addColorStop(0, 'red');
linearGradient.addColorStop(1, 'blue');
ctx.fillStyle = linearGradient;
ctx.fillRect(10, 10, 200, 100);
```
### Radial Gradient
```js
const radialGradient = ctx.createRadialGradient(75, 50, 5, 90, 60, 100); // x0, y0, r0, x1, y1, r1
radialGradient.addColorStop(0, 'red');
radialGradient.addColorStop(1, 'blue');
ctx.fillStyle = radialGradient;
ctx.fillRect(10, 10, 200, 100);
```
### Patterns
```js
const img = new Image();
img.src = 'path/to/image.jpg';
img.onload = () => {
const pattern = ctx.createPattern(img, 'repeat'); // 'repeat', 'repeat-x', 'repeat-y', 'no-repeat'
ctx.fillStyle = pattern;
ctx.fillRect(0, 0, 300, 300);
};
```
### Shadows
```js
ctx.shadowColor = 'rgba(0, 0, 0, 0.5)';
ctx.shadowBlur = 10;
ctx.shadowOffsetX = 5;
ctx.shadowOffsetY = 5;
ctx.fillStyle = 'red';
ctx.fillRect(100, 100, 100, 100);
```
## Compositing
### Global Alpha
```js
ctx.globalAlpha = 0.5;
ctx.fillStyle = 'red';
ctx.fillRect(100, 100, 100, 100);
ctx.fillStyle = 'blue';
ctx.fillRect(150, 150, 100, 100);
```
### Global Composite Operation
```js
ctx.globalCompositeOperation = 'source-over'; // Default
ctx.fillStyle = 'red';
ctx.fillRect(100, 100, 100, 100);
ctx.globalCompositeOperation = 'destination-over';
ctx.fillStyle = 'blue';
ctx.fillRect(150, 150, 100, 100);
```
### Animations
```js
let x = 0;
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = 'blue';
ctx.fillRect(x, 100, 50, 50);
x += 2;
requestAnimationFrame(draw);
}
draw();
```
## Also read
- [MDN doc ](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)
+1 -1
View File
@@ -1014,4 +1014,4 @@ Scenario:
em { font-size: 0.785em; }
strong {font-weight: 400;}
ul.collapsible > li > pre { padding-left: 0; padding-right: 0; font-size: 0.925em;}
</style>
</style>
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Chmod
date: 2021-07-01 10:51:44
background: bg-emerald-600
background: bg-indigo-600
tags:
- permission
categories:
+61
View File
@@ -0,0 +1,61 @@
---
title: Color Picker
date: 2025-07-01 18:28:43
background: bg-[#2a6387]
tags:
- html
- color
categories:
- Toolkit
intro: The Color Picker cheat sheet provides you basic color info and choices
plugins:
- copyCode
---
## Getting Started
### Color Basics {.col-span-3}
| **Category** | **Description** |
|:---------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Color Models** | **RGB**: Red, Green, Blue – additive model used in screens. <br> **HEX**: Hexadecimal color codes, e.g., #FFFFFF. <br> **HSL**: Hue, Saturation, Lightness – intuitive for color adjustments. <br> **HSV**: Hue, Saturation, Value – similar to HSL but with different brightness handling. |
| **Color Terminology** | **Saturation**: Intensity or purity of a color. <br> **Hue**: The color type (e.g., red, blue). <br> **Lightness**: Brightness or darkness of a color. <br> **Opacity**: Transparency level of a color, often defined as alpha in RGBA. |
| **Color Representation Formats** | **HEX**: `#RRGGBB` or `#RRGGBBAA` (with alpha). <br> **RGB**: `rgb(255, 255, 255)` <br> **RGBA**: `rgba(255, 255, 255, 0.5)` <br> **HSL**: `hsl(120, 100%, 50%)` <br> **HSLA**: `hsla(120, 100%, 50%, 0.5)` |
### Main Frameworks {.col-span-3}
| **Framework** | **Color Notation / Syntax** | **Description** | **Documentation Link** |
|:-----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:-------------------------------------------------------------------------------------------|
| **CSS** | `color: red;` <br> `color: #ff0000;` <br> `color: rgb(255, 0, 0);` <br> `color: rgba(255, 0, 0, 0.5);` <br> `color: hsl(0, 100%, 50%);` <br> `color: hsla(0, 100%, 50%, 0.5);` | Standard CSS color properties and formats. | [CSS Color Documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/color) |
| **SASS/SCSS** | `$color: #ff0000;` <br> `color: $color;` | Variables for colors, can use same formats as CSS. | [SASS Color Documentation](https://sass-lang.com/documentation/values/colors) |
| **Tailwind CSS** | `class="bg-red-500"` <br> `class="text-green-300"` | Utility classes with predefined color shades. | [Tailwind CSS Colors](https://tailwindcss.com/docs/customizing-colors) |
| **Bootstrap** | `class="text-primary"` <br> `class="bg-success"` | Named color classes for quick styling. | [Bootstrap Colors](https://getbootstrap.com/docs/5.0/getting-started/introduction/#colors) |
| **Material UI** | `style={{ color: 'primary' }}` or theme palette | Uses theme palette, can override with specific color codes. | [Material UI Color](https://mui.com/customization/color/) |
## Color Palette
### Tailwind Palette {.col-span-3}
<widget name="color-palette-tailwind"/>
## Gradient CSS
### Gradient Maker {.col-span-3}
<widget name="gradient-maker"/>
| Parameter | Description | Example |
|:--------------|:----------------------------------|:-----------------------------------------------|
| **to right** | Gradient goes from left to right | `linear-gradient(to right, #ff7e5f, #feb47b)` |
| **to left** | Gradient goes from right to left | `linear-gradient(to left, #ff7e5f, #feb47b)` |
| **to bottom** | Gradient goes from top to bottom | `linear-gradient(to bottom, #ff7e5f, #feb47b)` |
| **to top** | Gradient goes from bottom to top | `linear-gradient(to top, #ff7e5f, #feb47b)` |
| **deg** | Specify an angle in degrees | `linear-gradient(45deg, ...)` |
+20 -14
View File
@@ -51,20 +51,26 @@ Min Hour Day Mon Weekday
### Examples
| Example | Description |
| -------------- | ------------------------------------------------ |
| `*/15 * * * *` | Every 15 mins |
| `0 * * * *` | Every hour |
| `0 */2 * * *` | Every 2 hours |
| `15 2 * * *` | At 2:15AM of every day |
| `15 2 * * ?` | At 2:15AM of every day |
| `10 9 * * 5` | At 9:10AM of every Friday |
| `0 0 * * 0` | At midnight of every Sunday |
| `15 2 * * 1L` | At 2:15am on the last monday of every month |
| `15 0 * * 4#2` | At 00:15am on the second thursday of every month |
| `0 0 1 * *` | Every 1st of month (monthly) |
| `0 0 1 1 *` | Every 1st of january (yearly) |
| `@reboot` | Every reboot <br>_(non-standard)_ |
| Example | Description |
| -------------- |--------------------------------------------------------------------|
| `*/15 * * * *` | Every 15 mins |
| `0 * * * *` | Every hour |
| `0 */2 * * *` | Every 2 hours |
| `15 2 * * *` | At 2:15AM (of every day) |
| `15 2 * * ?` | At 2:15AM (of every day) |
| `10 9 * * 5` | At 9:10AM (of every Friday) |
| `0 0 * * 0` | At 12:00 AM, only on Sunday |
| `15 2 * * 1L` | At 2:15am on the last monday of every month |
| `15 0 * * 4#2` | At 00:15am on the second thursday of every month |
| `0 0 1 * *` | At 12:00 AM, on day 1 of the month (1st of month / monthly) |
| `0 0 1 1 *` | At 12:00 AM, on day 1 of the month, only in January (1st of month) |
| `@reboot` | Every reboot <br>_(non-standard)_ |
### Cron Generator {.col-span-3}
<widget name="cron"/>
### Special strings
+5 -5
View File
@@ -221,11 +221,11 @@ lengthOfString.Contains("How"); // => true
### General .NET Terms {.col-span-2}
| Term | Definition |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Runtime | A collection of services that are required to execute a given compiled unit of code. |
| Term | Definition |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Runtime | A collection of services that are required to execute a given compiled unit of code. |
| Common Language Runtime (CLR) | Primarily locates, loads, and managed .NET objects. The CLR also handles memory management, application hosting, coordination of threads, performing security checks, and other low-level details. |
| Managed code | Code that compiles and runs on .NET runtime. C#/F#/VB are examples. |
| Unmanaged code | Code that compiles straight to machine code and cannot be directly hosted by the .NET runtime. Contains no free memory management, garbage collection, etc. DLLs created from C/C++ are examples. |
| Managed code | Code that compiles and runs on .NET runtime. C#/F#/VB are examples. |
| Unmanaged code | Code that compiles straight to machine code and cannot be directly hosted by the .NET runtime. Contains no free memory management, garbage collection, etc. DLLs created from C/C++ are examples. |
{.show-header}
+17 -12
View File
@@ -49,7 +49,7 @@ CSS is rich in capabilities and is more than simply laying out pages.
```html
<div class="classname"></div>
<div class="class1 ... classn"></div>
<div class="class1 classn ..."></div>
```
Support multiple classes on one element.
@@ -94,8 +94,8 @@ See: [Colors](#css-colors)
```css
background-color: blue;
background-image: url("nyan-cat.gif");
background-image: url("../image.png");
background-image: url('nyan-cat.gif');
background-image: url('../image.png');
```
See: [Backgrounds](#css-backgrounds)
@@ -106,7 +106,7 @@ See: [Backgrounds](#css-backgrounds)
.page-title {
font-weight: bold;
font-size: 30px;
font-family: "Courier New";
font-family: 'Courier New';
}
```
@@ -216,7 +216,7 @@ h3.section-heading {
#### Attribute Selector
```css
div[attribute="SomeValue"] {
div[attribute='SomeValue'] {
background-color: red;
}
```
@@ -395,8 +395,8 @@ text-transform: lowercase;
```css
@font-face {
font-family: "Glegoo";
src: url("../Glegoo.woff");
font-family: 'Glegoo';
src: url('../Glegoo.woff');
}
```
@@ -484,7 +484,12 @@ background:
url(paper.gif) left top repeat;
background: rgb(2, 0, 36);
background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(13, 232, 230, 1) 35%, rgba(0, 212, 255, 1) 100%);
background: linear-gradient(
90deg,
rgba(2, 0, 36, 1) 0%,
rgba(13, 232, 230, 1) 35%,
rgba(0, 212, 255, 1) 100%
);
```
## CSS The Box Model
@@ -914,8 +919,8 @@ Any legal length value, like px or %. 0 is the default value
.grid-container {
display: grid;
grid-template-areas:
"nav nav . ."
"nav nav . .";
'nav nav . .'
'nav nav . .';
}
```
@@ -1003,7 +1008,7 @@ body {
h3::before {
counter-increment: section;
content: "Section." counter(section);
content: 'Section.' counter(section);
}
```
@@ -1015,7 +1020,7 @@ ol {
li::before {
counter-increment: section;
content: counters(section, ".") " ";
content: counters(section, '.') ' ';
}
```
+4 -6
View File
@@ -89,6 +89,7 @@ print(upperCase); //Print: NICOLA
/* Comments like these are also supported. */
```
### multiline String
```dart
@@ -99,7 +100,6 @@ print('''My long string''');
//this will help for only long strings
```
### Imports
```dart
@@ -227,7 +227,6 @@ for(var number in numbers){
}
```
### for in loop
```dart
@@ -248,7 +247,6 @@ for(var number in numbers){
}
```
## Collections {.cols-2}
### Lists
@@ -286,7 +284,7 @@ Set<String> names = {}; // This works, too.
// a map is an object that associates keys and values
var person = Map<String, String>();
// To initialize the map, do this:
person['lastName'] = 'Tesla';
print(person); //Print: {firstName: Nicola, lastName: Tesla}
@@ -664,7 +662,9 @@ userObject?.userName?.toString()
// The preceeding code returns null and never calls toString() if either userObject or userObject.userName is null
```
### enum in dart
```dart
defination: An enum (short for "enumeration") is a special data type that enables a variable to be a set of predefined constants. Enums are used to define variables that can only take one out of a small set of possible values. They help make code more readable and less error-prone by providing meaningful names to these sets of values.
@@ -700,5 +700,3 @@ void main() {
```
+10 -7
View File
@@ -255,8 +255,10 @@ class Customer(models.Model)
#### To access the ChoiceField value in the template, we need to do the following in the template:
- In Django templates you can use the "`get_FOO_display()`" method, that will return the readable alias for the field, where `'FOO'` is the name of the field.
- If the choices are stored in the variable `CHOICES` and the model field storing the selected choice is `'type'` then you can directly use
- In Django templates you can use the "`get_FOO_display()`" method, that will return the readable alias for the field,
where `'FOO'` is the name of the field.
- If the choices are stored in the variable `CHOICES` and the model field storing the selected choice is `'type'` then
you can directly use
```html
<!-- Here, X is the model instance -->
@@ -891,9 +893,8 @@ class ArticleForm(ModelForm):
```html
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">{% trans 'Submit' %}</button>
{% csrf_token %} {{ form.as_p }}
<button type="submit">{% trans 'Submit' %}</button>
</form>
```
@@ -955,7 +956,8 @@ messages.error(request, 'Login error')
```html
<!-- Display flash messages in template -->
{% if messages %} {% for message in messages %} {% message %} {% message.tags %} {% endfor %} {% endif %}
{% if messages %} {% for message in messages %} {% message %} {% message.tags %}
{% endfor %} {% endif %}
```
## User Model
@@ -1086,7 +1088,8 @@ urlpatterns += path('', include('django.contrib.auth.urls'))
<a href="{% url 'logout' %}">Logout</a>
<!-- Check if user login -->
{% if request.user.is_authenticated %} Logged in as: {{ request.user.username }} {% endif %}
{% if request.user.is_authenticated %} Logged in as: {{ request.user.username }}
{% endif %}
```
#### Authorization: LoginRequiredMixin and login_required
+16 -17
View File
@@ -8,8 +8,7 @@ tags:
- Framework
categories:
- Programming
intro:
EJS(Embedded JavaScript) is a simple templating language that lets you generate HTML markup with plain JavaScript.
intro: EJS(Embedded JavaScript) is a simple templating language that lets you generate HTML markup with plain JavaScript.
plugins:
- copyCode
- runCode
@@ -45,9 +44,9 @@ $ ejs hello.ejs -o hello.html
### Render with Data
```js
let ejs = require("ejs");
let ejs = require('ejs');
let people = ["geddy", "neil", "alex"];
let people = ['geddy', 'neil', 'alex'];
let tpl = '<%= people.join(", "); %>';
let html = ejs.render(tpl, { people: people });
@@ -61,7 +60,7 @@ Pass EJS a template string and some data.
```html
<script src="https://unpkg.com/ejs"></script>
<script>
let people = ["geddy", "neil", "alex"];
let people = ['geddy', 'neil', 'alex'];
let html = ejs.render('<%= people.join(", "); %>', { people: people });
console.log(html);
</script>
@@ -110,7 +109,7 @@ $ ejs hello.ejs -f data.json -o hello.html
### Method {.col-span-2}
```js
let ejs = require("ejs");
let ejs = require('ejs');
let template = ejs.compile(str, options);
template(data);
@@ -176,15 +175,15 @@ To include a template, needs a file name option, paths are relative
### Custom delimiters
```js
let ejs = require("ejs"),
users = ["geddy", "neil", "alex"];
let ejs = require('ejs'),
users = ['geddy', 'neil', 'alex'];
// Just one template
ejs.render('<?= users.join(" | "); ?>', { users: users }, { delimiter: "?" });
ejs.render('<?= users.join(" | "); ?>', { users: users }, { delimiter: '?' });
// => 'geddy | neil | alex'
// Or globally
ejs.delimiter = "$";
ejs.delimiter = '$';
ejs.render('<$= users.join(" | "); $>', { users: users });
// => 'geddy | neil | alex'
```
@@ -192,8 +191,8 @@ ejs.render('<$= users.join(" | "); $>', { users: users });
### Caching
```js
let ejs = require("ejs"),
LRU = require("lru-cache");
let ejs = require('ejs'),
LRU = require('lru-cache');
// LRU cache with 100-item limit
ejs.cache = LRU(100);
@@ -202,9 +201,9 @@ ejs.cache = LRU(100);
### Custom file loader
```js
let ejs = require("ejs");
let ejs = require('ejs');
let myFileLoader = function (filePath) {
return "myFileLoader: " + fs.readFileSync(filePath);
return 'myFileLoader: ' + fs.readFileSync(filePath);
};
ejs.fileLoader = myFileLoader;
@@ -232,12 +231,12 @@ ejs.fileLoader = myFileLoader;
<div id="output"></div>
<script src="ejs.min.js"></script>
<script>
let people = ["geddy", "neil", "alex"],
let people = ['geddy', 'neil', 'alex'],
html = ejs.render('<%= people.join(", "); %>', { people: people });
// With jQuery:
$("#output").html(html);
$('#output').html(html);
// Vanilla JS:
document.getElementById("output").innerHTML = html;
document.getElementById('output').innerHTML = html;
</script>
```
+44 -44
View File
@@ -79,13 +79,13 @@ Same as: Math.pow(2, 8)
#### New string methods
```js
"hello".repeat(3);
"hello".includes("ll");
"hello".startsWith("he");
"hello".padStart(8); // "hello"
"hello".padEnd(8); // "hello"
"hello".padEnd(8, "!"); // hello!!!
"\u1E9B\u0323".normalize("NFC");
'hello'.repeat(3);
'hello'.includes('ll');
'hello'.startsWith('he');
'hello'.padStart(8); // "hello"
'hello'.padEnd(8); // "hello"
'hello'.padEnd(8, '!'); // hello!!!
'\u1E9B\u0323'.normalize('NFC');
```
#### New Number Methods
@@ -93,7 +93,7 @@ Same as: Math.pow(2, 8)
```js
Number.EPSILON;
Number.isInteger(Infinity); // false
Number.isNaN("NaN"); // false
Number.isNaN('NaN'); // false
```
#### New Math methods
@@ -108,7 +108,7 @@ Math.imul(Math.pow(2, 32) - 1, Math.pow(2, 32) - 2); // 2
```js
//return a real array
Array.from(document.querySelectorAll("*"));
Array.from(document.querySelectorAll('*'));
//similar to new Array(...), but without the special single-argument behavior
Array.of(1, 2, 3);
```
@@ -171,7 +171,7 @@ class Dog {
}
}
const dog = new Dog("putty");
const dog = new Dog('putty');
//console.log(this.#name)
//Private identifiers are not allowed outside class bodies.
dog.printName();
@@ -256,15 +256,15 @@ async function run () {
#### Arrays
```js {1}
const [first, last] = ["Nikola", "Tesla"];
const [first, last] = ['Nikola', 'Tesla'];
```
#### Objects
```js {1}
let { title, author } = {
title: "The Silkworm",
author: "R. Galbraith",
title: 'The Silkworm',
author: 'R. Galbraith'
};
```
@@ -297,7 +297,7 @@ function greet({ name, greeting }) {
---
```js
greet({ name: "Larry", greeting: "Ahoy" });
greet({ name: 'Larry', greeting: 'Ahoy' });
```
Destructuring of objects and arrays can also be done in function parameters
@@ -305,7 +305,7 @@ Destructuring of objects and arrays can also be done in function parameters
### Defaults
```js {1}
function greet({ name = "Rauno" } = {}) {
function greet({ name = 'Rauno' } = {}) {
console.log(`Hi ${name}!`);
}
```
@@ -314,7 +314,7 @@ function greet({ name = "Rauno" } = {}) {
```js
greet(); // Hi Rauno!
greet({ name: "Larry" }); // Hi Larry!
greet({ name: 'Larry' }); // Hi Larry!
```
### Reassign keys
@@ -360,7 +360,7 @@ Use the `rest(...)` operator to extract some keys individually and the rest of t
```js {2}
const options = {
...defaults,
visible: true,
visible: true
};
```
@@ -388,7 +388,7 @@ const users = [
#### No array expansion
```js
const users = admins.concat(editors).concat(["rstacruz"]);
const users = admins.concat(editors).concat(['rstacruz']);
```
The spread operator allows you to build new arrays in the same way. See:
@@ -401,7 +401,7 @@ The spread operator allows you to build new arrays in the same way. See:
#### Default parameters
```js {1}
function greet(name = "Jerry") {
function greet(name = 'Jerry') {
return `Hello ${name}`;
}
```
@@ -460,13 +460,13 @@ Like a function, but preserves `this`. See: [Arrow functions](https://babeljs.io
### Parameter setting default value
```js
function log(x, y = "World") {
function log(x, y = 'World') {
console.log(x, y);
}
log("Hello"); // Hello World
log("Hello", "China"); // Hello China
log("Hello", ""); // Hello
log('Hello'); // Hello World
log('Hello', 'China'); // Hello China
log('Hello', ''); // Hello
```
### Used in conjunction with destructuring assignment defaults
@@ -506,7 +506,7 @@ same below:
```js
module.exports = {
hello: hello,
bye: bye,
bye: bye
};
```
@@ -517,8 +517,8 @@ See: [Object Literals Enhanced](https://babeljs.io/learn-es2015/#enhanced-object
```js {2}
const App = {
start() {
console.log("running");
},
console.log('running');
}
};
//Same as: App = { start: function () {···} }
```
@@ -543,9 +543,9 @@ See: [Object Literals Enhanced](https://babeljs.io/learn-es2015/#enhanced-object
### Computed property name
```js {3}
let event = "click";
let event = 'click';
let handlers = {
[`on${event}`]: true,
[`on${event}`]: true
};
//Same as: handlers = { 'onclick': true }
```
@@ -567,35 +567,35 @@ Object.entries(fatherJS)
### Imports import
```js
import "helpers";
import 'helpers';
//aka: require('···')
```
---
```js
import Express from "express";
import Express from 'express';
//aka: const Express = require('···').default || require('···')
```
---
```js
import { indent } from "helpers";
import { indent } from 'helpers';
//aka: const indent = require('···').indent
```
---
```js
import * as Helpers from "helpers";
import * as Helpers from 'helpers';
//aka: const Helpers = require('···')
```
---
```js
import { indentSpaces as indent } from "helpers";
import { indentSpaces as indent } from 'helpers';
//aka: const indent = require('···').indentSpaces
```
@@ -625,8 +625,8 @@ export const pi = 3.14159;
---
```js
const firstName = "Michael";
const lastName = "Jackson";
const firstName = 'Michael';
const lastName = 'Jackson';
const year = 1958;
export { firstName, lastName, year };
```
@@ -634,7 +634,7 @@ export { firstName, lastName, year };
---
```js
export * from "lib/math";
export * from 'lib/math';
```
`export` is the new `module.exports`. See: [Module exports](https://babeljs.io/learn-es2015/#modules)
@@ -662,8 +662,8 @@ export {
### Dynamically load modules
```js
button.addEventListener("click", (event) => {
import("./dialogBox.js")
button.addEventListener('click', (event) => {
import('./dialogBox.js')
.then((dialogBox) => {
dialogBox.open();
})
@@ -678,7 +678,7 @@ button.addEventListener("click", (event) => {
### import() allows module paths to be dynamically generated
```js
const main = document.querySelector("main");
const main = document.querySelector('main');
import(`./modules/${someVariable}.js`)
.then((module) => {
@@ -695,7 +695,7 @@ import(`./modules/${someVariable}.js`)
which returns the meta information of the current module
```js
new URL("data.txt", import.meta.url);
new URL('data.txt', import.meta.url);
```
In the Node.js environment, `import.meta.url` always returns a local path, that is, a string of the `file:URL` protocol,
@@ -706,14 +706,14 @@ such as `file:/// home/user/foo.js`
#### static import
```js
import json from "./package.json" assert { type: "json" };
import json from './package.json' assert { type: 'json' };
//Import all objects in the json file
```
#### Dynamic Import
```js
const json = await import("./package.json", { assert: { type: "json" } });
const json = await import('./package.json', { assert: { type: 'json' } });
```
## Generators
@@ -751,9 +751,9 @@ let fibonacci = {
next() {
[pre, cur] = [cur, pre + cur];
return { done: false, value: cur };
},
}
};
},
}
};
for (var n of fibonacci) {
+42 -42
View File
@@ -34,11 +34,11 @@ plugins:
- Entry file `index.js` add code:
```js
const express = require("express");
const express = require('express');
const app = express();
const port = 3000;
app.get("/", (req, res) => {
res.send("Hello World!");
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
console.log(`Listening port on ${port}`);
@@ -103,7 +103,7 @@ $ DEBUG=myapp:*npm start
### Application
```js
var express = require("express");
var express = require('express');
var app = express();
console.dir(app.locals.title);
@@ -192,9 +192,9 @@ console.dir(app.locals.email);
### Response
```js
app.get("/", function (req, res) {
app.get('/', function (req, res) {
console.dir(res.headersSent); //false
res.send("OK");
res.send('OK');
console.dir(res.headersSent); //true
});
```
@@ -250,7 +250,7 @@ will handle any request ending in `/events`
```js
//depends on where the router "use()"
router.get("/events", (req, res, next) => {
router.get('/events', (req, res, next) => {
//..
});
```
@@ -260,8 +260,8 @@ router.get("/events", (req, res, next) => {
The `res` object represents the HTTP response sent by the `Express` application when it receives an HTTP request
```js
app.get("/user/:id", (req, res) => {
res.send("user" + req.params.id);
app.get('/user/:id', (req, res) => {
res.send('user' + req.params.id);
});
```
@@ -271,8 +271,8 @@ A `req` object represents an `HTTP` request and has properties for the request q
headers, etc.
```js
app.get("/user/:id", (req, res) => {
res.send("user" + req.params.id);
app.get('/user/:id', (req, res) => {
res.send('user' + req.params.id);
});
```
@@ -290,15 +290,15 @@ End the response process. This method actually comes from the Node core, specifi
```js
res.json(null);
res.json({ user: "tobi" });
res.status(500).json({ error: "message" });
res.json({ user: 'tobi' });
res.status(500).json({ error: 'message' });
```
### app.all
```js
app.all("/secret", function (req, res, next) {
console.log("access secret section...");
app.all('/secret', function (req, res, next) {
console.log('access secret section...');
next(); // Pass control to the next handler
});
```
@@ -306,43 +306,43 @@ app.all("/secret", function (req, res, next) {
### app.delete
```js
app.delete("/", function (req, res) {
res.send("DELETE request to homepage");
app.delete('/', function (req, res) {
res.send('DELETE request to homepage');
});
```
### app.disable(name)
```js
app.disable("trust proxy");
app.get("trust proxy");
app.disable('trust proxy');
app.get('trust proxy');
// => false
```
### app.disabled(name)
```js
app.disabled("trust proxy");
app.disabled('trust proxy');
// => true
app.enable("trust proxy");
app.disabled("trust proxy");
app.enable('trust proxy');
app.disabled('trust proxy');
// => false
```
### app.engine(ext, callback)
```js
var engines = require("consolidate");
var engines = require('consolidate');
app.engine("haml", engines.haml);
app.engine("html", engines.hogan);
app.engine('haml', engines.haml);
app.engine('html', engines.hogan);
```
### app.listen([port[, host[, backlog]]][, callback])
```js
var express = require("express");
var express = require('express');
var app = express();
app.listen(3000);
@@ -351,24 +351,24 @@ app.listen(3000);
### Routing
```js
const express = require("express");
const express = require('express');
const app = express();
//Respond to "hello world" when making a GET request to the homepage
app.get("/", (req, res) => {
res.send("hello world");
app.get('/', (req, res) => {
res.send('hello world');
});
```
```js
// GET method routing
app.get("/", (req, res) => {
res.send("GET request to the homepage");
app.get('/', (req, res) => {
res.send('GET request to the homepage');
});
// POST method routing
app.post("/", (req, res) => {
res.send("POST request to the homepage");
app.post('/', (req, res) => {
res.send('POST request to the homepage');
});
```
@@ -376,26 +376,26 @@ app.post("/", (req, res) => {
```js
function logOriginalUrl(req, res, next) {
console.log("ReqURL:", req.originalUrl);
console.log('ReqURL:', req.originalUrl);
next();
}
function logMethod(req, res, next) {
console.log("Request Type:", req.method);
console.log('Request Type:', req.method);
next();
}
const log = [logOriginalUrl, logMethod];
app.get("/user/:id", log, (req, res, next) => {
res.send("User Info");
app.get('/user/:id', log, (req, res, next) => {
res.send('User Info');
});
```
### Using templates
```js
app.set("view engine", "pug");
app.set('view engine', 'pug');
```
Create a `Pug` template file named `index.pug` in the `views` directory with the following content
@@ -412,10 +412,10 @@ Create a route to render the `index.pug` file. If the view engine property is no
must be specified
```js
app.get("/", (req, res) => {
res.render("index", {
title: "Hey",
message: "Hello there!",
app.get('/', (req, res) => {
res.render('index', {
title: 'Hey',
message: 'Hello there!'
});
});
```
+234
View File
@@ -0,0 +1,234 @@
---
title: FastAPI
date: 2025-06-07 18:40:00
background: bg-[#3730a3]
tags:
- web
- python
- backend
categories:
- Programming
intro: |
A concise cheatsheet for FastAPI, a fast and modern web framework for building APIs with Python 3.7+.
plugins:
- copyCode
---
## Getting Started {.cols-3}
### Install & Run
```bash
pip install fastapi uvicorn
uvicorn main:app --reload
```
### Hello World
```python
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Hello FastAPI"}
```
### CLI Run Hint
```bash
uvicorn main:app --reload
```
## Routing & Parameters {.cols-3}
### Path Parameter
```python
@app.get("/items/{id}")
def read(id: int):
return {"id": id}
```
### Query Parameter
```python
@app.get("/search")
def find(q: str = "default"):
return {"q": q}
```
### Optional Query
```python
@app.get("/filter")
def filter_data(limit: int = 10, active: bool = True):
return {"limit": limit, "active": active}
```
## Request Body & Validation {.cols-3}
### Using Pydantic
```python
from pydantic import BaseModel
class Item(BaseModel):
name: str
price: float
```
### JSON Body
```python
@app.post("/items/")
def create(item: Item):
return item
```
### Response Model
```python
@app.post("/items/", response_model=Item)
def create(item: Item):
return item
```
## Forms, Files, Headers {.cols-3}
### Form Input
```python
from fastapi import Form
@app.post("/login")
def login(user: str = Form(...)):
return {"user": user}
```
### File Upload
```python
from fastapi import UploadFile, File
@app.post("/upload")
def upload(f: UploadFile = File(...)):
return {"filename": f.filename}
```
### Headers / Cookies
```python
from fastapi import Header, Cookie
@app.get("/info")
def info(ua: str = Header(None)):
return {"UA": ua}
```
## Middleware & Dependency {.cols-2}
### Middleware
```python
@app.middleware("http")
async def log_req(req, call_next):
res = await call_next(req)
return res
```
### Dependency
```python
from fastapi import Depends
def auth(token: str = ""):
if token != "xyz": raise HTTPException(401)
return True
@app.get("/secure")
def secure(_: bool = Depends(auth)):
return {"secure": True}
```
## Errors & JSON API {.cols-2}
### HTTP Error
```python
from fastapi import HTTPException
@app.get("/err")
def error():
raise HTTPException(404, "Not Found")
```
### JSON API
```python
from fastapi import FastAPI
@app.get("/json")
def get_data():
return {"status": "ok"}
```
## Templates & Static {.cols-2}
### Mount Static
```python
from fastapi.staticfiles import StaticFiles
app.mount("/static", StaticFiles(directory="static"), name="static")
```
### Jinja2 Support
```python
from fastapi.templating import Jinja2Templates
templates = Jinja2Templates("templates")
```
## Routers & Structure {.cols-2}
### Routers (Blueprints)
```python
from fastapi import APIRouter
router = APIRouter()
@router.get("/")
def admin():
return {"admin": True}
app.include_router(router, prefix="/admin")
```
### Folder Layout
```bash
project/
├── main.py
├── static/
├── templates/
├── routers/
│ └── admin.py
└── models/
```
## Docs & Status {.cols-2}
### Built-in Docs
- Swagger: `/docs`
- ReDoc: `/redoc`
### Custom Status Code
```python
from fastapi import status
@app.post("/create", status_code=status.HTTP_201_CREATED)
def create():
return {"msg": "Created"}
```
+248
View File
@@ -0,0 +1,248 @@
---
title: Flask
date: 2025-06-07 19:05:00
background: bg-[#3598db]
tags:
- web
- python
- backend
categories:
- Programming
intro: |
A concise cheatsheet for Flask, a lightweight WSGI web application framework for Python.
plugins:
- copyCode
---
## Getting Started {.cols-3}
### Install Flask
```bash
pip install flask
```
### Hello World
```python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
app.run(debug=True)
```
### Flask CLI
```bash
export FLASK_APP=app.py
flask run
```
## App Config & Environment {.cols-3}
### App Object
```python
from flask import Flask
app = Flask(__name__)
```
### Configuration
```python
app.config["DEBUG"] = True
app.config.from_pyfile("config.py")
```
### Common Config Keys
| Key | Description |
| | -- |
| `DEBUG` | Enable debug mode |
| `SECRET_KEY` | For sessions/cookies |
| `ENV` | Set to 'development' |
## Routing & Methods {.cols-3}
### Basic Route
```python
@app.route("/")
def home():
return "Home"
```
### Methods
```python
@app.route("/login", methods=["GET", "POST"])
def login():
return "Login"
```
### Dynamic Routes
```python
@app.route("/user/<name>")
def user(name):
return f"User: {name}"
```
## Request & Response {.cols-3}
### Request Object
```python
from flask import request
@app.route("/data", methods=["POST"])
def data():
return request.json
```
### Request Attributes
- `request.args`: Query params
- `request.form`: Form data
- `request.json`: JSON body
### Custom Response
```python
from flask import make_response
@app.route("/custom")
def custom():
res = make_response("Custom", 200)
res.headers["X-Test"] = "True"
return res
```
## Templates & Static {.cols-3}
### Render Template
```python
from flask import render_template
@app.route("/")
def page():
return render_template("index.html", name="Flask")
```
### Jinja Syntax
```html
<h1>Hello {{ name }}</h1>
{% if name %}
<p>Hi!</p>
{% endif %}
```
### Static Files
```html
<link href="{{ url_for('static', filename='style.css') }}" />
```
## Sessions & Cookies {.cols-2}
### Using Sessions
```python
from flask import session
app.secret_key = "secret"
@app.route("/login")
def login():
session["user"] = "admin"
return "Logged in"
```
### Access Cookies
```python
from flask import request, make_response
@app.route("/cookie")
def cookie():
resp = make_response("Set cookie")
resp.set_cookie("site", "Flask")
return resp
```
## JSON API & Middleware {.cols-2}
### JSON Response
```python
from flask import jsonify
@app.route("/api")
def api():
return jsonify(message="Hello")
```
### Middleware
```python
@app.before_request
def before():
print("Before")
@app.after_request
def after(res):
print("After")
return res
```
## Error Handling & Blueprints {.cols-2}
### Error Handling
```python
@app.errorhandler(404)
def not_found(e):
return "Page not found", 404
```
### Blueprint
```python
from flask import Blueprint
admin = Blueprint("admin", __name__, url_prefix="/admin")
@admin.route("/")
def dash():
return "Admin"
app.register_blueprint(admin)
```
## Project Structure {.cols-2}
### File Structure
```bash
project/
├── app.py
├── templates/
│ └── index.html
├── static/
│ └── style.css
└── config.py
```
### Run Server
```bash
python app.py
# or using CLI
export FLASK_APP=app.py
flask run
```
+3 -3
View File
@@ -61,7 +61,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "14"
node-version: '14'
- run: npm install -g bats
- run: bats -v
```
@@ -192,7 +192,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
node-version: '14'
# step 3
- name: Install dependencies
@@ -242,7 +242,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
CUSTOM_VARIABLE: "Hello, World!" # Custom variable defined using env:
CUSTOM_VARIABLE: 'Hello, World!' # Custom variable defined using env:
steps:
- name: Check environment variable
run: echo "Value of CUSTOM_VAR is $CUSTOM_VAR"
+61 -63
View File
@@ -16,11 +16,11 @@ intro: |
### Actions
| Shortcut | Action |
| -------------- | ------------------- |
| `Alt+Super+8` | Turn zoom on or off |
| `Alt+Super+=` | Zoom in |
| `Alt+Super+-` | Zoom out |
| Shortcut | Action |
| ------------- | ------------------- |
| `Alt+Super+8` | Turn zoom on or off |
| `Alt+Super+=` | Zoom in |
| `Alt+Super+-` | Zoom out |
{.shortcuts}
@@ -35,86 +35,84 @@ intro: |
### Screenshots
| Shortcut | Action |
| ------------------- | --------------------------------- |
| `Shift+Ctrl+Alt+R` | Record a screencast interactively |
| `Shift+Print` | Take a screenshot |
| `Print` | Take a screenshot interactively |
| `Alt+Print` | Take a screenshot of a window |
| Shortcut | Action |
| ------------------ | --------------------------------- |
| `Shift+Ctrl+Alt+R` | Record a screencast interactively |
| `Shift+Print` | Take a screenshot |
| `Print` | Take a screenshot interactively |
| `Alt+Print` | Take a screenshot of a window |
{.shortcuts}
### System
| Shortcut | Action |
| --------------- | ------------------------------ |
| `Super+N` | Focus the active notification |
| `Super+L` | Lock screen |
| `Ctrl+Alt+Del` | Log out |
| `Super+F10` | Open the application menu |
| `Super+Escape` | Restore the keyboard shortcuts |
| `Super+A` | Show all applications |
| `Super+V` | Show the notification list |
| `Super+S` | Show the overview |
| `Alt+F2` | Show the run command prompt |
| Shortcut | Action |
| -------------- | ------------------------------ |
| `Super+N` | Focus the active notification |
| `Super+L` | Lock screen |
| `Ctrl+Alt+Del` | Log out |
| `Super+F10` | Open the application menu |
| `Super+Escape` | Restore the keyboard shortcuts |
| `Super+A` | Show all applications |
| `Super+V` | Show the notification list |
| `Super+S` | Show the overview |
| `Alt+F2` | Show the run command prompt |
{.shortcuts}
### Typing
| Shortcut | Action |
| ---------------------- | ------------------------------- |
| `Super+space` | Switch to next typing source |
| `Shift+Super+Space` | Switch to previous input source |
| Shortcut | Action |
| ------------------- | ------------------------------- |
| `Super+space` | Switch to next typing source |
| `Shift+Super+Space` | Switch to previous input source |
{.shortcuts}
### Windows
| Shortcut | Action |
| -------------- | ------------------------- |
| `Alt+Space` | Activate the window menu |
| `Alt+F1` | Close the window |
| `Super+H` | Hide window |
| `Super+Up` | Maximize window |
| `Alt+F7` | Move window |
| `Alt+F8` | Resize Window |
| `Super+Down` | Restore window |
| `Alt+F10` | Toggle maximization state |
| `Super+Left` | View split on left |
| `Super+Right` | View split on right |
| Shortcut | Action |
| ------------- | ------------------------- |
| `Alt+Space` | Activate the window menu |
| `Alt+F1` | Close the window |
| `Super+H` | Hide window |
| `Super+Up` | Maximize window |
| `Alt+F7` | Move window |
| `Alt+F8` | Resize Window |
| `Super+Down` | Restore window |
| `Alt+F10` | Toggle maximization state |
| `Super+Left` | View split on left |
| `Super+Right` | View split on right |
{.shortcuts}
### Navigation
| Shortcut | Action |
| ------------------------- | -------------------------------------- |
| `Ctrl+Super+D` | Hide all normal windows |
| `Super+Page Up` | Move to workspace on the left |
| `Super+Page Down` | Move to workspace on the right |
| `Shift+Super+Down` | Move window one monitor down |
| `Shift+Super+Left` | Move window one monitor to the left |
| `Shift+Super+Right` | Move window one monitor to the right |
| `Shift+Super+Up` | Move window one monitor up |
| `Shift+Super+Page Up` | Move window one workspace to the left |
| `Shift+Super+Page Down` | Move window one workspace to the right |
| `Shift+Super+End` | Move window to last workspace |
| `Shift+Super+Home` | Move window to workspace 1 |
| `Super+Tab` | Switch applications |
| `Ctrl+Alt+Tab` | Switch system controls |
| `Ctrl+Alt+Escape` | Switch system controls directly |
| `Super+End` | Switch to last workspace |
| `Super+Home` | Switch to workspace 1 |
| `Alt+Tab` | Switch windows |
| `Alt+Escape` | Switch windows directly |
| `Alt+F6` | Switch windows of an app directly |
| `Super+` | Switch windows of an application |
| Shortcut | Action |
| ----------------------- | -------------------------------------- |
| `Ctrl+Super+D` | Hide all normal windows |
| `Super+Page Up` | Move to workspace on the left |
| `Super+Page Down` | Move to workspace on the right |
| `Shift+Super+Down` | Move window one monitor down |
| `Shift+Super+Left` | Move window one monitor to the left |
| `Shift+Super+Right` | Move window one monitor to the right |
| `Shift+Super+Up` | Move window one monitor up |
| `Shift+Super+Page Up` | Move window one workspace to the left |
| `Shift+Super+Page Down` | Move window one workspace to the right |
| `Shift+Super+End` | Move window to last workspace |
| `Shift+Super+Home` | Move window to workspace 1 |
| `Super+Tab` | Switch applications |
| `Ctrl+Alt+Tab` | Switch system controls |
| `Ctrl+Alt+Escape` | Switch system controls directly |
| `Super+End` | Switch to last workspace |
| `Super+Home` | Switch to workspace 1 |
| `Alt+Tab` | Switch windows |
| `Alt+Escape` | Switch windows directly |
| `Alt+F6` | Switch windows of an app directly |
| `Super+` | Switch windows of an application |
{.shortcuts}
## Also see
- [Gnome Shell Cheatsheet](https://wiki.gnome.org/Projects/GnomeShell/CheatSheet)
_(www.gnome.org)_
- [Gnome Shell Cheatsheet](https://wiki.gnome.org/Projects/GnomeShell/CheatSheet) _(www.gnome.org)_
+9 -8
View File
@@ -2,20 +2,21 @@
title: GnuPG
categories:
- Linux Command
intro:
A cheatsheet for GnuPG, the encryption and signing software.
intro: A cheatsheet for GnuPG, the encryption and signing software.
---
## Getting Started
### Software
Gpg4win and the GPG Suite have OS-specific features.
* [GnuPG](https://gnupg.org/)
* [Gpg4win](https://www.gpg4win.org/) (Windows)
* [GPG Suite](https://gpgtools.org/) (macOS)
- [GnuPG](https://gnupg.org/)
- [Gpg4win](https://www.gpg4win.org/) (Windows)
- [GPG Suite](https://gpgtools.org/) (macOS)
Sometimes GPG keys are referred as PGP keys. They're interchangeable, as they follow the [OpenPGP Standard](https://www.rfc-editor.org/rfc/rfc9580.html).
Sometimes GPG keys are referred as PGP keys. They're interchangeable, as they follow the
[OpenPGP Standard](https://www.rfc-editor.org/rfc/rfc9580.html).
### Create a key-pair
@@ -210,8 +211,8 @@ $ gpg --export --armor <ID>
### PowerShell Commands
When you do a full restart, the GPG agent might not automatically start. Add
the GnuPG's IPC tool to Startup Apps using PowerShell:
When you do a full restart, the GPG agent might not automatically start. Add the GnuPG's IPC tool to Startup Apps using
PowerShell:
```shell script
$ $shell = New-Object -ComObject WScript.Shell
+19 -1
View File
@@ -1030,7 +1030,9 @@ func main() {
## Go File I/O {.cols-2}
### Reading a File
Read the contents of a file into memory.
```go
data, err := os.ReadFile("file.txt")
if err != nil {
@@ -1039,7 +1041,9 @@ if err != nil {
```
### Writing to a File
Write data to a file with specific permissions (e.g., 0644 for read-write).
```go
err := os.WriteFile("file.txt", []byte("Hello, Go!"), 0644)
```
@@ -1047,7 +1051,9 @@ err := os.WriteFile("file.txt", []byte("Hello, Go!"), 0644)
## Go Testing {.cols-2}
### Unit Test
Unit Test: A basic unit test follows the below naming convention and uses t.Errorf() to report failures.
```go
func TestAdd(t *testing.T) {
result := add(2, 3)
@@ -1058,7 +1064,9 @@ func TestAdd(t *testing.T) {
```
### Unit Test
Benchmark: Benchmark tests measure performance, using b.N to control iterations.
```go
func BenchmarkAdd(b *testing.B) {
for i := 0; i < b.N; i++ {
@@ -1069,15 +1077,18 @@ func BenchmarkAdd(b *testing.B) {
## Go JSON Handling {.cols-2}
### JSON Encoding
### JSON Encoding
Convert a Go struct to JSON.
```go
data, _ := json.Marshal(person)
```
### JSON Decoding
Parse JSON data into a Go struct.
```go
json.Unmarshal(data, &person)
```
@@ -1085,6 +1096,7 @@ json.Unmarshal(data, &person)
## Go Server {.cols-2}
### net/http (Standard Library)
```go
package main
@@ -1107,6 +1119,7 @@ func main() {
```
### gorilla/mux
```go
package main
@@ -1130,6 +1143,7 @@ func main() {
```
### chi
```go
package main
@@ -1152,6 +1166,7 @@ func main() {
```
### gin
```go
package main
@@ -1172,6 +1187,7 @@ func main() {
```
### fiber
```go
package main
@@ -1190,7 +1206,9 @@ func main() {
app.Listen(":8084")
}
```
### beego
```go
package main
+43 -43
View File
@@ -90,49 +90,49 @@ intro: |
### Search on emails
| Operator | Description | Category |
| ----------------- | ----------------------------------------------------------------------------------------------------- | ---------- |
| `+` | Prefix - Force exact match on single phrase | Basic,Mail |
| `()` | Allows grouping of operators and helps dictate order | Basic,Mail |
| `-` | Excludes a word from results | Basic,Mail |
| `""` | Allows searching for a specific phrase - exact match search. Individual word prevents synonyms | Basic,Mail |
| `OR`/`AND` | Boolean search function for OR searches as Google defaults to AND between words - must be all caps | Basic,Mail |
| `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail |
| `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail |
| `is:starred` | Searches only items that have been starred in drive | Drive,Mail |
| `from:` | Specify the sender in google mail | Mail |
| `to:` | Specify the recipient in google mail | Mail |
| `cc:` | Search by a recipient that was copied into an email | Mail |
| `bcc:` | Search by a recipient that was blind copied into an email | Mail |
| `older:` | Search for messages older than a certain date | Mail |
| `newer:` | Search for messages newer than a certain date | Mail |
| `Search` | for a message with a google sheet attached | Mail |
| `Search` | for a message with a google presentation attached | Mail |
| `AROUND` | Similar to the normal google search function, allows you to search for keywords near each other. | Mail |
| `subject:` | Search by keywords featured in the subject line | Mail |
| `{}` | Use for OR in mail instead of the OR function | Mail |
| `label:` | Search for messages that have a certain label | Mail |
| `has:attachment` | Search for messages that have an item attached | Mail |
| `has:drive` | Search for messages with a google drive attached | Mail |
| `has:document` | Search for messages with a google doc attached | Mail |
| `has:youtube` | Search for a message containing a youtube video | Mail |
| `list:` | Search for all messages from a particular mailing list | Mail |
| `in:anywhere` | Includes all folders in your search, including spam and bin | Mail |
| `is:important` | Search for messages that have been marked as important | Mail |
| `label:important` | Same as is:important | Mail |
| `is:snoozed` | Searches for messages that have been snoozed | Mail |
| `is:unread` | Searches for unread messages | Mail |
| `is:read` | searches for read messages only | Mail |
| `has:yellow-star` | Searches for messages with coloured star icon | Mail |
| `has:blue-info` | Searches for messages with colourd icon | Mail |
| `is:chat` | Searches for messagse from chat | Mail |
| `deliveredto:` | Search by email address for delivered messages | Mail |
| `category:` | Searches by messages based on category. Follow the colon with the categoy name, i.e. category:primary | Mail |
| `size:` | Messages larger than a certain size in bytes | Mail |
| `larger:` | Messages larger than a certain size in bytes | Mail |
| `smaller:` | Messages smaller than a certain size in bytes | Mail |
| `has:userlabels` | Search for messages that have custom user labels | Mail |
| `has:nouserlabels`| Search for messages that have no custom user labels | Mail |
| Operator | Description | Category |
| ------------------ | ----------------------------------------------------------------------------------------------------- | ---------- |
| `+` | Prefix - Force exact match on single phrase | Basic,Mail |
| `()` | Allows grouping of operators and helps dictate order | Basic,Mail |
| `-` | Excludes a word from results | Basic,Mail |
| `""` | Allows searching for a specific phrase - exact match search. Individual word prevents synonyms | Basic,Mail |
| `OR`/`AND` | Boolean search function for OR searches as Google defaults to AND between words - must be all caps | Basic,Mail |
| `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail |
| `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail |
| `is:starred` | Searches only items that have been starred in drive | Drive,Mail |
| `from:` | Specify the sender in google mail | Mail |
| `to:` | Specify the recipient in google mail | Mail |
| `cc:` | Search by a recipient that was copied into an email | Mail |
| `bcc:` | Search by a recipient that was blind copied into an email | Mail |
| `older:` | Search for messages older than a certain date | Mail |
| `newer:` | Search for messages newer than a certain date | Mail |
| `Search` | for a message with a google sheet attached | Mail |
| `Search` | for a message with a google presentation attached | Mail |
| `AROUND` | Similar to the normal google search function, allows you to search for keywords near each other. | Mail |
| `subject:` | Search by keywords featured in the subject line | Mail |
| `{}` | Use for OR in mail instead of the OR function | Mail |
| `label:` | Search for messages that have a certain label | Mail |
| `has:attachment` | Search for messages that have an item attached | Mail |
| `has:drive` | Search for messages with a google drive attached | Mail |
| `has:document` | Search for messages with a google doc attached | Mail |
| `has:youtube` | Search for a message containing a youtube video | Mail |
| `list:` | Search for all messages from a particular mailing list | Mail |
| `in:anywhere` | Includes all folders in your search, including spam and bin | Mail |
| `is:important` | Search for messages that have been marked as important | Mail |
| `label:important` | Same as is:important | Mail |
| `is:snoozed` | Searches for messages that have been snoozed | Mail |
| `is:unread` | Searches for unread messages | Mail |
| `is:read` | searches for read messages only | Mail |
| `has:yellow-star` | Searches for messages with coloured star icon | Mail |
| `has:blue-info` | Searches for messages with colourd icon | Mail |
| `is:chat` | Searches for messagse from chat | Mail |
| `deliveredto:` | Search by email address for delivered messages | Mail |
| `category:` | Searches by messages based on category. Follow the colon with the categoy name, i.e. category:primary | Mail |
| `size:` | Messages larger than a certain size in bytes | Mail |
| `larger:` | Messages larger than a certain size in bytes | Mail |
| `smaller:` | Messages smaller than a certain size in bytes | Mail |
| `has:userlabels` | Search for messages that have custom user labels | Mail |
| `has:nouserlabels` | Search for messages that have no custom user labels | Mail |
### Some other useful search operators
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Grep
date: 2020-11-25 18:28:43
background: bg-emerald-400
background: bg-indigo-400
tags:
- egrep
- search
+4 -4
View File
@@ -143,7 +143,7 @@ brew tap homebrew/cask
List all the installed casks .
```bash
brew cask list
brew list --cask
```
Search all known casks based on the substring text.
@@ -155,19 +155,19 @@ brew search <text>
Install the given cask.
```bash
brew cask install <cask>
brew install --cask <cask>
```
Reinstalls the given Cask
```bash
brew cask reinstall <cask>
brew reinstall --cask <cask>
```
Uninstall the given cask.
```bash
brew cask uninstall <cask>
brew uninstall --cask <cask>
```
### Search, Install, Remove
+20 -20
View File
@@ -38,7 +38,7 @@ Hook features a modern syntax similar to `C`.
### Hello, world!
```js
println("Hello, World!");
println('Hello, World!');
// Hello, World!
```
@@ -99,9 +99,9 @@ Numbers can be integers or floating-point.
### Strings
```js
let empty = "";
let empty = '';
let name = "John";
let name = 'John';
let message = 'Hello, "John"!';
```
@@ -122,7 +122,7 @@ Ranges are a sequence of integers.
### Arrays
```js
let fruits = ["apple", "banana", "cherry"];
let fruits = ['apple', 'banana', 'cherry'];
println(fruits);
// ["apple", "banana", "cherry"]
@@ -200,9 +200,9 @@ Semi-colons are required and empty statements are not allowed.
```js
{
println("Hello");
println('Hello');
{
println("World");
println('World');
}
}
```
@@ -242,7 +242,7 @@ Identifiers are case-sensitive.
```js
var x; // x contains nil
x = 5; // now, x contains a number
x = "foo"; // a string
x = 'foo'; // a string
println(x);
```
@@ -380,7 +380,7 @@ In Hook, the ternary operator is `if else`.
let x = 10;
if (x > 5) {
println("x is greater than 5");
println('x is greater than 5');
}
// x is greater than 5
```
@@ -393,11 +393,11 @@ The `if` statement.
let x = 11;
if (x == 5) {
println("x is 5");
println('x is 5');
} else if (x == 10) {
println("x is 10");
println('x is 10');
} else {
println("x is neither 5 nor 10");
println('x is neither 5 nor 10');
}
// x is neither 5 nor 10
```
@@ -514,7 +514,7 @@ Use `continue` to skip the rest of the loop body.
### Indexing a string
```js
let s = "Hello";
let s = 'Hello';
println(s[0]); // H
println(s[1]); // e
@@ -537,7 +537,7 @@ Pass a range to slice a string.
### Concatening strings
```js
let greeting = "Hi" + " there!";
let greeting = 'Hi' + ' there!';
println(greeting);
// Hi there!
@@ -731,9 +731,9 @@ Recursion is supported.
```js
println(type(5));
// number
println("1" + to_string(2));
println('1' + to_string(2));
// 12
println(len("foo"));
println(len('foo'));
// 3
```
@@ -922,7 +922,7 @@ import hashing as h;
```
```js
let d = h.sha256("Hello, world!");
let d = h.sha256('Hello, world!');
println(hex(d));
// 315f5bdb76d078c43b8ac0064e4a...
@@ -953,7 +953,7 @@ Use `json` module for working with JSON.
### Errors {.col-span-2}
```js
println(to_int("foo"));
println(to_int('foo'));
// runtime error: type error: argument #1 is not a convertible string
// at to_int() in <native>
@@ -965,7 +965,7 @@ Hook uses panic mode for error handling. When an error occurs, the interpreter s
### Syntax error
```js
println("Hello, World!");
println('Hello, World!');
// syntax error: unexpected end of file
// at main() in example.hk:1,25
@@ -976,7 +976,7 @@ Hook has a strict syntax.
### Panic
```js
panic("Something went wrong");
panic('Something went wrong');
// panic: Something went wrong
// at main() in example.hk:1
@@ -987,7 +987,7 @@ Use the `panic` built-in function to raise an error.
### Assert {.col-span-2}
```js
assert(5 > 10, "5 is not greater than 10");
assert(5 > 10, '5 is not greater than 10');
// assert: 5 is not greater than 10
// at main() in example.hk:1
+19 -5
View File
@@ -78,7 +78,13 @@ See: [The \<a> Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Ele
### Image Tag
```html {.wrap}
<img loading="lazy" src="https://xxx.png" alt="Describe image here" width="400" height="400" />
<img
loading="lazy"
src="https://xxx.png"
alt="Describe image here"
width="400"
height="400"
/>
```
---
@@ -170,7 +176,7 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
```html
<script type="text/javascript">
let text = "Hello CheatSheets.zip";
let text = 'Hello CheatSheets.zip';
alert(text);
</script>
```
@@ -277,7 +283,10 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
```html {.wrap}
<video controls="" width="100%">
<source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4" />
<source
src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
type="video/mp4"
/>
Sorry, your browser doesn't support embedded videos.
</video>
```
@@ -292,7 +301,10 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
### HTML5 Audio
```html {.wrap}
<audio controls src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3">
<audio
controls
src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
>
Your browser does not support the audio element.
</audio>
```
@@ -306,7 +318,9 @@ audio element. </audio>
### HTML5 Ruby
```html {.wrap}
<ruby> 汉 <rp>(</rp><rt>hàn</rt><rp>)</rp> 字 <rp>(</rp><rt>zì</rt><rp>)</rp> </ruby>
<ruby>
汉 <rp>(</rp><rt>hàn</rt><rp>)</rp> 字 <rp>(</rp><rt>zì</rt><rp>)</rp>
</ruby>
```
#### ↓ Preview
+175
View File
@@ -0,0 +1,175 @@
---
title: HTMX
date: 2025-06-07 19:30:00
background: bg-[#ff5f4d]
tags:
- frontend
- javascript
- htmx
categories:
- Programming
intro: |
A modern, minimal JavaScript library that allows you to create dynamic web interfaces using HTML attributes.
plugins:
- copyCode
---
## Getting Started {.cols-3}
### CDN Import
```html
<script src="https://unpkg.com/htmx.org@1.9.2"></script>
```
### Basic Usage
```html
<button hx-get="/hello" hx-target="#result">Say Hi</button>
<div id="result"></div>
```
### Server Response
```html
<!-- /hello response -->
<p>Hello from server</p>
```
## Core Attributes {.cols-3}
### `hx-get`, `hx-post`, etc.
```html
<a hx-get="/page">Load Page</a>
<form hx-post="/submit"></form>
```
### `hx-target`
```html
<button hx-get="/data" hx-target="#box"></button>
<div id="box"></div>
```
### `hx-trigger`
```html
<input
hx-get="/search"
hx-trigger="keyup changed delay:300ms"
hx-target="#results"
/>
```
## Swap & Out of Band {.cols-3}
### `hx-swap`
```html
<div hx-get="/frag" hx-swap="innerHTML"></div>
```
- `outerHTML`
- `innerHTML`
- `beforebegin`, `afterbegin`, etc.
### `hx-swap-oob`
```html
<div hx-swap-oob="true" id="msg"></div>
```
_Useful for global updates from partials._
### Swap Modifiers
```html
hx-swap="outerHTML transition:true swap:1s"
```
## Forms & Events {.cols-3}
### Auto POST on Submit
```html
<form hx-post="/submit" hx-target="#status">
<input name="name" />
<button type="submit">Send</button>
</form>
<div id="status"></div>
```
### `hx-include`
```html
<input id="user-id" name="id" />
<button hx-post="/update" hx-include="#user-id">Update</button>
```
### `hx-vals`
```html
<button hx-post="/save" hx-vals='{"id": 42, "active": true}'>Save</button>
```
## Advanced Features {.cols-3}
### Loading Indicator
```html
<button hx-get="/load" hx-indicator="#spinner">Load</button>
<div id="spinner" class="htmx-indicator">Loading...</div>
```
### `hx-push-url`
```html
<a hx-get="/page" hx-push-url="true">Go</a>
```
### Polling
```html
<div hx-get="/time" hx-trigger="every 5s"></div>
```
## Events & Extensions {.cols-3}
### Listen to Events
```js
document.body.addEventListener('htmx:afterSwap', (e) => {
console.log('Swap complete');
});
```
### Event Hooks
- `htmx:beforeRequest`
- `htmx:afterSwap`
- `htmx:responseError`
### Extensions
```html
<script src="https://unpkg.com/htmx.org/dist/ext/json-enc.js"></script>
<form hx-post="/api" hx-ext="json-enc"></form>
```
## Example Use Case {.cols-2}
### Python Backend (Flask)
```python
@app.route("/hello")
def hello():
return "<p>Hello, HTMX!</p>"
```
### HTML Client
```html
<button hx-get="/hello" hx-target="#msg">Click</button>
<div id="msg"></div>
```
+1 -2
View File
@@ -1,8 +1,7 @@
---
title: IntelliJ IDEA
date: 2020-12-17 21:51:44
background:
bg-gradient-to-r from-pink-500 via-violet-400 to-blue-400 hover:from-pink-700 hover:via-violet-600 hover:to-blue-500
background: bg-gradient-to-r from-pink-500 via-violet-400 to-blue-400 hover:from-pink-700 hover:via-violet-600 hover:to-blue-500
tags:
- jetbrains
- java
+156 -136
View File
@@ -27,13 +27,13 @@ JavaScript is a lightweight, interpreted programming language.
```javascript
// => Hello world!
console.log("Hello world!");
console.log('Hello world!');
// => Hello CheatSheets.zip
console.warn("hello %s", "CheatSheets.zip");
console.warn('hello %s', 'CheatSheets.zip');
// Prints error message to stderr
console.error(new Error("Oops!"));
console.error(new Error('Oops!'));
```
### Numbers
@@ -47,7 +47,7 @@ let price = 4.99;
```javascript
let x = null;
let name = "Tammy";
let name = 'Tammy';
const found = false;
// => Tammy, false, null
@@ -60,8 +60,8 @@ console.log(a); // => undefined
### Strings
```javascript
let single = "Wheres my bandit hat?";
let double = "Wheres my bandit hat?";
let single = 'Wheres my bandit hat?';
let double = 'Wheres my bandit hat?';
// => 21
console.log(single.length);
@@ -107,7 +107,7 @@ console.log(number);
let age = 7;
// String concatenation
"Tommy is " + age + " years old.";
'Tommy is ' + age + ' years old.';
// String interpolation
`Tommy is ${age} years old.`;
@@ -139,7 +139,7 @@ numberOfColumns = 8;
const isMailSent = true;
if (isMailSent) {
console.log("Mail sent to recipient");
console.log('Mail sent to recipient');
}
```
@@ -178,7 +178,7 @@ true && false; // false
250 >= 250; // true
1 === 1; // true
1 === 2; // false
1 === "1"; // false
1 === '1'; // false
```
#### Logical Operator !
@@ -194,12 +194,12 @@ console.log(oppositeValue);
#### Nullish coalescing operator ??
```javascript
null ?? "I win"; // 'I win'
undefined ?? "Me too"; // 'Me too'
null ?? 'I win'; // 'I win'
undefined ?? 'Me too'; // 'Me too'
false ?? "I lose"; // false
0 ?? "I lose again"; // 0
"" ?? "Damn it"; // ''
false ?? 'I lose'; // false
0 ?? 'I lose again'; // 0
'' ?? 'Damn it'; // ''
```
### else if
@@ -208,13 +208,13 @@ false ?? "I lose"; // false
const size = 10;
if (size > 100) {
console.log("Big");
console.log('Big');
} else if (size > 20) {
console.log("Medium");
console.log('Medium');
} else if (size > 4) {
console.log("Small");
console.log('Small');
} else {
console.log("Tiny");
console.log('Tiny');
}
// Print: Small
```
@@ -222,17 +222,17 @@ if (size > 100) {
### switch Statement
```javascript
const food = "salad";
const food = 'salad';
switch (food) {
case "oyster":
console.log("The taste of the sea");
case 'oyster':
console.log('The taste of the sea');
break;
case "pizza":
console.log("A delicious pie");
case 'pizza':
console.log('A delicious pie');
break;
default:
console.log("Enjoy your meal");
console.log('Enjoy your meal');
}
```
@@ -241,12 +241,12 @@ switch (food) {
```javascript
0 == false; // true
0 === false; // false, different type
1 == "1"; // true, automatic type conversion
1 === "1"; // false, different type
1 == '1'; // true, automatic type conversion
1 === '1'; // false, different type
null == undefined; // true
null === undefined; // false
"0" == false; // true
"0" === false; // false
'0' == false; // true
'0' === false; // false
```
The `==` just check the value, `===` check both the value and the type.
@@ -270,12 +270,12 @@ sum(3, 6); // 9
```javascript
// Named function
function rocketToMars() {
return "BOOM!";
return 'BOOM!';
}
// Anonymous function
const rocketToMars = function () {
return "BOOM!";
return 'BOOM!';
};
```
@@ -294,7 +294,7 @@ console.log(sum(2, 5)); // => 7
```javascript
const printHello = () => {
console.log("hello");
console.log('hello');
};
printHello(); // => hello
```
@@ -349,7 +349,7 @@ sum(2, 4); // 6
```javascript
const dog = function () {
return "Woof!";
return 'Woof!';
};
```
@@ -376,7 +376,7 @@ function add(num1, num2) {
```javascript
function myFunction() {
var pizzaName = "Margarita";
var pizzaName = 'Margarita';
// Code here can use pizzaName
}
@@ -389,7 +389,7 @@ function myFunction() {
const isLoggedIn = true;
if (isLoggedIn == true) {
const statusMessage = "Logged in.";
const statusMessage = 'Logged in.';
}
// Uncaught ReferenceError...
@@ -400,7 +400,7 @@ console.log(statusMessage);
```javascript
// Variable declared globally
const color = "blue";
const color = 'blue';
function printColor() {
console.log(color);
@@ -455,10 +455,10 @@ The variable has its own copy using `let`, and the variable has shared copy usin
### Arrays
```javascript
const fruits = ["apple", "orange", "banana"];
const fruits = ['apple', 'orange', 'banana'];
// Different data types
const data = [1, "chicken", false];
const data = [1, 'chicken', false];
```
### Property .length
@@ -494,8 +494,8 @@ console.log(myArray[1]); // 200
```javascript
// Adding a single element:
const cart = ["apple", "orange"];
cart.push("pear");
const cart = ['apple', 'orange'];
cart.push('pear');
// Adding multiple elements:
const numbers = [1, 2];
@@ -507,7 +507,7 @@ Add items to the end and returns the new array length.
### Array.pop()
```javascript
const fruits = ["apple", "orange", "banana"];
const fruits = ['apple', 'orange', 'banana'];
const fruit = fruits.pop(); // 'banana'
console.log(fruits); // ["apple", "orange"]
@@ -518,7 +518,7 @@ Remove an item from the end and returns the removed item.
### Array.shift()
```javascript
let cats = ["Bob", "Willy", "Mini"];
let cats = ['Bob', 'Willy', 'Mini'];
cats.shift(); // ['Willy', 'Mini']
```
@@ -528,13 +528,13 @@ Remove an item from the beginning and returns the removed item.
### Array.unshift()
```javascript
let cats = ["Bob"];
let cats = ['Bob'];
// => ['Willy', 'Bob']
cats.unshift("Willy");
cats.unshift('Willy');
// => ['Puff', 'George', 'Willy', 'Bob']
cats.unshift("Puff", "George");
cats.unshift('Puff', 'George');
```
Add items to the beginning and returns the new array length.
@@ -563,7 +563,7 @@ If you want to avoid mutating your original array, you can use concat.
const emptySet = new Set();
// Set Object with values
const setObj = new Set([1, true, "hi"]);
const setObj = new Set([1, true, 'hi']);
```
### Add
@@ -572,19 +572,19 @@ const setObj = new Set([1, true, "hi"]);
const emptySet = new Set();
// add values
emptySet.add("a"); // 'a'
emptySet.add('a'); // 'a'
emptySet.add(1); // 'a', 1
emptySet.add(true); // 'a', 1, true
emptySet.add("a"); // 'a', 1, true
emptySet.add('a'); // 'a', 1, true
```
### Delete
```javascript
const emptySet = new Set([1, true, "a"]);
const emptySet = new Set([1, true, 'a']);
// delete values
emptySet.delete("a"); // 1, true
emptySet.delete('a'); // 1, true
emptySet.delete(true); // 1
emptySet.delete(1); //
```
@@ -592,10 +592,10 @@ emptySet.delete(1); //
### Has
```javascript
const setObj = new Set([1, true, "a"]);
const setObj = new Set([1, true, 'a']);
// returns true or false
setObj.has("a"); // true
setObj.has('a'); // true
setObj.has(1); // true
setObj.has(false); // false
```
@@ -603,7 +603,7 @@ setObj.has(false); // false
### Clear
```javascript
const setObj = new Set([1, true, "a"]);
const setObj = new Set([1, true, 'a']);
// clears the set
console.log(setObj); // 1, true, 'a'
@@ -613,7 +613,7 @@ setObj.clear(); //
### Size
```javascript
const setObj = new Set([1, true, "a"]);
const setObj = new Set([1, true, 'a']);
consoloe.log(setObj.size); // 3
```
@@ -621,7 +621,7 @@ consoloe.log(setObj.size); // 3
### ForEach
```javascript
const setObj = new Set([1, true, "a"]);
const setObj = new Set([1, true, 'a']);
setObj.forEach(function (value) {
console.log(value);
@@ -651,7 +651,7 @@ while (i < 5) {
### Reverse Loop
```javascript
const fruits = ["apple", "orange", "banana"];
const fruits = ['apple', 'orange', 'banana'];
for (let i = fruits.length - 1; i >= 0; i--) {
console.log(`${i}. ${fruits[i]}`);
@@ -715,7 +715,7 @@ for (i = 0; i < 10; i++) {
if (i === 3) {
continue;
}
text += "The number is " + i + "<br>";
text += 'The number is ' + i + '<br>';
}
```
@@ -732,7 +732,7 @@ for (let i = 0; i < 2; i += 1) {
### for...in loop
```javascript
const fruits = ["apple", "orange", "banana"];
const fruits = ['apple', 'orange', 'banana'];
for (let index in fruits) {
console.log(index);
@@ -745,7 +745,7 @@ for (let index in fruits) {
### for...of loop
```javascript
const fruits = ["apple", "orange", "banana"];
const fruits = ['apple', 'orange', 'banana'];
for (let fruit of fruits) {
console.log(fruit);
@@ -785,7 +785,7 @@ let printMsg = (evenFunc, num) => {
// Pass in isEven as the callback function
printMsg(isEven, 4);
// => The number 4 is an even number: True.
// => 4 is an even number: True.
```
### Array.reduce()
@@ -803,10 +803,10 @@ console.log(sum); // 10
### Array.map()
```javascript
const members = ["Taylor", "Donald", "Don", "Natasha", "Bobby"];
const members = ['Taylor', 'Donald', 'Don', 'Natasha', 'Bobby'];
const announcements = members.map((member) => {
return member + " joined the contest.";
return member + ' joined the contest.';
});
console.log(announcements);
@@ -837,8 +837,8 @@ const filteredArray = randomNumbers.filter((n) => {
```javascript
const apple = {
color: "Green",
price: { bulk: "$3/kg", smallQty: "$4/kg" },
color: 'Green',
price: { bulk: '$3/kg', smallQty: '$4/kg' }
};
console.log(apple.color); // => Green
console.log(apple.price.bulk); // => $3/kg
@@ -862,7 +862,7 @@ const trainSchedule = {
```javascript
const classElection = {
date: "January 12",
date: 'January 12'
};
console.log(classElection.place); // undefined
@@ -872,16 +872,16 @@ console.log(classElection.place); // undefined
```javascript
const student = {
name: "Sheldon",
name: 'Sheldon',
score: 100,
grade: "A",
grade: 'A'
};
console.log(student);
// { name: 'Sheldon', score: 100, grade: 'A' }
delete student.score;
student.grade = "F";
student.grade = 'F';
console.log(student);
// { name: 'Sheldon', grade: 'F' }
@@ -893,8 +893,8 @@ student = {};
```javascript
const person = {
name: "Tom",
age: "22",
name: 'Tom',
age: '22'
};
const { name, age } = person;
console.log(name); // 'Tom'
@@ -905,10 +905,10 @@ console.log(age); // '22'
```javascript
const person = {
firstName: "Matilda",
firstName: 'Matilda',
age: 27,
hobby: "knitting",
goal: "learning JavaScript",
hobby: 'knitting',
goal: 'learning JavaScript'
};
delete person.hobby; // or delete person[hobby];
@@ -927,11 +927,11 @@ console.log(person);
```javascript
const origNum = 8;
const origObj = { color: "blue" };
const origObj = { color: 'blue' };
const changeItUp = (num, obj) => {
num = 7;
obj.color = "red";
obj.color = 'red';
};
changeItUp(origNum, origObj);
@@ -947,7 +947,7 @@ console.log(origObj.color);
### Shorthand object creation
```javascript
const activity = "Surfing";
const activity = 'Surfing';
const beach = { activity };
console.log(beach); // { activity: 'Surfing' }
```
@@ -956,11 +956,11 @@ console.log(beach); // { activity: 'Surfing' }
```javascript
const cat = {
name: "Pipey",
name: 'Pipey',
age: 8,
whatName() {
return this.name;
},
}
};
console.log(cat.whatName()); // => Pipey
```
@@ -977,8 +977,8 @@ const dogFactory = (name, age, breed) => {
age: age,
breed: breed,
bark() {
console.log("Woof!");
},
console.log('Woof!');
}
};
};
```
@@ -993,11 +993,11 @@ const engine = {
},
// anonymous arrow function expression with no arguments
sputter: () => {
console.log("The engine sputters...");
},
console.log('The engine sputters...');
}
};
engine.start("noisily");
engine.start('noisily');
engine.sputter();
```
@@ -1005,20 +1005,20 @@ engine.sputter();
```javascript
const myCat = {
_name: "Dottie",
_name: 'Dottie',
get name() {
return this._name;
},
set name(newName) {
this._name = newName;
},
}
};
// Reference invokes the getter
console.log(myCat.name);
// Assignment invokes the setter
myCat.name = "Yankee";
myCat.name = 'Yankee';
```
## JavaScript Classes
@@ -1032,16 +1032,16 @@ class Dog {
}
introduce() {
console.log("This is " + this._name + " !");
console.log('This is ' + this._name + ' !');
}
// A static method
static bark() {
console.log("Woof!");
console.log('Woof!');
}
}
const myDog = new Dog("Buster");
const myDog = new Dog('Buster');
myDog.introduce();
// Calling the static method
@@ -1058,7 +1058,7 @@ class Song {
}
play() {
console.log("Song playing!");
console.log('Song playing!');
}
}
@@ -1076,7 +1076,7 @@ class Song {
}
}
const mySong = new Song("Bohemian Rhapsody", "Queen");
const mySong = new Song('Bohemian Rhapsody', 'Queen');
console.log(mySong.title);
```
@@ -1085,11 +1085,11 @@ console.log(mySong.title);
```javascript
class Song {
play() {
console.log("Playing!");
console.log('Playing!');
}
stop() {
console.log("Stopping!");
console.log('Stopping!');
}
}
```
@@ -1114,9 +1114,9 @@ class Song extends Media {
}
const mySong = new Song({
artist: "Queen",
name: "Bohemian Rhapsody",
publishDate: 1975,
artist: 'Queen',
name: 'Bohemian Rhapsody',
publishDate: 1975
});
```
@@ -1185,7 +1185,7 @@ module.exports = {
add,
subtract,
multiply,
duplicate,
duplicate
};
```
@@ -1193,7 +1193,7 @@ module.exports = {
```javascript
// main.js
const myMath = require("./myMath.js");
const myMath = require('./myMath.js');
console.log(myMath.add(6, 2)); // 8
console.log(myMath.subtract(6, 2)); // 4
@@ -1210,15 +1210,15 @@ const promise = new Promise((resolve, reject) => {
const res = true;
// An asynchronous operation.
if (res) {
resolve("Resolved!");
resolve('Resolved!');
} else {
reject(Error("Error"));
reject(Error('Error'));
}
});
promise.then(
(res) => console.log(res),
(err) => console.error(err),
(err) => console.error(err)
);
```
@@ -1226,7 +1226,7 @@ promise.then(
```javascript
const executorFn = (resolve, reject) => {
resolve("Resolved!");
resolve('Resolved!');
};
const promise = new Promise(executorFn);
@@ -1236,7 +1236,7 @@ const promise = new Promise(executorFn);
```javascript
const loginAlert = () => {
console.log("Login");
console.log('Login');
};
setTimeout(loginAlert, 6000);
@@ -1247,7 +1247,7 @@ setTimeout(loginAlert, 6000);
```javascript
const promise = new Promise((resolve, reject) => {
setTimeout(() => {
resolve("Result");
resolve('Result');
}, 200);
});
@@ -1257,7 +1257,7 @@ promise.then(
},
(err) => {
console.error(err);
},
}
);
```
@@ -1266,7 +1266,7 @@ promise.then(
```javascript
const promise = new Promise((resolve, reject) => {
setTimeout(() => {
reject(Error("Promise Rejected Unconditionally."));
reject(Error('Promise Rejected Unconditionally.'));
}, 1000);
});
@@ -1299,12 +1299,28 @@ Promise.all([promise1, promise2]).then((res) => {
});
```
### Promise.allSettled()
```javascript
const promise1 = Promise.resolve(3);
const promise2 = new Promise((resolve, reject) => {
setTimeout(() => {
reject(2);
}, 100);
});
Promise.allSettled([promise1, promise2]).then((res) => {
console.log(res[0].status);
console.log(res[1].status);
});
```
### Avoiding nested Promise and .then()
```javascript
const promise = new Promise((resolve, reject) => {
setTimeout(() => {
resolve("*");
resolve('*');
}, 1000);
});
@@ -1313,7 +1329,7 @@ const twoStars = (star) => {
};
const oneDot = (star) => {
return star + ".";
return star + '.';
};
const print = (val) => {
@@ -1328,7 +1344,7 @@ promise.then(twoStars).then(oneDot).then(print);
```javascript
const executorFn = (resolve, reject) => {
console.log("The executor function of the promise!");
console.log('The executor function of the promise!');
};
const promise = new Promise(executorFn);
@@ -1337,11 +1353,15 @@ const promise = new Promise(executorFn);
### Chaining multiple .then()
```javascript
const promise = new Promise((resolve) => setTimeout(() => resolve("dAlan"), 100));
const promise = new Promise((resolve) =>
setTimeout(() => resolve('dAlan'), 100)
);
promise
.then((res) => {
return res === "Alan" ? Promise.resolve("Hey Alan!") : Promise.reject("Who are you?");
return res === 'Alan'
? Promise.resolve('Hey Alan!')
: Promise.reject('Who are you?');
})
.then(
(res) => {
@@ -1349,7 +1369,7 @@ promise
},
(err) => {
console.error(err);
},
}
);
```
@@ -1362,7 +1382,7 @@ const mock = (success, timeout = 1000) => {
if (success) {
resolve({ status: 200, data: {} });
} else {
reject({ message: "Error" });
reject({ message: 'Error' });
}
}, timeout);
});
@@ -1384,7 +1404,7 @@ const someEvent = async () => {
function helloWorld() {
return new Promise((resolve) => {
setTimeout(() => {
resolve("Hello World!");
resolve('Hello World!');
}, 2000);
});
}
@@ -1392,13 +1412,13 @@ function helloWorld() {
const msg = async function () {
//Async Function Expression
const msg = await helloWorld();
console.log("Message:", msg);
console.log('Message:', msg);
};
const msg1 = async () => {
//Async Arrow Function
const msg = await helloWorld();
console.log("Message:", msg);
console.log('Message:', msg);
};
msg(); // Message: Hello World! <-- after 2 seconds
@@ -1411,7 +1431,7 @@ msg1(); // Message: Hello World! <-- after 2 seconds
let pro1 = Promise.resolve(5);
let pro2 = 44;
let pro3 = new Promise(function (resolve, reject) {
setTimeout(resolve, 100, "foo");
setTimeout(resolve, 100, 'foo');
});
Promise.all([pro1, pro2, pro3]).then(function (values) {
@@ -1426,14 +1446,14 @@ Promise.all([pro1, pro2, pro3]).then(function (values) {
function helloWorld() {
return new Promise((resolve) => {
setTimeout(() => {
resolve("Hello World!");
resolve('Hello World!');
}, 2000);
});
}
async function msg() {
const msg = await helloWorld();
console.log("Message:", msg);
console.log('Message:', msg);
}
msg(); // Message: Hello World! <-- after 2 seconds
@@ -1448,7 +1468,7 @@ try {
let user = JSON.parse(json); // <-- no errors
console.log(user.name); // no name!
} catch (e) {
console.error("Invalid JSON data!");
console.error('Invalid JSON data!');
}
```
@@ -1458,14 +1478,14 @@ try {
function helloWorld() {
return new Promise((resolve) => {
setTimeout(() => {
resolve("Hello World!");
resolve('Hello World!');
}, 2000);
});
}
async function msg() {
const msg = await helloWorld();
console.log("Message:", msg);
console.log('Message:', msg);
}
msg(); // Message: Hello World! <-- after 2 seconds
@@ -1489,7 +1509,7 @@ Also see: [JSON cheatsheet](/json)
```javascript
const xhr = new XMLHttpRequest();
xhr.open("GET", "mysite.com/getjson");
xhr.open('GET', 'mysite.com/getjson');
```
`XMLHttpRequest` is a browser-level API that enables the client to script data transfers via JavaScript, NOT part of the
@@ -1499,8 +1519,8 @@ JavaScript language.
```javascript
const req = new XMLHttpRequest();
req.responseType = "json";
req.open("GET", "/getdata?id=65");
req.responseType = 'json';
req.open('GET', '/getdata?id=65');
req.onload = () => {
console.log(xhr.response);
};
@@ -1512,13 +1532,13 @@ req.send();
```javascript
const data = {
fish: "Salmon",
weight: "1.5 KG",
units: 5,
fish: 'Salmon',
weight: '1.5 KG',
units: 5
};
const xhr = new XMLHttpRequest();
xhr.open("POST", "/inventory/add");
xhr.responseType = "json";
xhr.open('POST', '/inventory/add');
xhr.responseType = 'json';
xhr.send(JSON.stringify(data));
xhr.onload = () => {
@@ -1550,7 +1570,7 @@ fetch(url, {
### JSON Formatted
```javascript
fetch("url-that-returns-JSON")
fetch('url-that-returns-JSON')
.then((response) => response.json())
.then((jsonResponse) => {
console.log(jsonResponse);
@@ -1573,20 +1593,20 @@ fetch('url')
### Fetch API Function
```javascript
fetch("https://api-xxx.com/endpoint", {
method: "POST",
body: JSON.stringify({ id: "200" }),
fetch('https://api-xxx.com/endpoint', {
method: 'POST',
body: JSON.stringify({ id: '200' })
})
.then(
(response) => {
if (response.ok) {
return response.json();
}
throw new Error("Request failed!");
throw new Error('Request failed!');
},
(networkError) => {
console.log(networkError.message);
},
}
)
.then((jsonResponse) => {
console.log(jsonResponse);
@@ -1600,7 +1620,7 @@ const getSuggestions = async () => {
const wordQuery = inputField.value;
const endpoint = `${url}${queryParams}${wordQuery}`;
try {
const response = await fetch(endpoint, { cache: "no-cache" });
const response = await fetch(endpoint, { cache: 'no-cache' });
if (response.ok) {
const jsonResponse = await response.json();
}
+314
View File
@@ -0,0 +1,314 @@
---
title: Jest Cheat Sheet
date: 2022-09-09 00:00:00
background: bg-blue-500
description: A complete cheat sheet on Jest for testing React applications effectively.
tags: React
Testing
Jest
categories:
- Testing
intro:
Jest is a JavaScript testing framework designed by Facebook. It works out of the box with modern
JavaScript apps especially those built with React or Node.js. Its main goal is to simplify testing by providing all required features in one package test runner, assertion library, mocking, spies, coverage reports, and snapshot testing.
---
---
## A Quick Overview to Jest
Jest is a delightful JavaScript testing framework maintained by Facebook. It is widely used for **unit testing**, **integration testing**, and even **end-to-end testing** in modern JavaScript and Node.js applications. Jest comes with a powerful set of features, including a built-in test runner, assertion library, mocking utilities, snapshot testing, and test coverage reporting.
This guide targets **Jest v20** and gives a concise yet practical overview of how to use it effectively.
### Key Concepts Explained
- **`describe()`**: Used to group related test cases into a test suite.
- **`test()` / `it()`**: Define a single test case. `it()` is just a BDD-style alias for `test()`.
- **`expect()`**: Assertion library that checks whether a value meets expectations.
- **`beforeEach()` / `afterEach()`**: Runs code before or after every test in a suite.
- **`beforeAll()` / `afterAll()`**: Runs setup/teardown code once before or after all tests.
- **`.only` / `.skip`**: Focus or ignore specific tests/suites.
- **Snapshot testing**: Captures the rendered output and compares it across test runs.
- **Mock functions**: Simulate function behavior or monitor how functions are called.
- **Timer mocks**: Test time-based behavior like `setTimeout()` and `setInterval()`.
- **Async testing**: Write tests that handle Promises or `async/await`.
---
### 🚀 Quick Start
```bash
npm install --save-dev jest babel-jest
```
Add this to your `package.json`:
```json
"scripts": {
"test": "jest"
}
```
Run your tests:
```bash
npm test -- --watch
```
📖 See: [Getting Started](https://jestjs.io/docs/getting-started)
---
## ✍️ Writing Tests
```js
describe('My work', () => {
test('works', () => {
expect(2).toEqual(2);
});
});
```
- **describe**: Group related tests.
- **test** or **it**: Define individual test cases.
- **expect**: Make assertions.
🔄 `it()` is an alias for `test()`.
---
## 🔧 Setup Hooks
Use these for setup/teardown routines:
```js
beforeEach(() => { ... });
afterEach(() => { ... });
beforeAll(() => { ... });
afterAll(() => { ... });
```
---
## 🎯 Focusing or Skipping Tests
**Focusing tests:**
```js
describe.only(...);
it.only(...); // or fit()
```
**Skipping tests:**
```js
describe.skip(...);
it.skip(...); // or xit()
```
---
## 🏁 Optional CLI Flags
| Flag | Description |
| --------------------- | --------------------------------------- |
| `--coverage` | Show test coverage summary |
| `--detectOpenHandles` | Detect unclosed handles (e.g., sockets) |
| `--runInBand` | Run tests serially (useful for CI) |
---
## ✅ Expectations (Matchers)
### Basic
```js
expect(value).not.toBe(value);
expect(value).toEqual(value);
expect(value).toBeTruthy();
```
> Note: `toEqual` performs deep equality.
### Snapshots
```js
expect(value).toMatchSnapshot();
expect(value).toMatchInlineSnapshot();
```
> Inline snapshots require Prettier.
### Errors
```js
expect(fn).toThrow(error);
expect(fn).toThrowErrorMatchingSnapshot();
```
### Booleans
```js
expect(value).toBeFalsy();
expect(value).toBeNull();
expect(value).toBeTruthy();
expect(value).toBeUndefined();
expect(value).toBeDefined();
```
### Numbers
```js
expect(value).toBeCloseTo(number, digits);
expect(value).toBeGreaterThan(number);
expect(value).toBeLessThanOrEqual(number);
```
### Objects
```js
expect(value).toBeInstanceOf(Class);
expect(value).toMatchObject(obj);
expect(value).toHaveProperty('key', value);
```
### Arrays/Strings
```js
expect(value).toContain(item);
expect(value).toHaveLength(number);
expect(value).toMatch(/pattern/);
```
### Custom Matchers
```js
expect.extend(customMatchers);
expect.any(Constructor);
expect.assertions(1);
```
---
## ⏱️ Async Tests
### Promises
```js
test('resolves correctly', () => {
return somePromise().then(data => {
expect(data).toEqual(...);
});
});
```
### Async/Await
```js
test('awaits correctly', async () => {
const result = await asyncFunc();
expect(result).toBe(...);
});
```
📖 See: [Jest Async Testing](https://jestjs.io/docs/asynchronous)
---
## 📸 Snapshot Testing
```js
it('renders correctly', () => {
const output = something();
expect(output).toMatchSnapshot();
});
```
For React components:
```js
import renderer from 'react-test-renderer';
it('matches snapshot', () => {
const tree = renderer.create(<Component />).toJSON();
expect(tree).toMatchSnapshot();
});
```
---
## ⏲️ Timers
```js
jest.useFakeTimers();
it('delays call', () => {
jest.runOnlyPendingTimers();
jest.runAllTimers();
});
```
📖 See: [Timer Mocks](https://jestjs.io/docs/timer-mocks)
---
## 🧪 Mock Functions
### Creating Mocks
```js
const fn = jest.fn();
const squared = jest.fn((n) => n * n);
```
### Assertions
```js
expect(fn).toHaveBeenCalled();
expect(fn).toHaveBeenCalledTimes(2);
expect(fn).toHaveBeenCalledWith(arg1, arg2);
```
### Flexible Matchers
```js
expect(fn).toHaveBeenCalledWith(expect.any(String));
expect(fn).toHaveBeenCalledWith(expect.arrayContaining([1, 2]));
```
### Instances
```js
const MyClass = jest.fn();
const a = new MyClass();
const b = new MyClass();
MyClass.mock.instances; // [a, b]
```
### Call Data
```js
fn.mock.calls.length;
fn.mock.calls[0][0];
```
### Return Values
```js
jest.fn().mockReturnValue('hello');
jest.fn().mockReturnValueOnce('hi');
```
### Mock Implementations
```js
const fn = jest
.fn()
.mockImplementationOnce(() => 1)
.mockImplementationOnce(() => 2);
```
---
This comprehensive guide helps you get started with Jest testing or use it like a pro. It pairs perfectly with the React Testing Library for a user-centric testing workflow.
+42 -39
View File
@@ -28,7 +28,10 @@ plugins:
#### Official CDN
```html {.wrap}
<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
crossorigin="anonymous"
></script>
```
### jQuery syntax
@@ -40,11 +43,11 @@ $(selector).methodOrFunction();
#### Example:
```javascript
$("#menu").on("click", function () {
$('#menu').on('click', function () {
$(this).hide();
});
$("body").css("background", "red");
$('body').css('background', 'red');
```
### jQuery document ready
@@ -52,14 +55,14 @@ $("body").css("background", "red");
```javascript
$(document).ready(function () {
// Runs after the DOM is loaded.
alert("DOM fully loaded!");
alert('DOM fully loaded!');
});
```
```javascript
$(function () {
// Runs after the DOM is loaded.
alert("DOM fully loaded!");
alert('DOM fully loaded!');
});
```
@@ -68,15 +71,15 @@ $(function () {
### Examples {.secondary}
```javascript
$("button").click(() => {
$(":button").css("color", "red");
$('button').click(() => {
$(':button').css('color', 'red');
});
```
#### Combining selectors
```javascript
$("selector1, selector2 ...selectorn");
$('selector1, selector2 ...selectorn');
```
### Basics
@@ -175,32 +178,32 @@ $("selector1, selector2 ...selectorn");
### Examples {.secondary .row-span-2}
```javascript
$("h2").css({
color: "blue",
backgroundColor: "gray",
fontSize: "24px",
$('h2').css({
color: 'blue',
backgroundColor: 'gray',
fontSize: '24px'
});
```
#### jQuery addClass
```javascript
$(".button").addClass("active");
$('.button').addClass('active');
```
#### jQuery removeClass
```javascript
$(".button").on("mouseleave", (evt) => {
$('.button').on('mouseleave', (evt) => {
let e = evt.currentTarget;
$(e).removeClass("active");
$(e).removeClass('active');
});
```
#### jQuery .toggleClass
```javascript
$(".choice").toggleClass("highlighted");
$('.choice').toggleClass('highlighted');
```
### Attributes
@@ -268,15 +271,15 @@ $(".choice").toggleClass("highlighted");
```javascript
/*<span>Span.</span>*/
$("span").after("<p>Paragraph.</p>");
$('span').after('<p>Paragraph.</p>');
/*<span>Span.</span><p>Paragraph.</p>*/
/*<span>Span.</span>*/
$("<span>Span.</span>").replaceAll("p");
$('<span>Span.</span>').replaceAll('p');
/*<p>Span.</p>*/
/*<span>This is span.</span>*/
$("span").wrap("<p></p>");
$('span').wrap('<p></p>');
/*<p><span>This is span.</span></p>*/
```
@@ -389,25 +392,25 @@ $("span").wrap("<p></p>");
```javascript
// A mouse event 'click'
$("#menu-button").on("click", () => {
$("#menu").show();
$('#menu-button').on('click', () => {
$('#menu').show();
});
// A keyboard event 'keyup'
$("#textbox").on("keyup", () => {
$("#menu").show();
$('#textbox').on('keyup', () => {
$('#menu').show();
});
// A scroll event 'scroll'
$("#menu-button").on("scroll", () => {
$("#menu").show();
$('#menu-button').on('scroll', () => {
$('#menu').show();
});
```
#### Event object
```javascript
$("#menu").on("click", (event) => {
$('#menu').on('click', (event) => {
$(event.currentTarget).hide();
});
```
@@ -415,19 +418,19 @@ $("#menu").on("click", (event) => {
#### Method chaining
```javascript
$("#menu-btn")
.on("mouseenter", () => {
$("#menu").show();
$('#menu-btn')
.on('mouseenter', () => {
$('#menu').show();
})
.on("mouseleave", () => {
$("#menu").hide();
.on('mouseleave', () => {
$('#menu').hide();
});
```
#### Prevents the event
```javascript
$("p").click(function (event) {
$('p').click(function (event) {
event.stopPropagation();
// Do something
});
@@ -537,18 +540,18 @@ $("p").click(function (event) {
### Examples {.secondary .row-span-2}
```javascript
$("#menu-button").on("click", () => {
$('#menu-button').on('click', () => {
// $('#menu').fadeIn(400, 'swing')
$("#menu").fadeIn();
$('#menu').fadeIn();
});
```
#### fadeOut effect
```javascript
$("#menu-button").on("click", () => {
$('#menu-button').on('click', () => {
// $('#menu').fadeOut(400, 'swing')
$("#menu").fadeOut();
$('#menu').fadeOut();
});
```
@@ -606,13 +609,13 @@ $("#menu-button").on("click", () => {
$.ajax({
url: this.action,
type: this.method,
data: $(this).serialize(),
data: $(this).serialize()
})
.done(function (server_data) {
console.log("success" + server_data);
console.log('success' + server_data);
})
.fail(function (jqXHR, status, err) {
console.log("fail" + err);
console.log('fail' + err);
});
```
+21 -21
View File
@@ -213,12 +213,12 @@ Begins with `[` and ends with `]`
```javascript
let myObject = {
name: "Jason",
last: "Doe",
name: 'Jason',
last: 'Doe',
age: 39,
gender: "M",
gender: 'M',
salary: 70000,
married: true,
married: true
};
```
@@ -242,10 +242,10 @@ let myObject = {
age: 2,
gender: 3,
salary: 4,
married: 5,
married: 5
},
jdoe: ["Jason", "Doe", 39, "M", 70000, true],
jsmith: ["Tom", "Smith", 42, "F", 80000, true],
jdoe: ['Jason', 'Doe', 39, 'M', 70000, true],
jsmith: ['Tom', 'Smith', 42, 'F', 80000, true]
};
```
@@ -264,29 +264,29 @@ let myObject = {
```javascript
let myArray = [
{
name: "Jason",
last: "Doe",
name: 'Jason',
last: 'Doe',
age: 39,
gender: "M",
gender: 'M',
salary: 70000,
married: true,
married: true
},
{
name: "Tom",
last: "Smith",
name: 'Tom',
last: 'Smith',
age: 42,
gender: "F",
gender: 'F',
salary: 80000,
married: true,
married: true
},
{
name: "Amy",
last: "Burnquist",
name: 'Amy',
last: 'Burnquist',
age: 29,
gender: "F",
gender: 'F',
salary: 60000,
married: false,
},
married: false
}
];
```
@@ -303,7 +303,7 @@ let myArray = [
### Access Array
```javascript
let myArray = ["Jason", "Doe", 39, "M", 70000, true];
let myArray = ['Jason', 'Doe', 39, 'M', 70000, true];
```
---
+1 -1
View File
@@ -550,7 +550,7 @@ fun main() {
### Default Parameters
```kotlin {.wrap}
fun favoriteLanguage(name, language = "Kotlin") {
fun favoriteLanguage(name: String, language: String = "Kotlin") {
println("Hello, $name. Your favorite programming language is $language")
}
+2 -3
View File
@@ -200,7 +200,7 @@ Example based on KaTeX showing on one line: `KaTeX:\int_0^\infty x^2 dx`
### `KaTeX:\LaTeX` math constructs {.col-span-3}
| 预览 | 方法 | 预览 | 方法 | 预览 | 方法 |
| Preview | Method | Preview | Method | Preview | Method |
| :---------------------- | :--------------------------- | :---------------------- | :--------------------------- | :--------------------------- | :-------------------------------- |
| `KaTeX:\frac{abc}{xyz}` | <pur>`\frac{abc}{xyz}`</pur> | `KaTeX:\overline{abc}` | <pur>`\overline{abc}`</pur> | `KaTeX:\overrightarrow{abc}` | <pur>`\overrightarrow{abc}`</pur> |
| `KaTeX:f'` | <pur>`f'`</pur> | `KaTeX:\underline{abc}` | <pur>`\underline{abc}`</pur> | `KaTeX:\overleftarrow{abc}` | <pur>`\overleftarrow{abc}`</pur> |
@@ -481,7 +481,7 @@ The pair of expressions `\left` `KaTeX:s_1` and `\right` `KaTeX:s_2` can be used
{.left-align}
### 可扩展箭头 {.col-span-3}
### Extensible arrows {.col-span-3}
| :- | :- | :- | :- |
| :------------------------------- | :------------------------------------ | :-------------------------------- | :------------------------------------- |
@@ -909,7 +909,6 @@ x = \begin{cases}
\end{itemize}
```
### Ordered List
<!--rehype:style=flex:1;-->
+2 -2
View File
@@ -143,7 +143,7 @@ ___
````markdown
```javascript
console.log("This is a block code");
console.log('This is a block code');
```
````
@@ -228,7 +228,7 @@ A markdown table generator: [tableconvert.com](https://tableconvert.com/)
```markdown
![alt text][logo]
[logo]: /images/logo.png "Logo Title"
[logo]: /images/logo.png 'Logo Title'
```
### Backslash escapes
+266
View File
@@ -0,0 +1,266 @@
---
title: 'Matplotlib'
date: 06-06-2025
background: bg-[#1a073e]
tags:
- 'data visualization'
- 'matplotlib'
- 'plotting'
categories:
- 'Python'
intro: |
[Matplotlib](https://matplotlib.org/) is a comprehensive library for creating static, animated, and interactive plots in Python.
This cheat sheet provides a quick reference from basic to advanced usage, covering essential features for data science, machine learning, and scientific computing.
plugins:
- copyCode
---
---
## Getting Started {.cols-2}
### Importing
```python
import matplotlib.pyplot as plt # Core plotting library
import numpy as np # For numerical operations
```
### Basic Plot
```python
x = np.linspace(0, 10, 100) # 100 points between 0 and 10
y = np.sin(x) # Sine function values
plt.plot(x, y) # Create a line plot
plt.show() # Display the plot
```
---
## Plot Types {.cols-2}
### Line Plot
```python
plt.plot(x, y) # Line plot of y vs x
plt.title("Sine Wave") # Set title
plt.xlabel("x-axis") # Label x-axis
plt.ylabel("y-axis") # Label y-axis
plt.grid(True) # Show gridlines
plt.show()
```
### Scatter Plot
```python
plt.scatter(x, y) # Scatter plot
plt.title("Scatter Plot")
plt.show()
```
### Bar Plot
```python
categories = ['A', 'B', 'C']
values = [10, 20, 15]
plt.bar(categories, values) # Vertical bar chart
plt.title("Bar Chart")
plt.show()
```
### Horizontal Bar Plot
```python
plt.barh(categories, values) # Horizontal bar chart
plt.title("Horizontal Bar Chart")
plt.show()
```
### Histogram
```python
data = np.random.randn(1000) # Random normal distribution
plt.hist(data, bins=30) # Histogram with 30 bins
plt.title("Histogram")
plt.show()
```
### Pie Chart
```python
sizes = [25, 35, 20, 20]
labels = ['A', 'B', 'C', 'D']
plt.pie(sizes, labels=labels, autopct='%1.1f%%') # Pie chart with % labels
plt.title("Pie Chart")
plt.show()
```
---
## Customization {.row-span-2}
| Feature | Code Example | Description |
| --------------- | ------------------------------------------------------------------------------------ | ------------------------------------------- |
| Title | `plt.title("Title")` | Set the title of the plot |
| X/Y Labels | `plt.xlabel("X")`, `plt.ylabel("Y")` | Label the axes |
| Grid | `plt.grid(True)` | Show grid |
| Legend | `plt.legend(["line1"])` | Add legend |
| Line Style | `plt.plot(x, y, linestyle='--')` | Dashed line |
| Color | `plt.plot(x, y, color='green')` | Set line color |
| Marker | `plt.plot(x, y, marker='o')` | Show markers on points |
| Axis Limits | `plt.xlim(0, 10)`, `plt.ylim(-1, 1)` | Set axis range |
| Tick Labels | `plt.xticks([...])`, `plt.yticks([...])` | Customize tick positions |
| Text Annotation | `plt.text(5, 0, "Midpoint")` | Add text at a specific coordinate |
| Arrow | `plt.annotate("Peak", xy=(7, 1), xytext=(6, 1.5), arrowprops=dict(arrowstyle="->"))` | Add annotation arrow |
| Style Sheets | `plt.style.use('ggplot')` | Use predefined styles like `seaborn`, `bmh` |
---
## Subplots & Layouts
### Multiple Subplots
```python
fig, axs = plt.subplots(2, 2) # Create 2x2 grid of subplots
axs[0, 0].plot(x, y) # Top-left subplot
axs[0, 1].scatter(x, y) # Top-right subplot
axs[1, 0].bar(categories, values) # Bottom-left subplot
axs[1, 1].hist(data) # Bottom-right subplot
plt.tight_layout() # Adjust spacing to prevent overlap
plt.show()
```
### Figure Size
```python
plt.figure(figsize=(10, 5)) # Set figure size (width, height in inches)
```
---
## Advanced Visualizations {.cols-2}
### Heatmap
```python
data = np.random.rand(10, 10) # Random 10x10 matrix
plt.imshow(data, cmap='hot', interpolation='nearest') # Display as image
plt.colorbar() # Show color scale
plt.title("Heatmap")
plt.show()
```
### Contour Plot
```python
X, Y = np.meshgrid(x, x)
Z = np.sin(X) * np.cos(Y)
plt.contour(X, Y, Z) # Contour lines
plt.title("Contour Plot")
plt.show()
```
### 3D Plot
```python
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d') # 3D subplot
ax.plot3D(x, y, np.cos(x)) # 3D line
plt.title("3D Plot")
plt.show()
```
---
## Working with Images
```python
import matplotlib.image as mpimg
img = mpimg.imread('image.jpg') # Load image
plt.imshow(img) # Display image
plt.axis('off') # Hide axes
plt.title("Image Display")
plt.show()
```
---
## For Machine Learning
### Plotting Loss vs Epoch
```python
epochs = range(1, 11)
loss = [0.9, 0.7, 0.5, 0.4, 0.3, 0.25, 0.2, 0.18, 0.15, 0.13]
plt.plot(epochs, loss)
plt.title("Training Loss")
plt.xlabel("Epoch")
plt.ylabel("Loss")
plt.show()
```
### Confusion Matrix (Heatmap)
```python
from sklearn.metrics import confusion_matrix
import seaborn as sns
y_true = [0, 1, 2, 2, 0]
y_pred = [0, 0, 2, 2, 1]
cm = confusion_matrix(y_true, y_pred) # Create confusion matrix
sns.heatmap(cm, annot=True, fmt='d', cmap='Blues') # Heatmap visualization
plt.title("Confusion Matrix")
plt.show()
```
### ROC Curve
```python
from sklearn.metrics import roc_curve, auc
fpr, tpr, _ = roc_curve([0, 0, 1, 1], [0.1, 0.4, 0.35, 0.8]) # Compute ROC
roc_auc = auc(fpr, tpr) # Area under curve
plt.plot(fpr, tpr, label=f'AUC = {roc_auc:.2f}')
plt.plot([0, 1], [0, 1], 'k--') # Diagonal line
plt.xlabel("False Positive Rate")
plt.ylabel("True Positive Rate")
plt.title("ROC Curve")
plt.legend()
plt.show()
```
---
## Saving Plots
```python
plt.savefig("figure.png", dpi=300, bbox_inches='tight') # Save plot to file
```
---
## Show & Clear
```python
plt.show() # Show plot window
plt.clf() # Clear current figure (useful when plotting in loops)
plt.close() # Close figure window (useful in scripts or GUI apps)
```
---
## More Useful Functions
| Function | Use Case |
| ------------------------------ | ------------------------------- |
| `plt.fill_between(x, y1, y2)` | Fill area between curves |
| `plt.axhline(y=value)` | Draw horizontal line at y |
| `plt.axvline(x=value)` | Draw vertical line at x |
| `plt.errorbar(x, y, yerr=...)` | Plot with error bars |
| `plt.twinx()` | Create secondary y-axis |
| `plt.subplots_adjust(...)` | Manually adjust subplot spacing |
| `plt.gca()` | Get current axes |
| `plt.gcf()` | Get current figure |
---
+8 -9
View File
@@ -1,8 +1,7 @@
---
title: MongoDB
date: 2023-04-05
background:
bg-gradient-to-r from-green-900 via-green-600 to-green-400 hover:from-green-900 hover:via-green-700 hover:to-green-500
background: bg-gradient-to-r from-green-900 via-green-600 to-green-400 hover:from-green-900 hover:via-green-700 hover:to-green-500
tags:
- NoSQL
- DB
@@ -91,14 +90,14 @@ db.coll.findOneAndDelete({"name": "Max"})
```mongosh
db.coll.updateMany({"_id": 1}, {$set: {"year": 2016}}) // WARNING! Replaces the entire document where "_id" = 1
db.coll.updateOne({"_id": 1}, {$set: {"year": 2016, name: "Max"}})
db.coll.updateOne({"_id": 1}, {$unset: {"year": 1}})
db.coll.updateOne({"_id": 1}, {$rename: {"year": "date"} })
db.coll.updateOne({"_id": 1}, {$inc: {"year": 5}})
db.coll.updateOne({"_id": 1}, {$mul: {price: 2}})
db.coll.updateOne({"_id": 1}, {$set: {"year": 2016, name: "Max"}})
db.coll.updateOne({"_id": 1}, {$unset: {"year": 1}})
db.coll.updateOne({"_id": 1}, {$rename: {"year": "date"} })
db.coll.updateOne({"_id": 1}, {$inc: {"year": 5}})
db.coll.updateOne({"_id": 1}, {$mul: {price: 2}})
db.coll.updateOne({"_id": 1}, {$min: {"imdb": 5}})
db.coll.updateOne({"_id": 1}, {$max: {"imdb": 8}})
db.coll.updateMany({"_id": {$lt: 10}}, {$set: {"lastModified": ISODate()}})
db.coll.updateOne({"_id": 1}, {$max: {"imdb": 8}})
db.coll.updateMany({"_id": {$lt: 10}}, {$set: {"lastModified": ISODate()}})
```
### Array {.row-span-2}
+227
View File
@@ -0,0 +1,227 @@
---
title: NetworkPorts
date: 2025-06-19 15:00:00
background: bg-[#71d1f9]
tags:
- Network
categories:
- Other
intro: |
A network ports cheat sheet with non-exhaustive list of ports used according to their field of application.
plugins:
---
## Networking and Infrastructure
### Web Ports
| **Port** | **Nom** | **Description** |
|:-------------| :--------------- |:----------------------------|
| `80` | HTTP | HyperText Transfer Protocol |
| `443` | HTTPS | HTTP Secure |
| `8080` | HTTP-Alt | Alternative HTTP Port |
| `8443` | HTTPS-Alt | Alternative HTTPS Port |
| `8000` | HTTP-Proxy | For proxy server HTTP |
| `8008` | HTTP-Backup | Backup port for HTTP |
| `8888` | HTTP-Alternative | Alternative port for HTTP |
### Network and Infrastructure Service Ports
| **Port** | **Nom** | **Description** |
|:---------| :-------- |:------------------------------------|
| `53` | DNS | Domain Name System |
| `67`/`68`| DHCP | Dynamic Host Configuration Protocol |
| `123` | NTP | Network Time Protocol |
| `161` | SNMP | Simple Network Management Protocol |
| `162` | SNMP-Trap | SNMP Trap Messages |
| `514` | Syslog | Logging system |
| `69` | TFTP | Trivial File Transfer Protocol |
### Virtualization and Containerization Service Ports
| **Port** | **Nom** | **Description** |
|:----------| :------------ |:--------------------------------|
| `2375` | Docker | Docker without TLS |
| `2376` | Docker | Docker with TLS |
| `6443` | Kubernetes | Kubernetes API Server |
| `8443` | Kubernetes | Alternative Kubernetes API port |
| `9100` | Node Exporter | Prometheus Node Exporter |
| `9090` | Prometheus | Prometheus Monitoring |
| `5672` | RabbitMQ | Message Broker RabbitMQ |
### Monitoring and Management Service Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:---------| :--------- |:------------------------------------------|
| `631` | IPP | Internet Printing Protocol |
| `873` | rsync | Remote Sync |
| `8086` | InfluxDB | Time Series Database InfluxDB |
| `9093` | Prometheus | Prometheus Alertmanager Alert Management |
## Data Management
### Data Base Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:----------| :------------------- |:--------------------------------------|
| `1433` | Microsoft SQL Server | Microsoft SQL Database Server |
| `3306` | MySQL | MySQL Database Management System |
| `5432` | PostgreSQL | PostgreSQL Database Management System |
| `1521` | Oracle | Oracle Database Management System |
| `27017` | MongoDB | MongoDB NoSQL Database |
| `11211` | Memcached | Memcached Memory Caching System |
| `6379` | Redis | Redis In-Memory Database |
## Communication Services
### Remote Ports
| **Port** | **Nom** | **Description** |
|:---------| :------ |:-----------------------------------|
| `22` | SSH | Secure Shell |
| `23` | Telnet | Unsecure remote terminal protocol |
| `3389` | RDP | Remote Desktop Protocol |
| `5900` | VNC | Virtual Network Computing |
| `69` | TFTP | Trivial File Transfer Protocol |
| `179` | BGP | Border Gateway Protocol |
| `113` | Ident | Ident Protocol |
### Messagerie Service Ports
| **Port** | **Nom** | **Description** |
|:---------| :-------------- |:---------------------------------|
| `25` | SMTP | Simple Mail Transfer Protocol |
| `465` | SMTPS | SMTP Secure |
| `587` | SMTP-Submission | Port for email submission |
| `110` | POP3 | Post Office Protocol v3 |
| `995` | POP3S | POP3 Secure |
| `143` | IMAP | Internet Message Access Protocol |
| `993` | IMAPS | IMAP Secure |
### Instant Messaging and VoIP Service Ports
| **Port** | **Nom** | **Description** |
|:---------| :---------- |:-------------------------------------------|
| `5060` | SIP | Session Initiation Protocol |
| `5061` | SIP-Secure | SIP over TLS |
| `1720` | H.323 | Communication protocol for VoIP |
| `3478` | STUN | Session Traversal Utilities for NAT |
| `1234` | Skype | Communication VoIP via Skype |
| `5222` | XMPP | Extensible Messaging and Presence Protocol |
| `5223` | XMPP-Secure | XMPP over SSL |
### Voice and Video Service Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:----------------| :--------- |:--------------------------------------------------------|
| `5060` | SIP | Session Initiation Protocol pour VoIP |
| `5061` | SIP Secure | SIP sur TLS |
| `16384`-`32767` | RTP | Real-time Transport Protocol pour streaming audio/vidéo |
| `3478` | STUN | Session Traversal Utilities for NAT |
| `5004` | RTP | Real-time Transport Protocol for media |
| `5222` | XMPP | Extensible messaging protocol for instant messaging |
| `9000` | WebRTC | Protocols for real-time communication via browser |
### P2P Download and Sharing Service Ports
| **Port** | **Nom** | **Description** |
|:--------------| :--------- |:---------------------------------------|
| `6881`-`6889` | BitTorrent | Ports used by BitTorrent clients |
| `51413` | BitTorrent | Default port for BitTorrent |
| `6969` | BitTorrent | Default port for BitTorrent trackers |
| `1194` | OpenVPN | Also used for VPNs and some P2P |
| `4661` | uTorrent | Port used by uTorrent client |
| `37152` | Steam | Used by Steam platform for downloads |
## Security Services
### Security Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:---------| :---------- | :----------------------------------------- |
| `1194` | OpenVPN | Virtual Private Network |
| `1701` | L2TP | Layer 2 Tunneling Protocol |
| `1723` | PPTP | Point-to-Point Tunneling Protocol |
| `4500` | IPsec-NAT-T | IPsec NAT Traversal |
| `500` | IKE | Internet Key Exchange |
| `1812` | RADIUS | Remote Authentication Dial-In User Service |
| `3306` | MySQL SSL | MySQL avec chiffrement SSL |
### Cryptography and Security Service Ports
| **Port** | **Nom** | **Description** |
|:---------| :-------- |:---------------------------------------|
| `443` | HTTPS | HTTP Secure avec SSL/TLS |
| `993` | IMAPS | IMAP sécurisé avec SSL/TLS |
| `995` | POP3S | POP3 sécurisé avec SSL/TLS |
| `636` | LDAPS | LDAP sécurisé avec SSL/TLS |
| `8443` | HTTPS-Alt | Alternative port for HTTPS |
| `8888` | SSL Proxy | Secure proxy using SSL/TLS |
| `563` | SNEWS | Secure Network News Transfer Protocol |
## System and Application Services
### File Service Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:---------| :---------- |:----------------------------------------|
| `20` | FTP-DATA | FTP data transfer |
| `21` | FTP | File Transfer Protocol |
| `22` | SFTP | Secure File Transfer Protocol (via SSH) |
| `445` | SMB | Server Message Block (Windows Shares) |
| `139` | NetBIOS-SSN | NetBIOS Session Service |
| `2049` | NFS | Network File System |
| `548` | AFP | Apple Filing Protocol |
### Miscellaneous System and App Ports
| **Port** | **Nom** | **Description** |
|:------------| :------ |:----------------------------------------------|
| `137`-`139` | NetBIOS | NetBIOS services for naming and file sharing |
| `1900` | UPnP | Universal Plug and Play |
| `24800` | Vuze | Client BitTorrent Vuze |
| `32400` | Plex | Serveur multimédia Plex |
## Miscellaneous Services
### Gaming Service Ports {.col-span-2}
| **Port** | **Nom** | **Description** |
|:----------| :------------ |:---------------------------------|
| `27015` | Steam | Steam gaming platform |
| `7777` | Unreal Engine | Game servers using Unreal Engine |
| `27020` | Source Engine | Game servers using Source Engine |
| `28910` | Various Games | Various multiplayer games |
| `27000` | Various Games | Additional multiplayer games |
### Miscellaneous Service Ports
| **Port** | **Nom** | **Description** |
|:----------| :------ | :-------------------------------------------------------- |
| `500` | ISAKMP | Internet Security Association and Key Management Protocol |
| `520` | RIP | Routing Information Protocol |
| `1900` | UPnP | Universal Plug and Play |
| `3659` | RADIUS | Remote Authentication Dial-In User Service |
+314
View File
@@ -0,0 +1,314 @@
---
title: Nix
date: 2025-08-24 23:33:40
background: bg-[#304673]
tags:
categories:
- Programming
intro: |
The Nix quick reference cheat sheet that aims at providing help on writing basic nix code.
plugins:
- copyCode
---
## Types & Syntax
### String
```nix
let
x = "single-line string";
y = ''
multi-line string
'';
in
```
### Integer
```nix
let
x = -123;
y - 123;
in
```
### Float
```nix
let
x = -0.32;
y = 0.45;
in
```
### Boolean
```nix
let
x = true;
y = false;
in
```
### Null
```nix
let
x = null;
in
```
### Path
```nix
let
x = /absolute/path;
y = ./relative/path;
in
```
### Attribute Set
```nix
let
x = {
a = 1;
b = 2;
};
y = { c = 3; };
in
```
see [Attribute Sets](#attribute-sets)
### List
```nix
let
x = [ 1 2.0 ];
y = [
1
"this is a string"
23.0
null
];
in
```
### Comment
#### ↓ single-line comment
```nix
# your comment
```
#### ↓ multi-line comment
```nix
/*
your comment
*/
```
## Scoping
### Define Local Variable
```nix
let
x = 1;
y = 2;
in
x + y # -> returns 3
```
### Add Variables Into Scope
```nix
let
x = 1;
in
{ inherit x; }
```
#### ↓ desugars to
```nix
let
x = 1;
in
{ x = x; }
```
### Add Attributes Into Scope
```nix
let
x = { y = 1; };
in
{ inherit (x) y; }
```
#### ↓ desugars to
```nix
let
x = { y = 1; };
in
{ y = x.y; }
```
### Add All Attributes Into Scope
```nix
let
x = { y = 1; z = 2; };
in
with x;
y + z # -> returns 3
```
## Conditionals
### Define Conditionals
```nix
if x > 0
then 1
else -1
```
## Attribute Sets
### Define Attribute Sets
```nix
let
x = {
a = 1;
b = 2;
};
y = { c = 3; };
in
```
### Update Attribute Sets
```nix
{ x = 1; } // { y = 2; } # -> returns { x = 1; y = 2; }
{ x = 1; } // { x = 2; } # -> returns { x = 2; }
```
### Check For Attribute
```nix
let
x = { y = 1; };
in
x ? y # -> returns true
```
### Reference Attirbute Keys
```nix
let
x = { y = 1; };
in
x.y # -> returns 1
```
#### ↓ optional
```nix
let
x = { y = 1; };
in
x.z or 2 # -> returns 2
```
## Concatenation & Interpolation
### Concatenate Lists
```nix
[ 1 2 ] ++ [ 3 4 ] # -> returns [ 1 2 3 4 ]
```
### Concatenate Paths & Strings
```nix
/bin + /sh # -> returns /bin/sh
/bin + "/sh" # -> returns /bin/sh
"/bin" + "/sh" # -> returns "/bin/sh"
```
### Interpolate Strings
```nix
let
x = "bar";
in
"foo ${x} baz" # -> returns "foo bar baz"
```
## Functions
### Simple Function
```nix
let
f = x: x + 1;
in
f 1 # -> returns 2
```
### Multiple Arguments
```nix
let
f = x: y: [ x y ];
in
f 1 2 # -> returns [ 1 2 ]
```
### Named Arguments
```nix
let
f = {x, y}: x + y;
in
f { x=1; y=2; } # -> returns 3
```
#### ↓ ignoring arguments
```nix
let
f = {x, y, ... }: x + y;
in
f { x=1; y=2; z=3; } # -> returns 3
```
#### ↓ default values
```nix
let
f = {x, y ? 2 }: x + y;
in
f { x=1; } # -> returns 3
```
#### ↓ bind to variable
```nix
let
f = {x, y}@args: args.x + args.y;
in
f { x=1; y=2; } # -> returns 3
```
## Sources
- [NixOS/marketing](https://github.com/nixos/marketing) _(github.com)_
+138
View File
@@ -0,0 +1,138 @@
---
title: Nmap
date: 2025-06-17 08:30:00
background: bg-[#2a0d45]
tags:
- network
- scan
- port
categories:
- Linux Command
intro:
The [Nmap](https://nmap.org/) cheat sheet is a one-page reference sheet for the famous Network Mapper tool.
plugins:
- copyCode
---
## Getting Started
### Basic Usage :
```bash
# set your target in etc/hosts
# fast scan of all port of your target
nmap -p- -T5 target
# fast scan on port 80 with os detection
namp -p, 80 -T5 -O target
```
### Basic Options : {.col-span-2}
| Options | Purpose |
|:-------------------------|:------------------------------------------|
| `-p-` | all ports |
| `-p1-1023` | scan ports 1 to 1023 |
| `-F` | 100 most common ports |
| `-r` | scan ports in consecutive order |
| `-T<0-5>` | -T0 being the slowest and T5 the fastest |
| `--max-rate 50` | rate <= 50 packets/sec |
| `--min-rate 15` | rate >= 15 packets/sec |
| `--min-parallelism 100` | at least 100 probes in parallel |
## Nmap Intermediate Options
### Service Detections : {.col-span-2}
| Option | Meaning |
|:-----------------------------|:-----------------------------------------|
| `--traceroute` | run traceroute to target |
| `--script=SCRIPTS` | Nmap scripts to run |
| `-sC` or `--script=default` | run default scripts |
| `-O` | OS detection |
| `-sV` | Service version detection |
| `-A` | equivalent to `-sV -O -sC --traceroute` |
### Timing {.col-span-3}
| Option | Meaning |
|:--------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|
| `-T<0-5>` | Timing template – paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5) |
| `--min-parallelism <numprobes>` and `--max-parallelism <numprobes>` | Minimum and maximum number of parallel probes |
| `--min-rate <number>` and `--max-rate <number>` | Minimum and maximum rate (packets/second) |
| `--host-timeout` | Maximum amount of time to wait for a target host |
## Formating answers
### Details & Report {.col-span-2}
| Option | Purpose |
|:------------------|:---------------------------------------|
| `--reason` | explains how Nmap made its conclusion |
| `-v` | verbose |
| `-vv` | very verbose |
| `-d` | debugging |
| `-dd` | more details for debugging |
| `-oN <filename>` | Normal output |
| `-oX <filename>` | XML output |
| `-oG <filename>` | `grep`-able output |
| `-oA <basename>` | Output in all major formats |
## Advanced Technic
### Advanced Scan {.col-span-3}
| Options | Protocol | Main Function | Typical Use Case |
|------------|:---------|:------------------|:-----------------------------------------------|
| `-PR -sn` | **ARP** | Scan | Discovering devices on the local network (LAN) |
| `-PE -sn` | **ICMP** | Echo Scan | Checking if hosts are reachable (pinging) |
| `-PP -sn` | **ICMP** | Timestamp Scan | Gathering device time info (less common) |
| `-PM -sn` | **ICMP** | Address Mask Scan | Determining subnet mask info from hosts |
| `-PS -sn` | **TCP** | SYN Ping Scan | Detecting open TCP ports and live hosts |
| `-PA -sn ` | **TCP** | ACK Ping Scan | Identifying firewall rules and open ports |
| `-PU -sn` | **ICMP** | Ping Scan | Finding hosts with open UDP services |
## Investigation Exemple
### Verbose Os Quick port scan {.col-span-3}
```bash
nmap -sV -O -p- -T5 target
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-11-02 15:17 CET
Nmap scan report for target (10.10.158.161)
Host is up (0.021s latency).
Not shown: 65532 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.8 (Ubuntu Linux; protocol 2.0)
8009/tcp open ajp13 Apache Jserv (Protocol v1.3)
8080/tcp open http Apache Tomcat 8.5.5
Aggressive OS guesses: Linux 3.10 - 3.13 (95%), Linux 5.4 (95%), ASUS RT-N56U WAP (Linux 3.4) (95%),
Linux 3.16 (95%), Linux 3.1 (93%), Linux 3.2 (93%), AXIS 210A or 211 Network Camera (Linux 2.6.17) (93%),
Sony Android TV (Android 5.0) (93%), Android 5.0 - 6.0.1 (Linux 3.4) (93%), Android 5.1 (93%)
No exact OS matches for host (test conditions non-ideal).
Network Distance: 2 hops
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 39.94 seconds
# you can then use `nmap -A -p 22, 8009, 8080 target` on discovered ports
```
Do not use this tool without consent. For educational purposes, this example is coming from a Try Hack Me [machine](https://tryhackme.com/room/bsidesgtthompson).
## Also See
- [Nmap](https://nmap.org/)
+207
View File
@@ -0,0 +1,207 @@
---
title: Notion Shortcuts
date: 2025-04-24 12:51:00 # You might want to adjust this date
background: bg-gradient-to-l from-gray-400 to-gray-600 hover:from-blue-500 hover:to-purple-500 # Notion-like gradient, adjust as desired
tags:
- notion
- keyboard
- shortcuts
- productivity
- reference
categories:
- Productivity
- Software
intro:
A comprehensive quick reference guide for Notion keyboard shortcuts on Desktop and Web, designed to boost your
productivity.
plugins:
- copyCode
---
# Notion Keyboard Shortcuts {.cols-3}
## Most Popular / Essential {.col-span-3}
### Create & Navigate
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :--------------------------- | :----------------------- | :--------------------- |
| Create a new page | `Cmd` `N` | `Ctrl` `N` |
| Open new Notion window | `Cmd` `Shift` `N` | `Ctrl` `Shift` `N` |
| Quick Find (Search) | `Cmd` `P` | `Ctrl` `P` |
| Go back in page history | `Cmd` `[` | `Ctrl` `[` |
| Go forward in page history | `Cmd` `]` | `Ctrl` `]` |
| Go to parent page | `Cmd` `Shift` `U` | `Ctrl` `Shift` `U` |
| Open Page Link in New Tab | `Cmd` `Click` | `Ctrl` `Click` |
| Open Page Link in New Window | `Option` `Shift` `Click` | `Alt` `Shift` `Click` |
{.show-header .shortcuts}
### View & Mode
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :----------------------- | :----------------------- | :------------------------ |
| Toggle Dark/Light Mode | `Cmd` `Shift` `L` | `Ctrl` `Shift` `L` |
| Lock/Unlock current page | `Cmd` `Shift` `L` (Hold) | `Ctrl` `Shift` `L` (Hold) |
| Zoom In | `Cmd` `+` | `Ctrl` `+` |
| Zoom Out | `Cmd` `-` | `Ctrl` `-` |
| Reset Zoom | `Cmd` `0` | `Ctrl` `0` |
{.show-header .shortcuts}
---
# Markdown Style Formatting {.cols-1}
### On New Lines
Type the following at the beginning of an empty line, then press `Space`:
- `*`, `-`, or `+` : Bulleted list
- `[]` : To-do checkbox (Note: just the characters, no `Cmd`/`Ctrl`)
- `1.` : Numbered list
- `#` : H1 heading
- `##` : H2 heading
- `###` : H3 heading
- `>` : Toggle list
- `"` : Quote block
- `---` : Divider (three hyphens)
- ` ` : Code block (three backticks)
### Inline
- Wrap text with `**` or `__` for **Bold**.
- Wrap text with `*` or `_` for _Italics_.
- Wrap text with `~` for ~~Strikethrough~~.
- Wrap text with `` ` `` for `inline code`.
---
# Text Formatting & Editing {.cols-2}
### Basic Formatting
Select text first, then use the shortcut: | Action | Mac Shortcut | Windows/Linux Shortcut | |
:------------------------- | :------------------------ | :----------------------- | | Bold | `Cmd` `B` | `Ctrl` `B` | |
Italic | `Cmd` `I` | `Ctrl` `I` | | Underline | `Cmd` `U` | `Ctrl` `U` | | Strikethrough | `Cmd` `Shift` `S` | `Ctrl`
`Shift` `S` | | Inline Code | `Cmd` `E` | `Ctrl` `E` | | Create Link | `Cmd` `K` | `Ctrl` `K` | | Change Color /
Highlight | `Cmd` `Shift` `H` | `Ctrl` `Shift` `H` | | Clear Formatting | `Cmd` `\` | `Ctrl` `\` | {.show-header
.shortcuts}
### Block Type Conversion
Select the block(s) first, then use the shortcut: | Action | Mac Shortcut | Windows/Linux Shortcut | |
:------------------------- | :------------------------ | :----------------------- | | Turn into Text block | `Cmd`
`Option` `0` | `Ctrl` `Alt` `0` | | Turn into H1 Heading | `Cmd` `Option` `1` | `Ctrl` `Alt` `1` | | Turn into H2
Heading | `Cmd` `Option` `2` | `Ctrl` `Alt` `2` | | Turn into H3 Heading | `Cmd` `Option` `3` | `Ctrl` `Alt` `3` | |
Turn into To-do list | `Cmd` `Option` `4` | `Ctrl` `Alt` `4` | | Turn into Bulleted list | `Cmd` `Option` `5` | `Ctrl`
`Alt` `5` | | Turn into Numbered list | `Cmd` `Option` `6` | `Ctrl` `Alt` `6` | | Turn into Toggle list | `Cmd` `Option`
`7` | `Ctrl` `Alt` `7` | | Turn into Code block | `Cmd` `Option` `8` | `Ctrl` `Alt` `8` | | Turn into Page | `Cmd`
`Option` `9` | `Ctrl` `Alt` `9` | | Turn into Callout | `Cmd` `Option` `C` | `Ctrl` `Alt` `C` | {.show-header
.shortcuts}
### Editing
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :------------------------- | :-------------- | :--------------------- |
| New Line within same block | `Shift` `Enter` | `Shift` `Enter` |
{.show-header .shortcuts}
---
# Creating & Modifying Blocks {.cols-2}
### Creation & Selection
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :----------------------------------------- | :------------------ | :--------------------- |
| Create new text block below | `Enter` | `Enter` |
| Open the `/` command menu | `/` | `/` |
| Select current block | `Esc` | `Esc` |
| Select parent block | `Shift` `Esc` | `Shift` `Esc` |
| Select block above/below | `Up` / `Down` | `Up` / `Down` |
| Select multiple blocks | `Shift` `Up`/`Down` | `Shift` `Up`/`Down` |
| Select all blocks | `Cmd` `A` | `Ctrl` `A` |
| Edit selected block (or text within block) | `Enter` | `Enter` |
{.show-header .shortcuts}
### Moving & Structuring
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :-------------------------------------- | :------------------------- | :------------------------- |
| Duplicate selected block(s) | `Cmd` `D` | `Ctrl` `D` |
| Move selected block(s) up/down | `Cmd` `Shift` `Up`/`Down` | `Ctrl` `Shift` `Up`/`Down` |
| Indent block (nest) | `Tab` | `Tab` |
| Un-indent block | `Shift` `Tab` | `Shift` `Tab` |
| Expand/Collapse toggle list | `Cmd` `Option` `T` | `Ctrl` `Alt` `T` |
| Expand/Collapse all toggles | `Cmd` `Option` `Shift` `T` | `Ctrl` `Alt` `Shift` `T` |
| Open page from selected link/page block | `Cmd` `Enter` | `Ctrl` `Enter` |
| Delete selected block(s) | `Delete` or `Backspace` | `Delete` or `Backspace` |
| Turn block into a page | `Cmd` `Option` `9` | `Ctrl` `Alt` `9` |
| Move block(s) to another page | `Cmd` `Option` `Shift` `M` | `Ctrl` `Alt` `Shift` `M` |
{.show-header .shortcuts}
---
# Comments & Mentions {.cols-2}
### Comments
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :----------------------- | :---------------- | :--------------------- |
| Add comment to selection | `Cmd` `Shift` `M` | `Ctrl` `Shift` `M` |
{.show-header .shortcuts}
### Mentions & Links (Type in block)
- `@` + person's name: Mention a person
- `@` + page title: Mention/link a page
- `[[` + page title: Link another page
- `+` + page title: Link another page (alternative)
- `@` + date (e.g., `@today`, `@next tuesday`, `@1/15`): Add a date mention
- `@remind` + date + time (optional): Set a reminder
### Emoji
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :-------------------- | :--------------------- | :--------------------- |
| Emoji Picker (System) | `Cmd` `Ctrl` `Space` | `Win` `.` or `Win` `;` |
| Emoji Picker (Notion) | `:` + emoji name + `:` | `:` + emoji name + `:` |
{.show-header .shortcuts}
---
# Database Shortcuts {.cols-2}
### Navigation & Selection
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :------------------------- | :-------------------- | :--------------------- |
| Select row above/below | `Shift` `Up`/`Down` | `Shift` `Up`/`Down` |
| Open selected page(s) | `Cmd` `Enter` | `Ctrl` `Enter` |
| Edit property | `Enter` | `Enter` |
| Move to cell above/below | `Shift` `Enter` | `Shift` `Enter` |
| Move to cell left/right | `Tab` / `Shift` `Tab` | `Tab` / `Shift` `Tab` |
| Select column | `Cmd` `Shift` `K` | `Ctrl` `Shift` `K` |
| Select multiple cards/rows | `Shift` `Click` | `Shift` `Click` |
{.show-header .shortcuts}
### Other
| Action | Mac Shortcut | Windows/Linux Shortcut |
| :------------------------- | :---------------- | :--------------------- |
| Quick Find within Database | `Cmd` `Shift` `P` | `Ctrl` `Shift` `P` |
{.show-header .shortcuts}
---
## Also see
- [Official Notion Keyboard Shortcuts](https://www.notion.so/help/keyboard-shortcuts) _(notion.so)_
+26 -27
View File
@@ -53,7 +53,7 @@ $ opam install hex
#### Global Open
```ml
open Hex
open Hex
```
#### Local Open
@@ -61,7 +61,7 @@ open Hex
```ml
Hex.of_string "hex string"
let open Hex in
let open Hex in
of_string "to hex"
```
@@ -73,7 +73,7 @@ let open Hex in
(* A single line comment *)
(* A multi-line comment
* where we want to explain
* where we want to explain
* something complex *)
(* Outer comment
@@ -201,7 +201,7 @@ Lists are immutable
Bundle related data
```ml
type person = {
type person = {
name: string;
age: int
}
@@ -215,7 +215,7 @@ val zeno : person = {name = "Zeno"; age = 30}
Several different, but related types
```ml
type shape =
type shape =
| Circle of float
| Rectangle of float * float
@@ -225,8 +225,7 @@ type shape =
#### Aliases
Provide meaningful name
to complex or commonly used types
Provide meaningful name to complex or commonly used types
```ml
type point = float * float
@@ -242,7 +241,7 @@ val origin : point = (0., 0.)
#### Single parameter
```ml
let add_one x =
let add_one x =
let result = x + 1 in
result
@@ -265,10 +264,10 @@ let sum x y =
```ml
let str_concat (x, y) =
x ^ " " ^ y
x ^ " " ^ y
# str_concat ("Hello", "OCaml") ;;
- : string = "Hello Ocaml"
- : string = "Hello Ocaml"
```
### Recursive Functions
@@ -278,7 +277,7 @@ let str_concat (x, y) =
All recusive functions use the rec keyword
```ml
let rec factorial n =
let rec factorial n =
if n < 1 then 1 else n * factorial (n - 1)
```
@@ -289,7 +288,7 @@ The above can cause stackoverflow.
Makes use of a helper function and the acc argument.
```ml
let rec factorial_helper n acc =
let rec factorial_helper n acc =
if n = 0 then acc
else factorial_helper (n - 1) (n * acc)
```
@@ -316,7 +315,7 @@ Read from right to left, the first operation is `sum 2 3`
```ml
(* find log((x + y)!) *)
# sum 2 3
# sum 2 3
|> factorial
|> float_of_int
|> log ;;
@@ -332,26 +331,26 @@ Read from right to left, the first operation is `sum 2 3`
#### If Statement
```ml
let is_pos x =
let is_pos x =
if x > 0 then "positive" else "negative"
```
#### If else if
```ml
let f x =
let f x =
if x > 3 then "gt 3"
else if x < 3 then "lt 3"
else "eq 3"
else "eq 3"
```
#### Pattern Matching
```ml
let is_pos x =
match x > 0 with
let is_pos x =
match x > 0 with
| true -> "positive"
| false -> "negative"
| false -> "negative"
```
### Loops
@@ -360,7 +359,7 @@ let is_pos x =
```ml
for i = 1 to 5 do
print_int i
print_int i
done
```
@@ -369,7 +368,7 @@ done
Notice the `ref` is needed to have the while condition eventually become false.
```ml
let i = ref 0 in
let i = ref 0 in
while !i < 5 do
print_int !i;
i := !i + 1
@@ -393,7 +392,7 @@ let i = ref 0 in
```ml
(* int operator float operator *)
+ +. (* addition *)
+ +. (* addition *)
- -. (* subtraction *)
* *. (* multiplication *)
/ /. (* division *)
@@ -440,7 +439,7 @@ List.fold_left (+) 0 lst
#### Definition and Access
```ml
let scores =
let scores =
[("math", 91); ("phil", 89); ("stats", 94)]
# List.assoc "stats" scores;;
@@ -499,7 +498,7 @@ Maps are immutable key-value association tables.
(* the Map.Make functor creates the custom map module *)
# module StringMap = Map.Make(String);;
let books =
let books =
StringMap.empty
|> StringMap.add "Dune" ("Herbet", 1965)
|> StringMap.add "Neuromancer" ("Gibson", 1984)
@@ -522,17 +521,17 @@ let books =
Creates a new map since maps are immutable
```ml
let more_books = books
let more_books = books
|> StringMap.add "Foundation" ("Isaac Asimov", 1951)
let less_books =
let less_books =
|> StringMap.remove "Dune"
```
Filtering
```ml
let eighties_books =
let eighties_books =
StringMap.filter
(fun _ (_, year) -> year > 1980 & number < 1990) books
```
+1 -1
View File
@@ -2,7 +2,7 @@
title: OpenSSL
date: 2020-11-25 18:28:43
icon: icon-style
background: bg-emerald-600
background: bg-indigo-600
tags:
categories:
- Linux Command
+82 -84
View File
@@ -1,5 +1,4 @@
---
title: Pandas
date: 2024-07-04
background: bg-[#110750]
@@ -12,7 +11,6 @@ intro: |
[Pandas](https://pandas.pydata.org/) is a powerful data analysis and manipulation library for Python. This cheat sheet is a quick reference for Pandas beginners.
plugins:
- copyCode
---
## Getting Started {.cols-2}
@@ -27,112 +25,112 @@ import pandas as pd
### Creating DataFrames
| - | - |
| -------------------------------------------------------------- | --------------------------------------------------- |
| `pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})` | From a dictionary |
| `pd.DataFrame(data=[{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])` | From a list of dictionaries |
| `pd.read_csv('file.csv')` | From a CSV file |
| `pd.read_excel('file.xlsx')` | From an Excel file |
| - | - |
| --------------------------------------------------------- | --------------------------- |
| `pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})` | From a dictionary |
| `pd.DataFrame(data=[{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])` | From a list of dictionaries |
| `pd.read_csv('file.csv')` | From a CSV file |
| `pd.read_excel('file.xlsx')` | From an Excel file |
### Inspecting Data {.row-span-2}
| - | - |
| ----------------------- | ------------------------------- |
| `df.head()` | First 5 rows |
| `df.tail()` | Last 5 rows |
| `df.shape` | Number of rows and columns |
| `df.info()` | Info on DataFrame |
| `df.describe()` | Summary statistics |
| `df.columns` | Column names |
| `df.index` | Index |
| `df.dtypes` | Data types of columns |
| - | - |
| --------------- | -------------------------- |
| `df.head()` | First 5 rows |
| `df.tail()` | Last 5 rows |
| `df.shape` | Number of rows and columns |
| `df.info()` | Info on DataFrame |
| `df.describe()` | Summary statistics |
| `df.columns` | Column names |
| `df.index` | Index |
| `df.dtypes` | Data types of columns |
### Selecting Data
| - | - |
| ------------------------ | ------------------------------------------------- |
| `df['col1']` | Select column |
| `df[['col1', 'col2']]` | Select multiple columns |
| `df.loc[0]` | Select row by index |
| `df.loc[:, 'col1']` | Select all rows for 'col1' |
| `df.iloc[0]` | Select row by position |
| `df.iloc[0, 1]` | Select specific value |
| `df[df['col1'] > 2]` | Select rows based on condition |
| - | - |
| ---------------------- | ------------------------------ |
| `df['col1']` | Select column |
| `df[['col1', 'col2']]` | Select multiple columns |
| `df.loc[0]` | Select row by index |
| `df.loc[:, 'col1']` | Select all rows for 'col1' |
| `df.iloc[0]` | Select row by position |
| `df.iloc[0, 1]` | Select specific value |
| `df[df['col1'] > 2]` | Select rows based on condition |
### Data Cleaning
| - | - |
| ---------------------------- | -------------------------------------- |
| `df.dropna()` | Drop rows with any missing values |
| `df.dropna(axis=1)` | Drop columns with any missing values |
| `df.fillna(0)` | Replace missing values with 0 |
| `df.drop_duplicates()` | Drop duplicate rows |
| `df.rename(columns={'old_name': 'new_name'})` | Rename columns |
| `df.astype('int')` | Change data type |
| - | - |
| --------------------------------------------- | ------------------------------------ |
| `df.dropna()` | Drop rows with any missing values |
| `df.dropna(axis=1)` | Drop columns with any missing values |
| `df.fillna(0)` | Replace missing values with 0 |
| `df.drop_duplicates()` | Drop duplicate rows |
| `df.rename(columns={'old_name': 'new_name'})` | Rename columns |
| `df.astype('int')` | Change data type |
### Adding/Removing Data {.row-span-2}
| - | - |
| ----------------------------------- | ------------------------------ |
| `df['col3'] = df['col1'] + df['col2']` | Add new column |
| `df.drop('col1', axis=1)` | Drop column |
| `df.append(new_row)` | Add new row |
| `df.insert(2, 'new_col', new_data)` | Insert new column at position 2|
| - | - |
| -------------------------------------- | ------------------------------- |
| `df['col3'] = df['col1'] + df['col2']` | Add new column |
| `df.drop('col1', axis=1)` | Drop column |
| `df.append(new_row)` | Add new row |
| `df.insert(2, 'new_col', new_data)` | Insert new column at position 2 |
### Combining Data
| - | - |
| --------------------------------------------- | ------------------------------------------------ |
| `pd.concat([df1, df2])` | Concatenate rows |
| `pd.concat([df1, df2], axis=1)` | Concatenate columns |
| `pd.merge(df1, df2, on='key')` | Merge DataFrames on key |
| `pd.merge(df1, df2, left_on='key1', right_on='key2')` | Merge on different keys |
| `df1.join(df2, lsuffix='_left', rsuffix='_right')` | Join DataFrames |
| - | - |
| ----------------------------------------------------- | ----------------------- |
| `pd.concat([df1, df2])` | Concatenate rows |
| `pd.concat([df1, df2], axis=1)` | Concatenate columns |
| `pd.merge(df1, df2, on='key')` | Merge DataFrames on key |
| `pd.merge(df1, df2, left_on='key1', right_on='key2')` | Merge on different keys |
| `df1.join(df2, lsuffix='_left', rsuffix='_right')` | Join DataFrames |
### Aggregating Data
| - | - |
| ------------------------------------ | ------------------------------------------------ |
| `df['col1'].sum()` | Sum of values in column |
| `df['col1'].mean()` | Mean of values in column |
| `df['col1'].count()` | Count of values in column |
| `df['col1'].min()` | Minimum value in column |
| `df['col1'].max()` | Maximum value in column |
| `df['col1'].std()` | Standard deviation |
| `df['col1'].var()` | Variance |
| `df.groupby('col1').sum()` | Group by and sum |
| `df.groupby('col1').mean()` | Group by and mean |
| `df.groupby(['col1', 'col2']).count()` | Group by multiple columns |
| - | - |
| -------------------------------------- | ------------------------- |
| `df['col1'].sum()` | Sum of values in column |
| `df['col1'].mean()` | Mean of values in column |
| `df['col1'].count()` | Count of values in column |
| `df['col1'].min()` | Minimum value in column |
| `df['col1'].max()` | Maximum value in column |
| `df['col1'].std()` | Standard deviation |
| `df['col1'].var()` | Variance |
| `df.groupby('col1').sum()` | Group by and sum |
| `df.groupby('col1').mean()` | Group by and mean |
| `df.groupby(['col1', 'col2']).count()` | Group by multiple columns |
### Applying Functions {.row-span-2}
| - | - |
| ---------------------------------- | ------------------------------------ |
| `df.apply(np.sqrt)` | Apply function to all values |
| `df['col1'].apply(lambda x: x ** 2)`| Apply function to column |
| `df.applymap(str)` | Apply function to DataFrame elements |
| `df['col1'].map({'a': 1, 'b': 2})` | Map values |
| `df['col1'].replace('a', 1)` | Replace values |
| - | - |
| ------------------------------------ | ------------------------------------ |
| `df.apply(np.sqrt)` | Apply function to all values |
| `df['col1'].apply(lambda x: x ** 2)` | Apply function to column |
| `df.applymap(str)` | Apply function to DataFrame elements |
| `df['col1'].map({'a': 1, 'b': 2})` | Map values |
| `df['col1'].replace('a', 1)` | Replace values |
### Handling Dates
| - | - |
| ------------------------------------ | ------------------------------------------ |
| `df['date'] = pd.to_datetime(df['date'])` | Convert to datetime |
| `df['year'] = df['date'].dt.year` | Extract year |
| `df['month'] = df['date'].dt.month` | Extract month |
| `df['day'] = df['date'].dt.day` | Extract day |
| `df.set_index('date', inplace=True)` | Set date as index |
| - | - |
| ----------------------------------------- | ------------------- |
| `df['date'] = pd.to_datetime(df['date'])` | Convert to datetime |
| `df['year'] = df['date'].dt.year` | Extract year |
| `df['month'] = df['date'].dt.month` | Extract month |
| `df['day'] = df['date'].dt.day` | Extract day |
| `df.set_index('date', inplace=True)` | Set date as index |
### Input/Output
| - | - |
| ------------------------------------ | ------------------------------------------------ |
| `df.to_csv('file.csv')` | Save DataFrame to CSV |
| `df = pd.read_csv('file.csv')` | Load DataFrame from CSV |
| `df.to_excel('file.xlsx')` | Save DataFrame to Excel |
| `df = pd.read_excel('file.xlsx')` | Load DataFrame from Excel |
| `from sqlalchemy import create_engine`| Import SQLAlchemy for SQL operations |
| `engine = create_engine('sqlite:///:memory:')` | Create SQL engine |
| `df.to_sql('table_name', engine)` | Save to SQL table |
| `df = pd.read_sql('table_name', engine)` | Load from SQL table |
| - | - |
| ---------------------------------------------- | ------------------------------------ |
| `df.to_csv('file.csv')` | Save DataFrame to CSV |
| `df = pd.read_csv('file.csv')` | Load DataFrame from CSV |
| `df.to_excel('file.xlsx')` | Save DataFrame to Excel |
| `df = pd.read_excel('file.xlsx')` | Load DataFrame from Excel |
| `from sqlalchemy import create_engine` | Import SQLAlchemy for SQL operations |
| `engine = create_engine('sqlite:///:memory:')` | Create SQL engine |
| `df.to_sql('table_name', engine)` | Save to SQL table |
| `df = pd.read_sql('table_name', engine)` | Load from SQL table |
+1122 -1122
View File
File diff suppressed because it is too large. Load diff
+179
View File
@@ -913,6 +913,166 @@ class Cls implements Foo, Bar
}
```
## PHP Trait
### Trait declaration & Use case {.col-span-3}
```php
// Declare Trait allows reuse of code
// across multiple classes for common characteristics or use cases
<?php
trait Logger {
public function log($message) {
$date = new DateTime();
echo "| ". $date->format('Y-m-d H:i:s') . " | " . $message;
}
}
// Use case :
// Call trait with "use <trait name> in Class"
class User {
use Logger;
public function createUser() {
// User creation logic
$this->log("User created.");
}
}
class Product {
use Logger;
public function createProduct() {
// Product creation logic
$this->log("Product created.");
}
}
$user = new User();
$user->createUser(); // Output ex: | 2025-06-18 14:06:09 | User created.
$product = new Product();
$product->createProduct(); // Output ex: | 2025-06-18 14:06:09 | Product created.
```
## PHP Enums (PHP 8.1)
### Enum Declaration & Use case {.col-span-3}
```php
<?php
// enum is a data type that allows you to define a set of named constants,
// representing a fixed group of related values
enum Status {
case Pending;
case Approved;
case Rejected;
}
// Use case
function getStatusMessage(Status $status): string {
return match($status) {
Status::Pending => "Waiting for approval.",
Status::Approved => "Your request has been approved.",
Status::Rejected => "Your request has been rejected.",
};
}
$currentStatus = Status::Approved;
echo getStatusMessage($currentStatus); // Output : Your request has been approved.
```
## PHP Date & Time Handling
### Current date and time
```php
// DateTime in PHP handles both date and time
<?php
$now = new DateTime();
echo $now->format('Y-m-d H:i:s.u');
// Output ex: 2024-04-27 14:35:22.123456
```
### Creating specific date/time objects
```php
<?php
// Create a date object
$d = new DateTime('2024-04-27');
echo $d->format('Y-m-d');
// Output : 2024-04-27
// Create a time object
$t = new DateTime('15:30:45');
echo $t->format('H:i:s');
// Output : 15:30:45
// Create a datetime object
$dt = new DateTime('2024-04-27 15:30:45');
echo $dt->format('Y-m-d H:i:s');
// Output : 2024-04-27 15:30:45
```
### Converting between date formats
```php
<?php
// Convert a string to a DateTime object
$date_str = "2024-04-27 14:00";
$dt_obj = new DateTime($date_str);
echo $dt_obj->format('Y-m-d H:i:s');
// Output : 2024-04-27 14:00:0027
// Convert a DateTime object to a string
$formatted_str = $dt_obj->format('d/m/Y H:i');
echo $formatted_str;
// Output : 27/04/2024 14:00
```
### Timestamps and Unix time {.col-span-2}
```php
<?php
// Get current timestamp
$timestamp = time();
echo $timestamp;
// Output ex: 1750253583
// Convert timestamp back to DateTime
$dt_from_timestamp = (new DateTime())->setTimestamp($timestamp);
echo $dt_from_timestamp->format('Y-m-d H:i:s');
// Output ex : 2025-06-18 13:33:03
```
### Date difference and timedelta {.col-span-1}
```php
<?php
$date1 = new DateTime('2024-04-27');
$date2 = new DateTime('2024-05-01');
$interval = $date1->diff($date2);
echo $interval->days;
// Output : 4
// Using DateInterval for date arithmetic
$new_date = clone $date1;
$new_date->add(new DateInterval('P10D'));
echo $new_date->format('Y-m-d');
// Output : 2024-05-07
```
## Miscellaneous
### Basic error handling
@@ -1002,6 +1162,25 @@ See: [Regex in PHP](/regex#regex-in-php)
| `a` | Write, append |
| `a+` | Read and write, append |
### Super Global Variables {.col-span-2}
| Variable | Description |
|--------------|:-------------------------------------------------------------|
| `$_SERVER` | Holds information about headers, paths, and script locations |
| `$_GET` | Contains data sent via URL parameters (query string) |
| `$_POST` | Contains data sent via HTTP POST method |
| `$_FILES` | Contains information about uploaded files |
| `$_COOKIE` | Contains cookie data |
| `$_SESSION` | Stores session variables |
| `$_REQUEST` | Contains data from `$_GET`, `$_POST`, and `$_COOKIE` |
| `$_ENV` | Contains environment variables |
| `$GLOBALS` | References all global variables available in the script |
{.left-text}
Super Global Variables are built-in variables always available in all scopes.
### Runtime defined Constants
```php
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: PhpStorm
date: 2022-11-23 16:23:31.703719
background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-emerald-400 hover:to-blue-500
background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-indigo-400 hover:to-blue-500
label:
tags:
- jetbrains
+256
View File
@@ -219,6 +219,30 @@ See: [Lists](#python-lists)
```python
my_tuple = (1, 2, 3)
my_tuple = tuple((1, 2, 3))
tupla = (1, 2, 3, 'python')
print(tupla[0]) # Output: 1
print(tupla.count(1)) # Count occurrences
print(tupla.index(2)) # Find index
tupla1 = (1, 2, 3)
tupla2 = ('a', 'b')
len(tuple) → Returns the number of elements.
in → Checks if an element exists in the tuple.
Concatenation (+) → Combines two tuples.
Repetition (*) → Repeats a tuple.
Slicing (tuple[start:end]) → Extracts a subtuple.
print(len(tupla1)) # Output: 3
print(2 in tupla1) # Output: True
print(tupla1 + tupla2) # Output: (1, 2, 3, 'a', 'b')
print(tupla1[1:]) # Output: (2, 3)
# unpacking
a, b, c, d = tupla # Each value goes into a variable
```
Similar to List but immutable
@@ -933,6 +957,80 @@ else:
Also see: [Python Tips](https://book.pythontips.com/en/latest/for_-_else.html)
### Over Dictionary
```python
johndict = {
"firstname": "John",
"lastname": "Doe",
"age": 30
}
x = johndict.items()
print(x)
# Output: dict_items([('firstname', 'John'),
# ('lastname', 'Doe'),
# ('age', 30)])
for key, value in johndict.items():
print(f"{key} : : {value}")
# Output: firstname : : John
# Output: lastname : : Doe
# Output: age : : 30
```
## Python Comprehensions
### Comprehension List {.col-span-2}
```python
languages = ["html", "go", "rust", "javascript", "python"]
newlist = [x for x in languages if "l" not in x]
# add language for language in languages if "l" not in language
print(newlist) #Output : [ 'go', 'rust', 'javascript', 'python']
# List comprehension avoid this :
oldlist = []
for x in languages:
if "l" not in x:
oldlist.append(x)
print(oldlist) #Output : [ 'go', 'rust', 'javascript', 'python']
```
### Comprehension Dictionary {.col-span-2}
```python
languages = ["html", "go", "rust", "javascript", "python"]
language_dict = {lang: ('l' not in lang) for lang in languages}
# Key is the language & bool is Value (no offense for html..)
print(language_dict)
# Output: {'html': False, 'go': True, 'rust': True,
# 'javascript': True, 'python': True}
# Dictionary comprehension avoid this :
language_dict2 = {}
for e in languages:
if "l" not in e:
language_dict2[e] = True
else:
language_dict2[e] = False
print(language_dict2)
# Output: {'html': False, 'go': True, 'rust': True,
# 'javascript': True, 'python': True}
```
## Python Functions
### Basic
@@ -1006,6 +1104,29 @@ add(5, 20) # => 25
(lambda x, y: x ** 2 + y ** 2)(2, 1)
```
### @decorator {.col-span-2}
```python
# Modify or extend behavior of function or class method,
# without changing their actual code.
# Define decorator that will wrap function or method
def handle_errors(func):
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as e:
return print(f"Error : {e}")
return wrapper
# Decorate function or method
@handle_errors
def divide(a, b):
return a / b
divide(10, 0) # Output : Error : division by zero
```
## Python Modules
### Import modules
@@ -1274,6 +1395,24 @@ print(Yoki.legs) # => 4
Yoki.sound() # => Woof!
```
### @staticmethod {.col-span-2}
```python
class MyClass:
@staticmethod
def greet(name):
return f"Hello, {name}!"
# No instantiation nedded
# Call via class
print(MyClass.greet("Alice")) # => Hello, Alice!
# Can still call via instance
obj = MyClass()
print(obj.greet("Bob")) # => Hello, Bob!
```
## Python Type Hints (Since Python 3.5)
### Variable & Parameter
@@ -1501,6 +1640,80 @@ while (data := values[i]):
# Expected result: 1, "text", True
```
## Date & Time Handling
### Current date and time
```python
import datetime
now = datetime.datetime.now()
print(now) # e.g., 2024-04-27 14:35:22.123456
```
### Creating specific date/time objects
```python
import datetime
# Create a date object
d = datetime.date(2024, 4, 27)
print(d) # 2024-04-27
# Create a time object
t = datetime.time(15, 30, 45)
print(t) # 15:30:45
# Create a datetime object
dt = datetime.datetime(2024, 4, 27, 15, 30, 45)
print(dt) # 2024-04-27 15:30:45
```
### Converting between date formats
```python
import datetime
# Convert a string to a datetime object
date_str = "2024-04-27 14:00"
dt_obj = datetime.datetime.strptime(date_str, "%Y-%m-%d %H:%M")
print(dt_obj) # 2024-04-27 14:00:00
# Convert a datetime object to a string
formatted_str = dt_obj.strftime("%d/%m/%Y %H:%M")
print(formatted_str) # 27/04/2024 14:00
```
### Timestamps and Unix time
```python
import datetime
# Get current timestamp
timestamp = datetime.datetime.now().timestamp()
print(timestamp) # e.g., 1714188922.123456
# Convert timestamp back to datetime
dt_from_timestamp = datetime.datetime.fromtimestamp(timestamp)
print(dt_from_timestamp)
```
### Date difference and timedelta {.col-span-2}
```python
import datetime
date1 = datetime.date(2024, 4, 27)
date2 = datetime.date(2024, 5, 1)
delta = date2 - date1
print(delta.days) # 4
# Using timedelta for date arithmetic
new_date = date1 + datetime.timedelta(days=10)
print(new_date) # 2024-05-07
```
## Miscellaneous
### Comments
@@ -1558,3 +1771,46 @@ else: # Optional clause to the try/except block. Must follow
finally: # Execute under all circumstances
print("We can clean up resources here")
```
### Dispatcher Pattern {.col-span-3}
```python
# Dispatcher allows dynamic selection and execution of functions based on user input or other runtime conditions
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
if y == 0:
return 'Error: Division by zero'
return x / y
# Dispatcher dictionary: maps operation names to their corresponding functions
operations = {
'add': add,
'subtract': subtract,
'multiply': multiply,
'divide': divide
}
# Function to dispatch operation based on operation name
# Common use cases include executing different functions dynamically, such as in calculators, command interpreters, or event handling
def dispatcher(operation_name, x, y):
func = operations.get(operation_name)
if func:
return func(x, y)
else:
return f"Unknown operation: {operation_name}"
# Usage examples
print(dispatcher('add', 5, 3)) # Output: 8
print(dispatcher('multiply', 4, 2)) # Output: 8
print(dispatcher('divide', 10, 0)) # Output: Error: Division by zero
print(dispatcher('mod', 10, 3)) # Output: Unknown operation: mod
```
+1 -2
View File
@@ -7,8 +7,7 @@ tags:
- reference
categories:
- Other
intro:
This is the magic syntax variant manual that you can use on CheatSheets.zip, 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
---
+310
View File
@@ -0,0 +1,310 @@
---
title: 'React Testing Library Cheat Sheet'
date: 2022-09-09 00:00:00
background: bg-blue-500
tags:
- react
- testing
- javascript
- cheatsheet
categories:
- Testing
intro: |
When it comes to testing React apps manually, we can either choose to render individual component trees in a simplified test environment or run the complete app in a realistic browser environment (end-to-end testing). But for automated tests, React Testing Library (RTL) is recommended for its user-centric approach and maintainability.
plugins:
- copyCode
---
## Introduction
React Testing Library is built on top of DOM Testing Library to test React components by querying and interacting with real DOM nodes, avoiding reliance on implementation details.
## Basic level
### 1. Purpose & Solution
RTL addresses maintainability by focusing on user-visible behavior:
- Tests run in actual DOM nodes.
- Queries mirror user interactions.
- `data-testid` as an escape hatch when needed.
- Encourages accessibility.
### 2. A basic component render test
**Component (App.js):**
```js
const title = 'Hello, World!';
function App() {
return <div>{title}</div>;
}
export default App;
```
**Test (App.test.js):**
```js
import { render } from '@testing-library/react';
import App from './App';
describe('App', () => {
test('renders App component', () => {
render(<App />);
});
});
```
Add debug to inspect output:
```js
import { render, screen } from '@testing-library/react';
import App from './App';
describe('App', () => {
test('renders App component', () => {
render(<App />);
screen.debug();
});
});
```
Output in console:
```html
<body>
<div>
<div>Hello, World!</div>
</div>
</body>
```
### 3. Why use RTL vs Enzyme?
1. Tests based on user interactions, not internal APIs.
2. Improves maintainability after refactors.
3. Intuitive syntax (`getByText`, `getByAltText`, etc.).
### 4. Queries in RTL
```js
import { render, screen } from '@testing-library/react';
test('should show login form', () => {
render(<Login />);
const input = screen.getByLabelText('Username');
// events & assertions
});
```
**Single element queries:**
- `getBy*`: throws if none found
- `queryBy*`: returns null if none
- `findBy*`: async Promise
**Multiple elements queries:**
- `getAllBy*`: throws if none
- `queryAllBy*`: returns \[] if none
- `findAllBy*`: async Promise array
### 5. Component tree testing level
- Test at user interaction level, not per individual child component unless needed.
## Intermediate level
### 1. Jest vs RTL
- **Jest**: Test runner & assertion library (`describe`, `test`, `expect`).
- **RTL**: DOM utilities for React; works within Jest (or other runners).
### 2. Mocking with MSW
```js
// fetch.test.jsx
import React from 'react';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
import { render, fireEvent, waitFor, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import Fetch from '../fetch';
const server = setupServer(
rest.get('/greeting', (req, res, ctx) =>
res(ctx.json({ greeting: 'hello there' }))
)
);
beforeAll(() => server.listen());
afterEach(() => server.resetHandlers());
afterAll(() => server.close());
test('loads and displays greeting', async () => {
render(<Fetch url="/greeting" />);
fireEvent.click(screen.getByText('Load Greeting'));
await waitFor(() => screen.getByRole('heading'));
expect(screen.getByRole('heading')).toHaveTextContent('hello there');
expect(screen.getByRole('button')).toBeDisabled();
});
test('handles server error', async () => {
server.use(rest.get('/greeting', (req, res, ctx) => res(ctx.status(500))));
render(<Fetch url="/greeting" />);
fireEvent.click(screen.getByText('Load Greeting'));
await waitFor(() => screen.getByRole('alert'));
expect(screen.getByRole('alert')).toHaveTextContent('Oops, failed to fetch!');
expect(screen.getByRole('button')).not.toBeDisabled();
});
```
### 3. `render` options
```js
import { render } from '@testing-library/react';
import '@testing-library/jest-dom';
test('renders a message', () => {
const table = document.createElement('table');
const { container } = render(<TableBody {...props} />, {
container: document.body.appendChild(table),
baseElement: document.body,
hydrate: true,
legacyRoot: true,
queries: {
/* custom queries */
}
});
expect(container).toBeInTheDocument();
});
```
### 4. `renderHook` usage
```js
import { renderHook } from '@testing-library/react';
test('returns logged in user', () => {
const { result, rerender } = renderHook(
({ name } = {}) => useLoggedInUser(name),
{ initialProps: { name: 'Alice' } }
);
expect(result.current).toEqual({ name: 'Alice' });
rerender({ name: 'Bob' });
expect(result.current).toEqual({ name: 'Bob' });
});
```
## Advanced Level
### 1. Adding custom queries
```js
const dom = require('@testing-library/dom');
const { queryHelpers, buildQueries } = require('@testing-library/react');
// Override testId attribute
export const queryByTestId = queryHelpers.queryByAttribute.bind(
null,
'data-test-id'
);
export const queryAllByTestId = queryHelpers.queryAllByAttribute.bind(
null,
'data-test-id'
);
export function getAllByTestId(container, id, ...rest) {
const els = queryAllByTestId(container, id, ...rest);
if (!els.length)
throw queryHelpers.getElementError(
`No element with [data-test-id="${id}"]`,
container
);
return els;
}
export function getByTestId(container, id, ...rest) {
const els = getAllByTestId(container, id, ...rest);
if (els.length > 1)
throw queryHelpers.getElementError(
`Multiple elements with [data-test-id="${id}"]`,
container
);
return els[0];
}
```
Or using `buildQueries`:
```js
const queryAllByDataCy = (...args) =>
queryHelpers.queryAllByAttribute('data-cy', ...args);
const [
queryByDataCy,
getAllByDataCy,
getByDataCy,
findAllByDataCy,
findByDataCy
] = buildQueries(
queryAllByDataCy,
(c, v) => `Found multiple elements with data-cy="${v}"`,
(c, v) => `Unable to find element with data-cy="${v}"`
);
```
### 2. Skipping auto cleanup
- Via CLI: `cross-env RTL_SKIP_AUTO_CLEANUP=true jest`
- Or add to Jest `setupFiles`: `import '@testing-library/react/dont-cleanup-after-each';`
### 3. Migrating from Enzyme
1. Install RTL & jest-dom.
2. Replace `shallow`/`mount` with `render` + `screen`.
3. Migrate tests incrementally.
### 4. Querying within elements
```js
import { render, within } from '@testing-library/react';
const { getByText } = render(<MyComponent />);
const section = getByText('messages');
const hello = within(section).getByText('hello');
```
### 5. Integration testing
```js
import { render, cleanup, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import nock from 'nock';
import App from '../App';
const REPOS = [{ name: 'repo1', description: '...' }];
beforeAll(() =>
nock('https://api.github.com')
.persist()
.get('/users/alice/repos')
.reply(200, REPOS)
);
afterEach(cleanup);
test('user sees public repos', async () => {
render(<App />);
userEvent.type(screen.getByPlaceholderText('Enter username'), 'alice');
userEvent.click(screen.getByRole('button', { name: /submit/i }));
await waitFor(() =>
REPOS.forEach((r) => expect(screen.getByText(r.name)).toBeInTheDocument())
);
expect(screen.queryByText('Loading...')).toBeNull();
});
```
## Conclusion
This comprehensive cheat sheet covers basic to advanced RTL usage—rendering, querying, mocking, custom queries, and integration tests—to help you write robust, maintainable tests.
+90 -55
View File
@@ -29,13 +29,13 @@ let emptyHeading = <h1 />;
### JSX Expressions
```javascript
let name = "Josh Perez";
let name = 'Josh Perez';
let element = <h1>Hello, {name}</h1>;
function fullName(firstName, lastName) {
return firstName + " " + lastName;
return firstName + ' ' + lastName;
}
let element = <h1>Hello, {fullName("Julie", "Johnson")}</h1>;
let element = <h1>Hello, {fullName('Julie', 'Johnson')}</h1>;
```
### JSX Attributes
@@ -62,7 +62,7 @@ return (
### JSX Conditional Rendering {.col-span-2}
```javascript
import React from "react";
import React from 'react';
function Weather(props) {
if (props.temperature >= 20) {
return (
@@ -89,7 +89,7 @@ Note: A component must always return something.
### Functional Component
```javascript
import React from "react";
import React from 'react';
export default function UserProfile() {
return (
@@ -106,8 +106,8 @@ Note: Every component needs one root element
### Embed an internal Component
```javascript
import React from "react";
import UserAvatar from "./UserAvatar";
import React from 'react';
import UserAvatar from './UserAvatar';
export default function UserProfile() {
return (
@@ -124,8 +124,8 @@ Note: Assuming UserAvatar is declared in UserAvatar.js
### Embed an external Component
```javascript
import React from "react";
import ComponentName from "component-name";
import React from 'react';
import ComponentName from 'component-name';
export default function UserProfile() {
return (
@@ -141,7 +141,7 @@ Note: External components are found on npmjs.com and need to be imported first.
### Advanced Functional Components
```javascript
import React from "react";
import React from 'react';
function Hello(props) {
function fullName() {
@@ -170,7 +170,7 @@ export default () => <Hello firstName="Matt" lastName="Delac" />;
### Assigning the Properties from a Component
```javascript
import React from "react";
import React from 'react';
export default function Student(props) {
return (
@@ -186,12 +186,12 @@ export default function Student(props) {
### React State
```javascript
import React, { useState } from "react";
import React, { useState } from 'react';
export default function Hello(props) {
let [name, setName] = useState("Julie");
let [name, setName] = useState('Julie');
function updateName() {
let newName = prompt("What is your name?");
let newName = prompt('What is your name?');
setName(newName);
}
@@ -209,12 +209,12 @@ export default function Hello(props) {
### Event Listener
```javascript
import React from "react";
import React from 'react';
export default function Hello() {
function handleClick(event) {
event.preventDefault();
alert("Hello World");
alert('Hello World');
}
return (
@@ -232,7 +232,7 @@ Note: The most common event listeners are onClick for links/buttons and onSubmit
### Looping through an Array
```javascript
let elements = ["one", "two", "three"];
let elements = ['one', 'two', 'three'];
return (
<ul>
@@ -250,17 +250,17 @@ Note: Each list item inside a map loop needs a key attribute with a unique value
```javascript
let elements = [
{
name: "one",
value: 1,
name: 'one',
value: 1
},
{
name: "two",
value: 2,
name: 'two',
value: 2
},
{
name: "three",
value: 3,
},
name: 'three',
value: 3
}
];
return (
<ul>
@@ -282,11 +282,11 @@ Note: Each list item inside a map loop needs a key attribute with a unique value
### React Forms
```javascript
import React, { useState } from "react";
import React, { useState } from 'react';
export default function LoginForm() {
let [username, setUsername] = useState("");
let [password, setPassword] = useState("");
let [username, setUsername] = useState('');
let [password, setPassword] = useState('');
function handleSubmit(event) {
event.preventDefault();
@@ -316,8 +316,8 @@ export default function LoginForm() {
### CSS in a React Component
```javascript
import React from "react";
import "./Student.css";
import React from 'react';
import './Student.css';
export default function Student() {
return <div className="Student">Julie Johnson</div>;
@@ -331,8 +331,8 @@ Note: You'll then have to crate a css file called Student.css
### AJAX Request with Axios
```javascript
import React from "react";
import axios from "axios";
import React from 'react';
import axios from 'axios';
export default function Weather(props) {
function handleResponse(response) {
@@ -356,7 +356,7 @@ Note: Make sure to import Axios first to your project.
### useState Hook
```javascript
import React, { useState } from "react";
import React, { useState } from 'react';
function Counter() {
const [count, setCount] = useState(0);
@@ -378,11 +378,11 @@ way to declare state variables and update them within a functional component. Ex
### Multiple State Variable Declaration
```javascript
import React, { useState } from "react";
import React, { useState } from 'react';
function Counter() {
const [count, setCount] = useState(0);
const [name, setName] = useState("");
const [name, setName] = useState('');
const [isCompleted, setIsCompleted] = useState(false);
const handleIncrement = () => {
@@ -402,10 +402,19 @@ function Counter() {
<p>Count: {count}</p>
<button onClick={handleIncrement}>Increment</button>
<input type="text" value={name} onChange={handleNameChange} placeholder="Enter your name" />
<input
type="text"
value={name}
onChange={handleNameChange}
placeholder="Enter your name"
/>
<label>
<input type="checkbox" checked={isCompleted} onChange={toggleCompletion} />
<input
type="checkbox"
checked={isCompleted}
onChange={toggleCompletion}
/>
Completed
</label>
</div>
@@ -421,10 +430,14 @@ component. Each call to useState manages a separate piece of state.
### Input State Management
```javascript
import { useState } from "react";
import { useState } from 'react';
function FormExample() {
const [formData, setFormData] = useState({ name: "", email: "", message: "" });
const [formData, setFormData] = useState({
name: '',
email: '',
message: ''
});
const handleChange = (event) => {
const { name, value } = event.target;
@@ -433,19 +446,38 @@ function FormExample() {
const handleSubmit = (event) => {
event.preventDefault();
alert(`Name: ${formData.name}, Email: ${formData.email}, Message: ${formData.message}`);
alert(
`Name: ${formData.name}, Email: ${formData.email}, Message: ${formData.message}`
);
};
return (
<form onSubmit={handleSubmit}>
<label htmlFor="name">Name:</label>
<input type="text" id="name" name="name" value={formData.name} onChange={handleChange} />
<input
type="text"
id="name"
name="name"
value={formData.name}
onChange={handleChange}
/>
<label htmlFor="email">Email:</label>
<input type="email" id="email" name="email" value={formData.email} onChange={handleChange} />
<input
type="email"
id="email"
name="email"
value={formData.email}
onChange={handleChange}
/>
<label htmlFor="message">Message:</label>
<textarea id="message" name="message" value={formData.message} onChange={handleChange} />
<textarea
id="message"
name="message"
value={formData.message}
onChange={handleChange}
/>
<button type="submit">Submit</button>
</form>
@@ -458,7 +490,7 @@ export default FormExample;
### useEffect Hook
```javascript
import React, { useState, useEffect } from "react";
import React, { useState, useEffect } from 'react';
function Timer() {
const [seconds, setSeconds] = useState(0);
@@ -483,20 +515,20 @@ code based on component lifecycle events like mounting, updating, and unmounting
### Fetch API using useEffect
```javascript
import React, { useState, useEffect } from "react";
import axios from "axios";
import React, { useState, useEffect } from 'react';
import axios from 'axios';
function UserList() {
const [users, setUsers] = useState([]);
useEffect(() => {
axios
.get("https://jsonplaceholder.typicode.com/users")
.get('https://jsonplaceholder.typicode.com/users')
.then((response) => {
setUsers(response.data);
})
.catch((error) => {
console.error("Error fetching users:", error);
console.error('Error fetching users:', error);
});
}, []);
@@ -520,7 +552,7 @@ Note: Make sure to import Axios first to your project.
### Custom Hook creation useLocalStorage
```javascript
import { useState, useEffect } from "react";
import { useState, useEffect } from 'react';
function useLocalStorage(key, initialValue) {
const [value, setValue] = useState(() => {
@@ -544,7 +576,7 @@ to extract stateful logic from components into standalone functions.
### Creating Refs in Class Components
```javascript
import React, { Component } from "react";
import React, { Component } from 'react';
class MyComponent extends Component {
constructor(props) {
@@ -567,7 +599,7 @@ export default MyComponent;
### Using Refs in Functional Components
```javascript
import React, { useRef, useEffect } from "react";
import React, { useRef, useEffect } from 'react';
function MyComponent() {
const myRef = useRef(null);
@@ -585,7 +617,7 @@ export default MyComponent;
### Callback Refs
```javascript
import React, { Component } from "react";
import React, { Component } from 'react';
class MyComponent extends Component {
constructor(props) {
@@ -628,7 +660,7 @@ const ref = React.createRef();
### Accessing DOM Elements with Refs
```javascript
import React, { useRef, useEffect } from "react";
import React, { useRef, useEffect } from 'react';
function FocusInput() {
const inputRef = useRef(null);
@@ -643,19 +675,21 @@ function FocusInput() {
export default FocusInput;
```
Note: Refs are often used to access and interact with DOM elements directly. Here's an example where we focus an input element using a ref.
Note: Refs are often used to access and interact with DOM elements directly. Here's an example where we focus an input
element using a ref.
### Managing Focus with Refs
```javascript
import React, { useRef } from "react";
import React, { useRef } from 'react';
function Form() {
const firstInputRef = useRef(null);
const secondInputRef = useRef(null);
const handleKeyDown = (e) => {
if (e.key === "Enter") {
if (e.key === 'Enter') {
secondInputRef.current.focus();
}
};
@@ -670,4 +704,5 @@ function Form() {
export default Form;
```
Note: You can also manage focus between multiple elements using refs.
+27 -27
View File
@@ -64,23 +64,23 @@ This is a quick cheat sheet to getting started with regular expressions.
| `a*+` | Possessive quantifier |
### Common Metacharacters
| Pattern | Description |
| -------- | :----------------------------------------- |
| `^` | Matches the start of a string. |
| `{` | Starts a quantifier for the number of occurrences. |
| `+` | Matches one or more of the preceding element. |
| `<` | Not a standard regex meta character (commonly used in HTML). |
| `[` | Starts a character class. |
| `*` | Matches zero or more of the preceding element. |
| `)` | Ends a capturing group. |
| `>` | Not a standard regex meta character (commonly used in HTML). |
| `.` | Matches any character except a newline. |
| `(` | Starts a capturing group. |
| `|` | Acts as a logical OR within a regex pattern. |
| `$` | Matches the end of a string. |
| `\` | Escapes a meta character, giving it literal meaning. |
| `?` | Matches zero or one of the preceding element. |
| Pattern | Description |
| ------- | :----------------------------------------------------------- | -------------------------------------------- |
| `^` | Matches the start of a string. |
| `{` | Starts a quantifier for the number of occurrences. |
| `+` | Matches one or more of the preceding element. |
| `<` | Not a standard regex meta character (commonly used in HTML). |
| `[` | Starts a character class. |
| `*` | Matches zero or more of the preceding element. |
| `)` | Ends a capturing group. |
| `>` | Not a standard regex meta character (commonly used in HTML). |
| `.` | Matches any character except a newline. |
| `(` | Starts a capturing group. |
| ` | ` | Acts as a logical OR within a regex pattern. |
| `$` | Matches the end of a string. |
| `\` | Escapes a meta character, giving it literal meaning. |
| `?` | Matches zero or one of the preceding element. |
{.cols-3 .marker-none}
@@ -530,8 +530,8 @@ False
### test()
```javascript
let textA = "I like APPles very much";
let textB = "I like APPles";
let textA = 'I like APPles very much';
let textB = 'I like APPles';
let regex = /apples$/i;
// Output: false
@@ -544,7 +544,7 @@ console.log(regex.test(textB));
### search()
```javascript
let text = "I like APPles very much";
let text = 'I like APPles very much';
let regexA = /apples/;
let regexB = /apples/i;
@@ -558,7 +558,7 @@ console.log(text.search(regexB));
### exec()
```javascript
let text = "Do you like apples?";
let text = 'Do you like apples?';
let regex = /apples/;
// Output: apples
@@ -571,7 +571,7 @@ console.log(regex.exec(text).input);
### match()
```javascript
let text = "Here are apples and apPleS";
let text = 'Here are apples and apPleS';
let regex = /apples/gi;
// Output: [ "apples", "apPleS" ]
@@ -581,7 +581,7 @@ console.log(text.match(regex));
### split() {.col-span-2}
```javascript
let text = "This 593 string will be brok294en at places where d1gits are.";
let text = 'This 593 string will be brok294en at places where d1gits are.';
let regex = /\d+/g;
// Output: [ "This ", " string will be brok", "en at places where d", "gits are." ]
@@ -592,7 +592,7 @@ console.log(text.split(regex));
```javascript
let regex = /t(e)(st(\d?))/g;
let text = "test1test2";
let text = 'test1test2';
let array = [...text.matchAll(regex)];
// Output: ["test1", "e", "st1", "1"]
@@ -605,11 +605,11 @@ console.log(array[1]);
### replace()
```javascript {.wrap}
let text = "Do you like aPPles?";
let text = 'Do you like aPPles?';
let regex = /apples/i;
// Output: Do you like mangoes?
let result = text.replace(regex, "mangoes");
let result = text.replace(regex, 'mangoes');
console.log(result);
```
@@ -617,10 +617,10 @@ console.log(result);
```javascript
let regex = /apples/gi;
let text = "Here are apples and apPleS";
let text = 'Here are apples and apPleS';
// Output: Here are mangoes and mangoes
let result = text.replaceAll(regex, "mangoes");
let result = text.replaceAll(regex, 'mangoes');
console.log(result);
```
+1 -1
View File
@@ -449,7 +449,7 @@ case input
# Check for an integer, 19
when 19
puts "It's 19"
# 检查一个确切的字符串,“Zaman”
# Check for an exact string,“Zaman”
when "Zaman"
puts "Hi Zaman"
when 7..11
+7 -7
View File
@@ -108,11 +108,11 @@ text: {
### @import
```scss
@import "./other_sass_file";
@import "/code", "lists";
@import './other_sass_file';
@import '/code', 'lists';
// Plain CSS @imports
@import "theme.css";
@import 'theme.css';
@import url(theme);
```
@@ -349,7 +349,7 @@ $menu-items: home about contact;
@each $item in $menu-items {
.photo-#{$item} {
background: url("#{$item}.jpg");
background: url('#{$item}.jpg');
}
}
```
@@ -357,7 +357,7 @@ $menu-items: home about contact;
### Each loops (nested)
```scss
$backgrounds: (home, "home.jpg"), (about, "about.jpg");
$backgrounds: (home, 'home.jpg'), (about, 'about.jpg');
@each $id, $image in $backgrounds {
.photo-#{$id} {
@@ -383,10 +383,10 @@ $i: 6;
### Conditionals {.row-span-2}
```scss
@if $position == "left" {
@if $position == 'left' {
position: absolute;
left: 0;
} @else if $position == "right" {
} @else if $position == 'right' {
position: absolute;
right: 0;
} @else {
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Screen
date: 2021-01-02 20:03:55
background: bg-emerald-500
background: bg-indigo-500
tags:
- terminal
- session
+620
View File
@@ -0,0 +1,620 @@
---
title: Socket io
date: 27-06-2025
icon: icon-style
background: bg-[#1289D8]
tags:
- socket io
- web
categories:
- Programming
intro: |
Socket.IO is a JavaScript library for real-time web applications. It enables bi-directional, event-based communication between clients (typically browsers or native apps) and servers.
plugins:
- copyCode
---
# Socket.IO Multi-Language Cheat Sheet (v4)
## Introduction
### Introduction
- [Socket.IO Official Website](https://socket.io/) _(socket.io)_
- [Socket.IO Documentation (v4.1)](https://socket.io/docs/v4/) _(socket.io)_
- [Socket.IO GitHub Repository](https://github.com/socketio/socket.io) _(github.com)_
- [Getting Started with Socket.IO (Chat App Tutorial)](https://socket.io/get-started/chat/) _(socket.io)_
- [FreeCodeCamp Socket.IO Tutorial](https://www.freecodecamp.org/news/socket-io-tutorial/) _(freecodecamp.org)_
## Installation / Setup
### Installation / Setup
**JavaScript (Node.js)**
```bash
npm install socket.io socket.io-client
```
**Python**
```bash
pip install python-socketio eventlet
# or
pip install python-socketio aiohttp
```
**Java**
```groovy
implementation 'io.socket:socket.io-client:2.0.1'
```
### Installation / Setup
**Swift (iOS)**
```ruby
pod 'Socket.IO-Client-Swift', '~> 16.0.1'
```
**C# (.NET)**
```powershell
Install-Package SocketIoClientDotNet
```
**React Native**
```bash
npm install socket.io-client
```
### Installation / Setup
**Go**
```bash
go get github.com/googollee/go-socket.io
```
**Rust**
```bash
cargo add socketio-client
```
---
## Connecting / Setup
### JavaScript (Browser Client then Node.js Server)
**Client**
```js
import { io } from 'socket.io-client';
const socket = io('http://localhost:3000');
```
**Server**
```js
const io = require('socket.io')(3000, {
cors: { origin: '*' }
});
io.on('connection', (socket) => {
console.log('Client connected:', socket.id);
});
```
### Python (Client then Server)
**Client**
```python
import socketio
sio = socketio.Client()
sio.connect('http://localhost:3000')
```
**Server**
```python
import socketio, eventlet, flask
app = flask.Flask(__name__)
sio = socketio.Server(cors_allowed_origins='*')
app = socketio.WSGIApp(sio, app)
@sio.event
def connect(sid, environ):
print('Client connected:', sid)
if __name__ == '__main__':
eventlet.wsgi.server(eventlet.listen(('', 3000)), app)
```
### Java (Client then Server)
**Client**
```java
IO.Options opts = new IO.Options();
Socket socket = IO.socket("http://localhost:3000", opts);
socket.connect();
```
**Server**
```java
import io.socket.engineio.server.EngineIoServer;
import io.socket.server.SocketIoServer;
EngineIoServer engineIo = new EngineIoServer();
SocketIoServer io = new SocketIoServer(engineIo);
io.listen(3000);
io.on("connection", args -> {
var client = args[0];
System.out.println("Client connected: " + client.id());
});
```
### Swift (iOS Client then Server)
**Client**
```swift
let manager = SocketManager(
socketURL: URL(string: "http://localhost:3000")!,
config: [.log(true), .compress]
)
let socket = manager.defaultSocket
socket.connect()
```
**Server**
_Server setups in Swift are uncommon; usually Node.js or Python is used._
### C# (.NET Client then Server)
**Client**
```csharp
var socket = IO.Socket("http://localhost:3000");
socket.Connect();
```
**Server**
```csharp
using Fleck;
var server = new WebSocketServer("ws://0.0.0.0:3000");
server.Start(socket =>
{
socket.OnOpen = () => Console.WriteLine("Client connected");
});
```
### React Native (Client)
**Client**
```js
import io from 'socket.io-client';
const socket = io('http://localhost:3000');
```
_(Server side same as JavaScript above.)_
### Go (Client then Server)
**Client**
```go
import "github.com/googollee/go-socket.io-client"
socket, err := gosocketio.Dial(
gosocketio.GetUrl("localhost", 3000, false),
transport.GetDefaultWebsocketTransport(),
)
```
**Server**
```go
import (
"github.com/googollee/go-socket.io"
"net/http"
)
server, _ := socketio.NewServer(nil)
server.OnConnect("/", func(s socketio.Conn) error {
fmt.Println("Client connected:", s.ID())
return nil
})
http.Handle("/socket.io/", server)
go http.ListenAndServe(":3000", nil)
```
### Rust (Client then Server)
**Client**
```rust
use socketio_client::ClientBuilder;
async fn run() -> Result<(), Box<dyn std::error::Error>> {
let socket = ClientBuilder::new("http://localhost:3000")
.transport("websocket")
.connect()
.await?;
Ok(())
}
```
**Server**
_Rust server support is experimental; commonly use Node.js/Python servers._
---
## Emitting & Listening to Events
### JavaScript (Client then Server)
**Client**
```js
socket.emit('msg', 'Hi');
socket.on('reply', (data) => console.log('Reply:', data));
```
**Server**
```js
io.on('connection', (socket) => {
socket.on('msg', (msg) => {
console.log('Received:', msg);
socket.emit('reply', 'Hello from server');
});
});
```
### Python (Client then Server)
**Client**
```python
sio.emit('msg', 'Hi')
@sio.on('reply')
def on_reply(data):
print('Reply:', data)
```
**Server**
```python
@sio.event
def msg(sid, data):
print('Received:', data)
sio.emit('reply', 'Hello from server', to=sid)
```
### Java (Client then Server)
**Client**
```java
socket.emit("msg", "Hi");
socket.on("reply", args -> System.out.println("Reply: " + args[0]));
```
**Server**
```java
io.on("connection", args -> {
var client = args[0];
client.on("msg", msgArgs -> {
System.out.println("Received: " + msgArgs[0]);
client.emit("reply", "Hello from server");
});
});
```
### Swift (Client then Server)
**Client**
```swift
socket.emit("msg", "Hi")
socket.on("reply") { data, _ in
print("Reply:", data[0])
}
```
**Server**
_Server side in Swift is rare; use Node.js/Python._
### C# (Client then Server)
**Client**
```csharp
socket.Emit("msg", "Hi");
socket.On("reply", data => Console.WriteLine("Reply: " + data));
```
**Server**
```csharp
socket.OnMessage = message =>
{
Console.WriteLine("Received: " + message);
socket.Send("reply", "Hello from server");
};
```
### Go (Client then Server)
**Client**
```go
socket.Emit("msg", "Hi")
socket.On("reply", func(msg string) {
fmt.Println("Reply:", msg)
})
```
**Server**
```go
server.OnEvent("/", "msg", func(s socketio.Conn, msg string) {
fmt.Println("Received:", msg)
s.Emit("reply", "Hello from server")
})
```
### Rust (Client then Server)
**Client**
```rust
socket.emit("msg", Payload::String("Hi"));
socket.on("reply", |payload| println!("Reply: {:?}", payload));
```
**Server**
_Experimental; typically use Node.js/Python._
---
## Broadcasting & Rooms
### Client (All Languages)
- **Join a room:**
```js
// JavaScript/Python/C#/etc.
socket.emit('join', 'room1');
socket.on('msg', (data) => console.log('Room message:', data));
```
### Server (All Languages)
- **Node.js**
```js
io.on('connection', (socket) => {
socket.on('join', (room) => {
socket.join(room);
io.to(room).emit('msg', 'Hello Room');
});
});
```
- **Python**
```python
@sio.event
def join(sid, room):
sio.enter_room(sid, room)
sio.emit('msg', 'Hello Room', room=room)
```
- **Go**
```go
server.OnEvent("/", "join", func(s socketio.Conn, room string) {
s.Join(room)
server.BroadcastToRoom("/", room, "msg", "Welcome")
})
```
---
## Disconnects & Errors
### Client (All Languages)
```js
socket.on('disconnect', (reason) => console.log('Disconnected:', reason));
socket.on('connect_error', (err) => console.error('Connection error:', err));
```
```python
@sio.event
def disconnect():
print('Disconnected')
@sio.event
def connect_error(data):
print('Connection error:', data)
```
```go
// Go client library varies; similar patterns apply.
```
### Server (All Languages)
```js
io.on('connection', (socket) => {
socket.on('disconnect', (reason) =>
console.log('Client disconnected:', reason)
);
});
```
```go
server.OnDisconnect("/", func(s socketio.Conn, reason string) {
fmt.Println("Client disconnected:", reason)
})
```
---
## Namespaces
### Client (All Languages)
```js
const adminSocket = io('/admin');
```
```python
sio.connect('http://localhost:3000/admin', namespaces=['/admin'])
```
### Server (All Languages)
```js
io.of('/admin').on('connection', (socket) => {
console.log('Admin connected:', socket.id);
});
```
```go
server.Of("/admin").OnConnect(func(s socketio.Conn) {
fmt.Println("Admin connected:", s.ID())
})
```
---
## Authentication (Basic Token)
### Client (All Languages)
```js
const socket = io('http://localhost:3000', {
auth: { token: 'abc' }
});
```
```python
sio.connect('http://localhost:3000', auth={'token': 'abc'})
```
### Server (All Languages)
```js
io.use((socket, next) => {
const token = socket.handshake.auth.token;
token === 'abc' ? next() : next(new Error('Auth error'));
});
```
---
## Tips for Debugging & Logging
### Client
- Log events:
```js
socket.onAny((event, ...args) => console.log(event, args));
```
- Inspect network in browser devtools.
### Server
- **JavaScript**
```bash
DEBUG=socket.io* node server.js
```
- **Python**
```python
import logging
logging.getLogger('socketio').setLevel(logging.DEBUG)
```
- **Go**
Print handler errors and use middleware for structured logs.
---
## Advanced Features
### Middleware
**Client**
_(Rarely needed)_
**Server**
```js
io.use((socket, next) => {
console.log('Middleware:', socket.id);
next();
});
```
```go
server.Use(func(s socketio.Conn, next func()) {
fmt.Println("Middleware triggered:", s.ID())
next()
})
```
### Binary Streaming
**Client**
```js
fetch('/file')
.then((res) => res.arrayBuffer())
.then((buf) => socket.emit('file', buf));
```
**Server**
```go
server.OnEvent("/", "file", func(s socketio.Conn, data []byte) {
ioutil.WriteFile("upload", data, 0644)
})
```
---
## Best Practices
# Implement reconnection with exponential backoff on the client.
# Sanitize and validate all data on both sides.
# Use TLS in production and rotate authentication tokens frequently.
# Separate concerns with namespaces and rooms.
# Throttle high-frequency events and enable compression where possible.
> Official docs: [https://socket.io/docs/v4/](https://socket.io/docs/v4/)
+59
View File
@@ -249,7 +249,66 @@ $ ssh-keygen -R <ip/hostname>
- PEM
- PKCS8
## SSH Tunneling
### SSH Tunnel Options {.row-span-2}
| Option | Description |
| ------ | :----------------------------------------------------- |
| `-L` | Local port forwarding |
| `-R` | Remote port forwarding |
| `-D` | Dynamic port forwarding |
| `-f` | Run in background |
| `-N` | Do not execute a remote command |
| `-g` | Allow remote hosts to connect to local forwarded ports |
{.left-text}
more details on flag above with `man ssh`
### Local Port Forwarding {.col-span-2}
```bash
# Forward a local port to a remote server
ssh -L local_port:remote_host:remote_port user@ssh_server
# Example: Forward local port 8080 to remote port 80 on example.com
ssh -L 8080:example.com:80 user@ssh_server
```
### Dynamic Port Forwarding {.col-span-2}
```bash
# Create a SOCKS proxy on a local port
ssh -D local_port user@ssh_server
# Create a SOCKS proxy on local port 1080 in the background
ssh -f -N -D 1080 user@ssh_server
```
### Background Tunnel {.col-span-3}
```bash
# Create a local port forwarding tunnel in the background
ssh -f -N -L local_port:remote_host:remote_port user@ssh_server
```
### Multiple Tunnels {.col-span-3}
```bash
# Create multiple tunnels in a single SSH command
ssh -L 8080:example.com:80 -L 3306:db.example.com:3306 user@ssh_server
```
### Combining Options {.col-span-3}
```bash
# In background, no command, allow remote host, local port forward, identity_file
ssh -f -N -g -L 8080:example.com:80 -i ~/.ssh/custom_key user@ssh_server
```
## Also see
- [OpenSSH Config File Examples](https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/) _(cyberciti.biz)_
- [ssh_config](https://linux.die.net/man/5/ssh_config) _(linux.die.net)_
- [man-ssh](https://man7.org/linux/man-pages/man1/ssh.1.html)
+27 -32
View File
@@ -1,6 +1,6 @@
---
title: Svelte
date: 2025-04-08 19:45:00
date: 2025-08-16 10:30:00
background: bg-[#FF3E00]
tags:
- svelte
@@ -87,7 +87,7 @@ Note: Svelte components must always return a root element or content.
```js
<script>
export let name = "User";
let { name = "User" } = $props();
</script>
<div class="UserProfile">
@@ -127,8 +127,7 @@ Note: External components should be installed via npm first.
```js
<script>
export let firstName;
export let lastName;
let { firstName, lastName } = $props();
function fullName() {
return `${firstName} ${lastName}`;
@@ -143,21 +142,14 @@ Note: External components should be installed via npm first.
### Passing Properties to a Component
```js
<Student
firstName="Zehan"
lastName="Khan"
age={23}
pro={true}
/>
<Student firstName="Zehan" lastName="Khan" age={23} pro={true} />
```
### Assigning the Properties from a Component
```js
<script>
export let firstName;
export let lastName;
export let age;
let { firstName, lastName, age } = $props();
</script>
<h1>{firstName} {lastName} is {age}.</h1>
@@ -169,7 +161,7 @@ Note: External components should be installed via npm first.
```js
<script>
let name = "Zehan";
let name = $state("Zehan");
function updateName() {
name = prompt("What is your name?") || name;
@@ -177,7 +169,7 @@ Note: External components should be installed via npm first.
</script>
<h1>{name}</h1>
<button on:click={updateName}>Update name</button>
<button onclick={updateName}>Update name</button>
```
## Events {.cols-1}
@@ -192,12 +184,12 @@ Note: External components should be installed via npm first.
}
</script>
<a href="#" on:click|preventDefault={handleClick}>
<a href="#" onclick|preventDefault={handleClick}>
Say Hi
</a>
```
Note: The most common event listeners are `on:click` and `on:submit`.
Note: The most common event listeners are `onclick` and `onsubmit`.
## Loops {.cols-2}
@@ -241,8 +233,8 @@ Note: The most common event listeners are `on:click` and `on:submit`.
```js
<script>
let username = "";
let password = "";
let username = $state("");
let password = $state("");
function handleSubmit(event) {
event.preventDefault();
@@ -250,7 +242,7 @@ Note: The most common event listeners are `on:click` and `on:submit`.
}
</script>
<form on:submit={handleSubmit}>
<form onsubmit={handleSubmit}>
<input type="text" placeholder="Username" bind:value={username} />
<input type="password" placeholder="Password" bind:value={password} />
<input type="submit" value="Login" />
@@ -279,7 +271,7 @@ Note: The most common event listeners are `on:click` and `on:submit`.
<script>
import { onMount } from 'svelte';
let notifications = [];
let loading = true;
let loading = $state(true);
onMount(async () => {
const res = await fetch("https://notifications.com");
@@ -304,6 +296,7 @@ Note: Use `onMount` for side effects like API calls.
## Lifecycle Hooks {.cols-1}
### onMount
```js
<script>
import { onMount } from 'svelte';
@@ -315,6 +308,7 @@ Note: Use `onMount` for side effects like API calls.
```
### beforeUpdate
```js
<script>
import { beforeUpdate } from 'svelte';
@@ -326,6 +320,7 @@ Note: Use `onMount` for side effects like API calls.
```
### afterUpdate
```js
<script>
import { afterUpdate } from 'svelte';
@@ -337,6 +332,7 @@ Note: Use `onMount` for side effects like API calls.
```
### onDestroy
```js
<script>
import { onDestroy } from 'svelte';
@@ -346,8 +342,9 @@ Note: Use `onMount` for side effects like API calls.
});
</script>
```
Note: Svelte lifecycle functions are similar to React Hooks, but they are imported individually and used directly in the `<script>` block.
Note: Svelte lifecycle functions are similar to React Hooks, but they are imported individually and used directly in the
`<script>` block.
## More Svelte Features {.cols-1}
@@ -358,7 +355,7 @@ Note: Svelte lifecycle functions are similar to React Hooks, but they are import
import { writable, derived } from 'svelte/store';
export const count = writable(0);
export const double = derived(count, $count => $count * 2);
export const double = derived(count, ($count) => $count * 2);
```
```js
@@ -391,9 +388,9 @@ export const time = readable(new Date(), function start(set) {
```js
<script>
let a = 2;
let b = 3;
$: sum = a + b;
let a = $state(2);
let b = $state(3);
let sum = $derived(a + b);
</script>
<p>{sum}</p>
@@ -404,8 +401,7 @@ export const time = readable(new Date(), function start(set) {
```js
<script>
let name = 'Zehan';
$: console.log('Name changed to', name);
$effect(() => console.log('Name changed to', name));
</script>
```
@@ -413,7 +409,7 @@ export const time = readable(new Date(), function start(set) {
```js
<script>
let text = '';
let text = $state('');
</script>
<textarea bind:value={text} />
@@ -424,7 +420,7 @@ export const time = readable(new Date(), function start(set) {
```js
<script>
let selected = 'apple';
let selected = $state('apple');
</script>
<label><input type="radio" bind:group={selected} value="apple" /> Apple</label>
@@ -481,11 +477,10 @@ export async function load({ fetch }) {
```js
// +page.svelte
<script>
export let data;
let { data } = $props();
</script>
<h1>{data.title}</h1>
```
Note: Requires SvelteKit setup for SSR routes.
+17 -8
View File
@@ -1571,11 +1571,13 @@ enum ShirtSize: String {
### What are extensions?
Extensions is a way to add new add new functionality to existing classes, structures, enumerations, or protocol types. This includes adding new methods, properties, initializers, and more.
Extensions is a way to add new add new functionality to existing classes, structures, enumerations, or protocol types.
This includes adding new methods, properties, initializers, and more.
### Why use extensions?
Extensions are particularly useful for organizing and modularizing our code without needing to modify the original type, especially when we don't have access to the original source code.
Extensions are particularly useful for organizing and modularizing our code without needing to modify the original type,
especially when we don't have access to the original source code.
### Extension syntax
@@ -1657,7 +1659,8 @@ print("Swift"[4]) // Output: t
### Protocol extensions {.row-span-2}
It works pretty much like abstract classes when regarding a functionality we want to be available in all the classes that implements some protocol (without having to inherit from a base common class).
It works pretty much like abstract classes when regarding a functionality we want to be available in all the classes
that implements some protocol (without having to inherit from a base common class).
```swift
// Define a protocol
@@ -1701,7 +1704,8 @@ print(employee.describe()) // Output: This is a generic description
### Constraints for extensions
This is especially useful when we want to add functionality to a type that conforms to a specific protocol or has certain conditions.
This is especially useful when we want to add functionality to a type that conforms to a specific protocol or has
certain conditions.
```swift
extension Array where Element: Numeric {
@@ -1723,7 +1727,8 @@ print(doubles.sum()) // Output: 7.5
### Organizing code with extensions
Extensions are not limited to adding functionality; they are also handy for code organization. We can group related methods, properties or views in separate extensions.
Extensions are not limited to adding functionality; they are also handy for code organization. We can group related
methods, properties or views in separate extensions.
```swift
import SwiftUI
@@ -1752,11 +1757,13 @@ extension HomeView {
### What are generics?
Generics in Swift are a feature that allows us to create functions, classes, structures, and protocols that can work with any data type.
Generics in Swift are a feature that allows us to create functions, classes, structures, and protocols that can work
with any data type.
### Why use generics?
Generics enable us to write clear and concise code that works with any data type. By using placeholders (like `T`), this reduces the risk of introducing bugs.
Generics enable us to write clear and concise code that works with any data type. By using placeholders (like `T`), this
reduces the risk of introducing bugs.
### Type parameters {.row-span-2}
@@ -1831,7 +1838,9 @@ protocol Foo {
}
```
Associated types are used in protocols to define a placeholder for a type that will be specified later. They act as a generic placeholder. The exact type isn't defined in the protocol itself; instead, it's determined when a class, struct, or enum conforms to the protocol.
Associated types are used in protocols to define a placeholder for a type that will be specified later. They act as a
generic placeholder. The exact type isn't defined in the protocol itself; instead, it's determined when a class, struct,
or enum conforms to the protocol.
### Generic Protocols {.row-span-2}
+452
View File
@@ -0,0 +1,452 @@
---
title: Symfony
date: 2025-07-23 18:28:43
background: bg-[#67526d]
label: php
tags:
- php
- web
categories:
- Programming
intro: |
This Symfony Cheat Sheet is a non exhaustive list of main symfony basics that you can use or need.
plugins:
- copyCode
---
## Getting Started
### Installation
```bash
curl -sS https://get.symfony.com/cli/installer | bash
```
- [Doc Symfony Download](https://symfony.com/download)
{.marker-round}
### Symfony CLI: Basic Commands {.col-span-2}
| Command | Description |
|:--------------------------------|:----------------------------------------------|
| `symfony check:requirements` | Check system requirements for running Symfony |
| `symfony version` | Display the Symfony CLI version |
| `symfony help` | Display all available commands |
| `symfony help <cmd>` | Display help for a specific command |
| `symfony server:start` | Start server |
| `symfony server:stop` | Stop server |
| `symfony serve -d` | Run Symfony server in background |
### Creating a New Symfony Project {.col-span-3}
| Command | Description |
|:--------------------------------------------------------------|:---------------------------------------------------|
| `symfony new <dir>` | Create a new Symfony project in `<dir>` |
| `symfony new my_project_directory --version="7.3.x" --webapp` | Create a new web application |
| `symfony new my_project_directory --version="7.3.x"` | Create a new API application |
| `composer create-project symfony/skeleton <dir>` | Create a new Symfony project using Composer |
----
[Doc Symfony creating app](https://symfony.com/doc/current/setup.html#creating-symfony-applications) {.link-arrow}
### Symfony Console Basic Usage
| CMD | Description |
|:--------------------------|:----------------------------------------------------------|
| `bin/console` | List all available commands |
| `bin/console <namespace>` | List all commands in a specific namespace or bundle |
| `bin/console <cmd>` | Run a specific command |
| `bin/console help <cmd>` | Show help for a specific command |
| `bin/console --env=<env>` | Run console in environment: dev, test, or prod |
| `bin/console cache:clear` | Clear the cache |
### Linting Commands {.col-span-2}
| CMD | Description |
|:-------------------------------|:-------------------------------------------------------|
| `bin/console lint:container` | Check service arguments for type mismatches |
| `bin/console lint:twig <dir>` | Lint Twig templates for syntax errors |
| `bin/console lint:yaml <dir>` | Lint YAML files for syntax errors |
| `bin/console lint:xliff <dir>` | Lint XLIFF translation files |
### Debugging Commands {.col-span-3}
| CMD | Description |
|:---------------------------------------------|:----------------------------------------|
| `bin/console debug:asset-map` | Show all mapped assets |
| `bin/console debug:autowiring` | List all autowireable services |
| `bin/console debug:config <bundle>` | Dump configuration of a bundle |
| `bin/console debug:container` | List all public services |
| `bin/console debug:container <service>` | Get info about a specific service |
| `bin/console debug:container --env-vars` | Show environment variables in container |
| `bin/console debug:container --tags` | List tagged public services |
| `bin/console debug:container --tag=<t>` | List services with a specific tag |
| `bin/console debug:dotenv` | Display parsed dotenv values |
| `bin/console debug:dotenv <search>` | Show dotenv values matching a search |
| `bin/console debug:event-dispatcher` | List all event listeners |
| `bin/console debug:firewall <name>` | Show details of a firewall |
| `bin/console debug:form` | Show form type information |
| `bin/console debug:messenger` | List dispatchable messages |
| `bin/console debug:router` | List all registered routes |
| `bin/console debug:router <name>` | Get info about a specific route |
| `bin/console debug:translation <loc>` | Show messages for a locale |
### AssetMap Commands {.col-span-2}
| CMD | Description |
|:--------------------------------------|:---------------------------------------------------|
| `bin/console asset-map:compile` | Compile assets for production |
| `bin/console importmap:require <pkg>` | Add an NPM package to the import map |
| `bin/console importmap:install` | Download all importmap packages |
| `bin/console importmap:update` | Update all importmap packages |
| `bin/console importmap:remove <pkg>` | Remove a package from import map |
| `bin/console importmap:outdated` | List outdated importmap packages |
| `bin/console importmap:audit` | Check dependencies for vulnerabilities |
## ORM & Migration
### Database Connection {.col-span-2}
```bash
# MySQL
DATABASE_URL="mysql://username:password@127.0.0.1:3306/db_name?serverVersion=X.Y.Z&charset=utf8mb4"
# MariaDB
DATABASE_URL="mysql://username:password@127.0.0.1:3307/db_name?serverVersion=X.Y.Z-MariaDB&charset=utf8mb4"
# PostgreSQL
DATABASE_URL="postgresql://username:password@127.0.0.1:5432/db_name?serverVersion=X.Y.Z&charset=utf8"
```
----
`username` : user of DBMS <br>
`password` : password of DBMS <br>
`127.0.0.1`: `3306` MySQL `3307` MariaDB `5432` PostgreSQL <br>
`db_name` : name of data base <br>
`serverVersion` : to know server version <code>SHOW GLOBAL VARIABLE LIKE</code> `%version%` in your DBMS
### Doctrine Commands {.col-span-3}
| CMD | Description |
|:--------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------|
| `bin/console doctrine:database:create`or `php bin/console d:d:c` | Create the configured database |
| `bin/console doctrine:database:drop` or `php bin/console d:d:d` | Drop the configured database |
| `bin/console doctrine:mapping:info` | List mapped entities |
| `bin/console doctrine:schema:update --dump-sql` | Generate SQL to sync DB schema |
| `bin/console doctrine:schema:update --force` | Sync DB schema with mapping info |
| `bin/console doctrine:schema:validate` | Validate the mapping files |
| `bin/console doctrine:query:sql <sql cmd>` | Run a raw SQL query |
| `bin/console doctrine:query:dql <dql cmd>` | Run a DQL query |
| `bin/console doctrine:fixtures:load` | Load data fixtures into the database |
---
You can run <code>php bin/console doctrine:schema:drop --force && php bin/console doctrine:schema:update --force && php bin/console doctrine:fixtures:load -n</code> to Load data fixtures & reset sequence to 0
----
[Doc Symfony Database](https://symfony.com/doc/current/doctrine.html#configuring-the-database) {.link-arrow}
### Migration Commands {.col-span-3}
| CMD | Description |
|:--------------------------------------------------------------------|:--------------------------------------------------------------------|
| `bin/console make:migration` | Generate a new migration based on schema changes |
| `bin/console doctrine:migration:generate` | Generate a new migration based on schema changes |
| `bin/console doctrine:migration:migrate` or `php bin/console d:m:m` | Execute pending migrations to update the database |
| `bin/console doctrine:migration:status` | Show status of migrations (pending, executed) |
| `bin/console doctrine:migration:diff` | Compare current schema with the database and generate migration SQL |
## Symfony Maker
### Maker-Bundle List {.col-span-2}
| Command | Description |
|:-----------------------------|:-----------------------------------------------------------------------------------------------------|
| `bin/console list make ` | List all make commands available |
| `make:auth` | Create a Guard authenticator of different flavors |
| `make:command` | Create a new console command class |
| `make:controller` | Create a new controller class |
| `make:crud` | Create CRUD for Doctrine entity class |
| `make:docker:database` | Add a database container to your compose.yaml file |
| `make:entity` | Create or update a Doctrine entity class, and optionally an API Platform resource |
| `make:fixtures` | Create a new class to load Doctrine fixtures |
| `make:form` | Create a new form class |
| `make:functional-test` | Create a new test class |
| `make:listener` | [make:subscriber] Creates a new event subscriber class or a new event listener class |
| `make:message` | Create a new message and handler |
| `make:messenger-middleware` | Create a new messenger middleware |
| `make:migration` | Create a new migration based on database changes |
| `make:registration-form` | Create a new registration form system |
| `make:reset-password` | Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle |
| `make:schedule` | Create a scheduler component |
| `make:security:custom` | Create a custom security authenticator |
| `make:security:form-login` | Generate the code needed for the form_login authenticator |
| `make:serializer:encoder` | Create a new serializer encoder class |
| `make:serializer:normalizer` | Create a new serializer normalizer class |
| `make:stimulus-controller` | Create a new Stimulus controller |
| `make:subscriber` | Creates a new event subscriber class or a new event listener class |
| `make:test` | [make:unit-test make:functional-test] Create a new test class |
| `make:twig-component` | Create a Twig (or Live) component |
| `make:twig-extension` | Create a new Twig extension with its runtime class |
| `make:unit-test` | Create a new test class |
| `make:user` | Create a new security user class |
| `make:validator` | Create a new validator and constraint class |
| `make:voter` | Create a new security voter class |
| `make:webhook` | Create a new Webhook |
[Doc Symfony Maker Bundle](https://symfony.com/bundles/SymfonyMakerBundle/current/index.html) {.link-arrow}
## Controller Basics
### Route Attributes and Descriptions {.col-span-3}
`use Symfony\Component\Routing\Attribute\Route;`
| Attribute | Description |
|:----------------------------------------------------------------------------|:-------------------------------------------|
| `#[Route('/path')]` | Define a route for a controller method |
| `#[Route('/path', name: 'name')]` | Define a named route for a method |
| `#[Route('/path', methods: ['GET'])]` | Define allowed HTTP methods |
| `#[Route('/blog/{slug}')]` | Define a route with a parameter |
| `#[Route('/page/{page}', requirements: ['page' => '\d+'])]` | Define a route with a parameter constraint |
| `#[Route(path: ['en' => '/about-us', 'nl' => '/over-ons'], name: 'about')]` | Define localized routes |
[Doc Symfony Route Parameters](https://symfony.com/doc/current/routing.html#route-parameters) {.link-arrow}
### AbstractController Methods {.col-span-3}
| Method | Description |
|:-------------------------------------------------------|:----------------------------------------------|
| `$this->render('template.html')` | Returns a Response with the rendered template |
| `$this->redirectToRoute('homepage')` | Returns a RedirectResponse to a named route |
| `$this->redirectToRoute('name', ['param' => 'value'])` | Returns a redirect to a route with parameters |
| `$this->redirectToRoute('name', [], 301)` | Returns a RedirectResponse with status code |
| `$this->redirect('http://example.com')` | Returns a RedirectResponse to an external URL |
| `$this->createNotFoundException($msg)` | Returns a NotFoundHttpException |
| `$this->createForm(FormType::class, $data)` | Creates a new Form instance based on the type |
### Form Methods {.col-span-2}
| Method | Description |
|:---------------------------------|:--------------------------------|
| `$form->handleRequest($request)` | Handle a form submission |
| `$form->isSubmitted()` | Check if the form was submitted |
| `$form->isValid()` | Check if the form is valid |
## Form Type : [Doc Symfony Form types](https://symfony.com/doc/current/reference/forms/types.html)
### Form Fields: Text Fields
| Type | Description |
|:---------------|:----------------------------------------|
| `TextType` | A basic text input field |
| `TextareaType` | A multi-line textarea field |
| `EmailType` | An email field (`<input type="email">`) |
| `PasswordType` | A password field |
| `SearchType` | A search field |
| `UrlType` | A URL field (`<input type="url">`) |
| `TelType` | A tel (phone number) input field |
| `UuidType` | A UUID field |
### Form Fields: Numeric Fields
| Type | Description |
|:---------------|:-------------------------------------------|
| `IntegerType` | A number field for integers |
| `MoneyType` | A money field, with a specifiable currency |
| `NumberType` | A number field |
| `PercentType` | A number field for percentages |
| `RangeType` | A range input field (slider) |
### Form Fields: Choice Fields
| Type | Description |
|:---------------|:----------------------------------------|
| `ChoiceType` | Field for selecting one or more options |
| `EnumType` | Choose from PHP enum cases |
| `EntityType` | Choose from a Doctrine entity |
| `CountryType` | Choose a country |
| `LanguageType` | Choose a language |
| `LocaleType` | Choose a locale |
| `TimezoneType` | Choose a timezone |
| `CurrencyType` | Choose a currency |
### Form Fields: Symfony UX Fields
| Type | Description |
|:----------------|:-----------------------------------|
| `CropperType` | A Cropper.js image cropper field |
| `DropzoneType` | A Dropzone file upload field |
### Form Fields: Date and Time Fields
| Type | Description |
|:-------------------|:----------------------------|
| `DateType` | A date field |
| `DateIntervalType` | A date interval field |
| `DateTimeType` | A date and time field |
| `TimeType` | A time field |
| `BirthdayType` | A date field for birthdays |
| `WeekType` | Select a year and week |
### Form Fields: Other Fields
| Type | Description |
|:---------------|:------------------------------------|
| `CheckboxType` | A single checkbox field |
| `FileType` | A file upload field |
| `RadioType` | A radio button field |
| `HiddenType` | A hidden field |
### Form Fields: Field Groups
| Type | Description |
|:------------------|:-----------------------------------------------------------|
| `CollectionType` | A group of fields that can be added or removed |
| `RepeatedType` | A field that is repeated (e.g., password confirmation) |
## Validation Attributes and Descriptions : [Doc Symfony Validation](https://symfony.com/doc/current/validation.html)
### General Constraints
| Attribute | Description |
|:---------------------------|:--------------------------------------------------|
| `#[Assert\NotBlank]` | Value is not an empty string/array, false or null |
| `#[Assert\Blank]` | Value is an empty string or null |
| `#[Assert\NotNull]` | Value is not strictly equal to null |
| `#[Assert\IsNull]` | Value is exactly equal to null |
| `#[Assert\Type('string')]` | Value is of a specific type |
### Validation: Comparison Constraints {.col-span-2}
| Attribute | Description |
|:------------------------------------|:--------------------------------------------------|
| `#[Assert\<Not>EqualTo('Foo')]` | Value is (not) equal to another value |
| `#[Assert\<Not>IdenticalTo('Foo')]` | Value is (not) identical to another value |
| `#[Assert\LessThan<OrEqual>(5)]` | Value is less than (or equal to) another value |
| `#[Assert\GreaterThan<OrEqual>(5)]` | Value is greater than (or equal to) another value |
| `#[Assert\Range(min: 2, max: 10)]` | Number or DateTime object is within a range |
### Validation: String Constraints {.col-span-2}
| Attribute | Description |
|:-----------------------------------|:------------------------------------------------------|
| `#[Assert\Length(2, 10)]` | String is between `<min>` and `<max>` characters long |
| `#[Assert\Email]` | String is a valid email address |
| `#[Assert\Url]` | String is a valid URL |
| `#[Assert\Hostname]` | String is a valid hostname |
| `#[Assert\Ip]` | String is a valid IP address |
| `#[Assert\NoSuspiciousCharacters]` | String does not contain spoofing characters |
| `#[Assert\Uuid]` | String is a valid UUID |
| `#[Assert\CssColor]` | String is a valid CSS color |
### Validation: Date and Time Constraints
| Attribute | Description |
|:---------------------|:--------------------------------------------------|
| `#[Assert\Date]` | Value is a valid date string in `Y-m-d` format |
| `#[Assert\DateTime]` | Value is a valid datetime in the specified format |
| `#[Assert\Time]` | Value is a valid time string in `H:i:s` format |
| `#[Assert\Timezone]` | Value is a valid timezone identifier |
### Validation: Password Constraints {.col-span-2}
| Attribute | Description |
|:-----------------------------------|:--------------------------------------------|
| `#[Assert\UserPassword]` | String is the authenticated user's password |
| `#[Assert\NotCompromisedPassword]` | Password is not found in any data breaches |
| `#[Assert\PasswordStrength]` | Password has sufficient entropy |
### Validation: Financial and Other Number Constraints
| Attribute | Description |
|:-----------------------|:-------------------------------------------------|
| `#[Assert\Bic]` | Value is a valid Business Identifier Code (BIC) |
| `#[Assert\CardScheme]` | Value is a valid credit card number |
| `#[Assert\Currency]` | Value is a valid 3-letter ISO 4217 currency code |
| `#[Assert\Luhn]` | Value passes the Luhn algorithm |
| `#[Assert\Iban]` | Value is a valid IBAN |
| `#[Assert\Isbn]` | Value is a valid ISBN |
### Validation: File Constraints
| Attribute | Description |
|:------------------|:------------------------------------------------|
| `#[Assert\File]` | Value is a valid file path or File object |
| `#[Assert\Image]` | Same as File, but only accepts image MIME types |
### Validation: Number Constraints {.col-span-2}
| Attribute | Description |
|:-----------------------------|:----------------------------|
| `#[Assert\Positive<OrZero>]` | Value is positive (or zero) |
| `#[Assert\Negative<OrZero>]` | Value is negative (or zero) |
### Validation: Choice Constraints {.col-span-2}
| Attribute | Description |
|:-------------------------------------|:------------------------------------------|
| `#[Assert\Choice(['A', 'B', 'C'])]` | Value is one of the specified choices |
| `#[Assert\Country]` | Value is a valid ISO 3166-1 country code |
| `#[Assert\Language]` | Value is a valid two-letter language code |
| `#[Assert\Locale]` | Value is a valid locale identifier |
+242
View File
@@ -0,0 +1,242 @@
---
title: Systemd
date: 02-07-2025
icon: icon-systemd
background: bg-[#00ADEF]
tags:
- systemd
- linux
categories:
- Linux Command
intro: |
systemd is the init system and service manager used by most modern Linux distributions.
plugins:
- copyCode
---
## systemd Core Utilities{.cols-4}
### systemd utility List {.col-span-4}
| Utility | Description |
| ------------------------------------- | -------------------------------------------------------------- |
| [`systemctl`](#systemctl) | Manages services (start, stop, restart, enable, disable, etc.) |
| [`journalctl`](#journalctl) | Views and filters logs collected by the systemd journal |
| [`loginctl`](#loginctl) | Manages user logins and sessions |
| [`hostnamectl`](#hostnamectl) | Sets or queries the hostname and related machine metadata |
| [`timedatectl`](#timedatectl) | Sets or queries the system date, time, and NTP settings |
| [`systemd-analyze`](#systemd-analyze) | Analyzes system boot-up performance |
| [`systemd-cgtop`](#systemd-cgtop) | Monitors control group resource usage in real time |
| [`systemd-run`](#systemd-run) | Runs a command as a transient service or scope |
| [`resolvectl`](#resolvectl) | Resolves domain names using the systemd-resolved service |
| [`busctl`](#busctl) | Interacts with the D-Bus message bus system |
{.left-text}
---
## Utility Commands {.cols-4}
### systemctl {#systemctl .col-span-2 .row-span-2}
#### systemctl - System Commands
- Manage systemd units and control system services (start, stop, enable, etc.).
| Command | Description |
| --------------------- | ------------------------------------------------------------------ |
| `systemctl halt` | Stop all running software, leave the hardware powered on. |
| `systemctl hibernate` | Save contents of system memory to disk and power off the hardware. |
| `systemctl poweroff` | Halt and power off the system. |
| `systemctl reboot` | Reboot the system. |
{.left-text}
#### systemctl - Service Commands
| Command | Description |
| ----------------------------- | -------------------------------------------- |
| `systemctl start <service>` | Start a service immediately |
| `systemctl stop <service>` | Stop a running service |
| `systemctl restart <service>` | Restart a service |
| `systemctl reload <service>` | Reload service configuration without restart |
| `systemctl enable <service>` | Enable service to start at boot |
| `systemctl disable <service>` | Disable boot-time start |
| `systemctl status <service>` | Show current status and recent logs |
| `systemctl mask <service>` | Prevent service from being started |
| `systemctl unmask <service>` | Remove mask so it can start again |
| `systemctl list-units` | List active units |
| `systemctl list-unit-files` | List all unit files and their enabled state |
{.left-text}
### journalctl {#journalctl .col-span-2}
- Query and filter logs from the systemd journal.
| Command | Description |
| -------------------------- | ----------------------------------------- |
| `journalctl` | Show entire journal |
| `journalctl -b` | Show logs from current boot |
| `journalctl --list-boots` | List all boot sessions |
| `journalctl -b -1` | Logs from previous boot |
| `journalctl -u <service>` | Show logs for a specific unit/service |
| `journalctl -n 100` | Show the last 100 log entries |
| `journalctl -f` | Follow new log entries (tail -f style) |
| `journalctl -p err..emerg` | Show only error (and above) priority logs |
| `journalctl --disk-usage` | Show disk usage of journal |
| `journalctl --since today` | Show logs since today |
{.left-text}
### busctl {#busctl .col-span-2}
- Inspect and monitor D-Bus (Desktop Bus) for debugging or introspection.
| Command | Description |
| ------------------------------ | -------------------------------------------------- |
| `busctl list` | List all services/peers on the bus |
| `busctl status [SERVICE\|PID]` | Show process info & credentials for service or PID |
| `busctl monitor [SERVICE...]` | Dump live message traffic, Ctrl+C to stop |
| `busctl capture [SERVICE...]` | Capture bus traffic to a pcap file |
| `busctl tree [SERVICE...]` | Show object tree exported by service(s) |
{.left-text}
### loginctl{#loginctl .col-span-2 .row-span-2}
- Manages user sessions and login-related settings.
| Command | Description |
| --------------------------------- | ---------------------------------------------- |
| `loginctl list-sessions` | List all active sessions |
| `loginctl list-users` | List logged-in users |
| `loginctl user-status <UID>` | Show all sessions & processes for user `<UID>` |
| `loginctl session-status <ID>` | Show detailed info and logs for session `<ID>` |
| `loginctl show-session <ID>` | Show machine-parsable properties of a session |
| `loginctl terminate-session <ID>` | End all processes in session `<ID>` |
| `loginctl lock-session <ID>` | Lock the specified session |
| `loginctl unlock-session <ID>` | Unlock the specified session |
{.left-text}
### systemd-analyze{#systemd-analyze .col-span-2}
- Analyze system boot performance and unit dependencies.
| Command | Description |
| --------------------------------- | ------------------------------------- |
| `systemd-analyze` | Show total boot time breakdown |
| `systemd-analyze blame` | List services ordered by startup time |
| `systemd-analyze plot > boot.svg` | Generate SVG visual of boot sequence |
{.left-text}
### systemd-cgtop{#systemd-cgtop .col-span-2}
- Real-time monitoring of resource usage by cgroups (CPU, memory, I/O).
| Command | Description |
| -------------------------- | ---------------------------------- |
| `systemd-cgtop` | Monitor top cgroups resource usage |
| `systemd-cgtop -c` | Sort cgroups by CPU usage |
| `systemd-cgtop -d <delay>` | Change refresh delay interval |
{.left-text}
### timedatectl{#timedatectl .col-span-2}
- Manage system date, time, timezone, and NTP synchronization.
| Command | Description |
| ----------------------------------- | ------------------------------- |
| `timedatectl status` | Show current date/time settings |
| `timedatectl list-timezones` | List all available timezones |
| `timedatectl set-timezone <Zone>` | Set system timezone |
| `timedatectl set-time "YYYY-MM-DD"` | Manually set date |
| `timedatectl set-time "HH:MM:SS"` | Manually set time |
| `timedatectl set-ntp true` | Enable NTP sync |
| `timedatectl set-ntp false` | Disable NTP sync |
{.left-text}
### resolvectl{#resolvectl .col-span-2}
- Interact with systemd-resolved DNS resolver service.
| Command | Description |
| -------------------------------------- | ----------------------------------------------- |
| `resolvectl status` | Show DNS configuration and link info |
| `resolvectl query <hostname>` | Resolve hostname via systemd-resolved |
| `resolvectl dns <interface> <IP>` | Set DNS server(s) for a specific interface |
| `resolvectl domain <interface> <name>` | Set search domain(s) for an interface |
| `resolvectl flush-caches` | Clear the DNS cache managed by systemd-resolved |
| `resolvectl reset-statistics` | Reset all DNS resolution statistics |
{.left-text}
### hostnamectl{#hostnamectl .col-span-4}
- Query and set the system hostname (static, transient, pretty) and related metadata.
#### ↓ Commands
| Command | Description |
| --------------------------------------------- | ------------------------------------------------ |
| `hostnamectl status` | Show current hostname & system info |
| `hostnamectl hostname <NAME>` | Set the static/transient/pretty hostname |
| `hostnamectl set-hostname <NAME> --static` | Set only the static hostname |
| `hostnamectl set-hostname <NAME> --transient` | Set only the transient hostname |
| `hostnamectl set-hostname <NAME> --pretty` | Set the pretty (user-friendly) hostname |
| `hostnamectl set-chassis <TYPE>` | Set chassis type (e.g., desktop, laptop, server) |
{.left-text}
#### ↓ Description
```markdown
- Static - The permanent hostname stored in `/etc/hostname`. Used at boot time.
- Transient - Temporary hostname set at runtime (often by DHCP or manually). Lost on reboot.
- Pretty - A user-friendly, display name (can include spaces and special characters).
```
{.left-text}
### systemd-run{#systemd-run .col-span-4}
- Run a command as a transient systemd unit (service, scope, timer, etc.).
| Command | Description |
| -------------------------------------------------------- | -------------------------------------------------- |
| `systemd-run <command>` | Run command as a transient `.service` unit |
| `systemd-run -p BlockIOWeight=10 updatedb` | Run with a specific resource limit property |
| `systemd-run -p MemoryMax=100M script.sh` | Run a memory-hungry task with a memory usage limit |
| `systemd-run --on-calendar='YYYY-MM-DD HH:MM' script.sh` | Schedule script to run at a specific date and time |
| `systemd-run -E VAR=value script.sh` | Run a script with environment variables set |
{.left-text}
#### Types of systemd limits{.col-span-3}
```markdown
There are different kinds of limit that can be imposed:
- CPU Limits
- Memory Limits
- I/O Limits
- Task/Thread Limits
- Security/Isolation
- Execution/Environment
```
Example
```bash
systemd-run -p MemoryMax=100M -p CPUQuota=50% scriptFile.sh
```
## Also See
- [linux training academy](https://www.linuxtrainingacademy.com/systemd-cheat-sheet/)
- [linux Audit Cheat Sheet](https://linux-audit.com/cheat-sheets/systemd/)
- [RedHat Reference](https://www.redhat.com/en/blog/systemd-commands)
+52
View File
@@ -0,0 +1,52 @@
---
title: Telnet
date: 2025-08-10 18:28:43
background: bg-indigo-400
tags:
- network
- scan
- port
categories:
- Linux Command
intro:
This cheat sheet is intended to be a quick reminder for the main concepts involved in using the command line program
telnet and assumes you already understand its usage.
plugins:
- copyCode
---
## Getting Started
### Usage
Standard usage (i.e. a host to connect can be by ip or by domain)
```shell script
$ telnet [options] target [port]
```
communicate over http protocol
```shell script
$ telnet example.com 80
```
create traceroute file
```shell script
$ telnet example.com 80
```
### Option examples
| Option | Example | Operation |
| ------ | ----------------------------------------- | ---------------------------------------------------- |
| `-E` | telnet -E target port | To treat all characters as data and prevent dropping to command
| `-e` | telnet -e '^C' host | Set a custom escape character instead of default ^] |
| `-l` | telnet -l alice host | Pass a username to the remote host |
| `-d` | telnet -d host | Enable debug mode |
| `-l` | telnet -n host | Creates a trace file |
## Also see
- [Telnet manpage](https://www.commandlinux.com/man-page/man1/telnet.1.html)
+112 -1
View File
@@ -12,7 +12,118 @@ intro: |
A visual cheat-sheet for the 25 keyboard shortcuts found in the TickTick desktop app
---
## Keyboard Shortcuts {.cols-2}
## Keyboard Shortcuts (Mac) {.cols-3}
### General
| Shortcut | Action |
| ----------------- | ----------------- |
| `Cmd` `S` | Sync task |
| `Esc` | Cancel |
| `Cmd` `Z` | Undo |
| `Cmd` `Shift` `Z` | Redo |
| `Cmd` `P` | Print |
| `Cmd` `K` | Open command menu |
| `?` | Shortcuts |
{.shortcuts}
### Global Action
| Shortcut | Action |
| -------------------------- | ------------------------ |
| `Ctrl` `Shift` `A` | Quick add |
| `Cmd` `Shift` `O` | Show or hide mini window |
| `Cmd` `Option` `Shift` `P` | Start or abandon pomo |
{.shortcuts}
### Navigation
| Shortcut | Action |
| ------------------------- | ------------------ |
| `G` then `S` or `Cmd` `,` | Go to Settings |
| `G` then `A` | Go to All |
| `G` then `T` | Go to Today |
| `G` then `R` | Go to Tomorrow |
| `G` then `N` | Go to Next 7 days |
| `G` then `M` | Go to Assign to me |
| `G` then `I` | Go to Inbox |
| `G` then `C` | Go to Completed |
| `G` then `W` | Go to Won't do |
| `G` then `B` | Go to Summary |
| `G` then `G` | Go to Trash |
{.shortcuts}
### Task
| Shortcut | Action |
| ---------------- | -------------- |
| `Cmd` `N` | Add task |
| `Return` | Add task below |
| `Shift` `Return` | Add subtask |
{.shortcuts}
### Quick Add
| Shortcut | Action |
| -------- | -------------------------- |
| `*` | Set due date for the task |
| `!` | Set priority for the task. |
| `#` | Set tag for the task. |
| `~/^` | Add/move task to list. |
| `@` | Assigned task to a member |
{.shortcuts}
### Edit Tasks
| Shortcut | Action |
| ----------------- | ------------------- |
| `Cmd` `Shift` `M` | Complete tasks |
| `Cmd` `Delete` | Delete tasks |
| `Cmd` `D` | Set date |
| `Cmd` `0` | Clear date |
| `Cmd` `1` | Set today |
| `Cmd` `2` | Set tomorrow |
| `Cmd` `3` | Set next week |
| `Ctrl` `0` | Set no priority |
| `Ctrl` `1` | Set low priority |
| `Ctrl` `2` | Set medium priority |
| `Ctrl` `3` | Set high priority |
{.shortcuts}
### Switch Views
| Shortcut | Action |
| ------------ | ------------- |
| `V` then `L` | List View |
| `V` then `K` | Kanban View |
| `G` then `T` | Timeline View |
| `D` / `1` | Day View |
| `W` / `2` | Week View |
| `M` / `3` | Month View |
| `T` | Back to Today |
{.shortcuts}
### Sticky Note
| Shortcut | Action |
| ----------------- | ------------------- |
| `F12` | Pin |
| `Cmd` `Shift` `C` | Color |
| `Cmd` `E` | Expand/Collapse All |
| `Cmd` `Opt` `↑` | Arrange by Top |
| `Cmd` `Opt` `←` | Arrange by Left |
| `Cmd` `Opt` `→` | Arrange by Right |
{.shortcuts}
## Keyboard Shortcuts (Windows) {.cols-2}
### General I
+7 -9
View File
@@ -1,7 +1,7 @@
---
title: Tmux
date: 2021-02-20 14:31:24
background: bg-emerald-600
background: bg-indigo-600
tags:
- utility
- terminal
@@ -100,15 +100,13 @@ $ tmux show-options -g
| `q` | Quit copy mode |
| `Ctrl+b` `]` | Paste contents of buffer_0 |
-------------
For tmux version 3.5a on MacOS 15.3.1 Sequoia 'Copy Mode' functions lil bit differently
Below I've written the differences
| Command | Description |
| ------------ | -------------------------- |
| `Ctrl + <Space>` | Start selection |
| `Ctrl + w` | Copy selection |
---
-------------
For tmux version 3.5a on MacOS 15.3.1 Sequoia 'Copy Mode' functions lil bit differently Below I've written the
differences | Command | Description | | ------------ | -------------------------- | | `Ctrl + <Space>` | Start selection
| | `Ctrl + w` | Copy selection |
---
{.shortcuts}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+98 -99
View File
@@ -5,110 +5,109 @@ tags:
- unreal
- engine
categories:
- Keyboard Shortcuts
intro:
A visual cheat-sheet for many keyboard shortcuts found in Unreal Engine 5
- Keyboard Shortcuts
intro: A visual cheat-sheet for many keyboard shortcuts found in Unreal Engine 5
---
## Level Editor
### Viewport Transformation
| Shortcut | Action |
| --------------------- | --------------------------- |
| `W` | Translate |
| `E` | Rotate |
| `R` | Scale |
| `Space Bar` | Toggle Transform Mode |
| `[` | Decrease Position Grid Size |
| `]` | Increase Position Grid Size |
| `Shift` `[` | Decrease Rotation Grid Size |
| `Shift` `]` | Increase Rotation Grid Size |
| Shortcut | Action |
| ----------- | --------------------------- |
| `W` | Translate |
| `E` | Rotate |
| `R` | Scale |
| `Space Bar` | Toggle Transform Mode |
| `[` | Decrease Position Grid Size |
| `]` | Increase Position Grid Size |
| `Shift` `[` | Decrease Rotation Grid Size |
| `Shift` `]` | Increase Rotation Grid Size |
{.shortcuts}
### View Modes
| Shortcut | Action |
| --------------------- | --------------------- |
| `Alt` `2` | Wireframe |
| `Alt` `3` | Unlit |
| `Alt` `4` | Lit |
| `Alt` `5` | Detail Lighting |
| `Alt` `6` | Lighting Only |
| `Alt` `7` | Light Complexity |
| `Alt` `8` | Shader Complexity |
| `Alt` `0` | Lightmap Density |
| Shortcut | Action |
| --------- | ----------------- |
| `Alt` `2` | Wireframe |
| `Alt` `3` | Unlit |
| `Alt` `4` | Lit |
| `Alt` `5` | Detail Lighting |
| `Alt` `6` | Lighting Only |
| `Alt` `7` | Light Complexity |
| `Alt` `8` | Shader Complexity |
| `Alt` `0` | Lightmap Density |
{.shortcuts}
### Level Editor General {.row-span-2}
| Shortcut | Action |
| --------------------- | ---------------------------- |
| `Esc` | Deselect All |
| `H` | Hide Selected |
| `Ctrl` `H` | Unhide All |
| `F` | Focus on Actor |
| `F9` | Screenshot |
| `F11` | Immersive Mode |
| `G` | Game View |
| `T` | Toggle Translucent Selection |
| `(right click)` | Asset Menu |
| `Ctrl` `E` | Edit Selected Asset |
| `Ctrl` `P` | Open Asset |
| `P` | Toggle Navmesh |
| `Ctrl` `Shift` `,` | Profile GPU |
| `Ctrl` `Shift` `H` | Toggle FPS |
| `~` | Command Console |
| Shortcut | Action |
| ------------------ | ---------------------------- |
| `Esc` | Deselect All |
| `H` | Hide Selected |
| `Ctrl` `H` | Unhide All |
| `F` | Focus on Actor |
| `F9` | Screenshot |
| `F11` | Immersive Mode |
| `G` | Game View |
| `T` | Toggle Translucent Selection |
| `(right click)` | Asset Menu |
| `Ctrl` `E` | Edit Selected Asset |
| `Ctrl` `P` | Open Asset |
| `P` | Toggle Navmesh |
| `Ctrl` `Shift` `,` | Profile GPU |
| `Ctrl` `Shift` `H` | Toggle FPS |
| `~` | Command Console |
{.shortcuts}
### Camera Navigation
| Shortcut | Action |
| --------------------- | --------------------- |
| `Alt` `G` | Perspective View |
| `Alt` `H` | Front View |
| `Alt` `J` | Top View |
| `Alt` `K` | Side View |
| `Ctrl` `0-9` | Set Bookmark |
| `0-9` | Jump to Bookmark |
| Shortcut | Action |
| ------------ | ---------------- |
| `Alt` `G` | Perspective View |
| `Alt` `H` | Front View |
| `Alt` `J` | Top View |
| `Alt` `K` | Side View |
| `Ctrl` `0-9` | Set Bookmark |
| `0-9` | Jump to Bookmark |
{.shortcuts}
### Editing Modes
| Shortcut | Action |
| --------------------- | --------------------- |
| `Shift` `1` | Selection Mode |
| `Shift` `2` | Landscape Mode |
| `Shift` `3` | Foliage Mode |
| `Shift` `4` | Modeling Mode |
| `Shift` `5` | Brush Editing Mode |
| `Shift` `6` | Animation Mode |
| Shortcut | Action |
| ----------- | ------------------ |
| `Shift` `1` | Selection Mode |
| `Shift` `2` | Landscape Mode |
| `Shift` `3` | Foliage Mode |
| `Shift` `4` | Modeling Mode |
| `Shift` `5` | Brush Editing Mode |
| `Shift` `6` | Animation Mode |
{.shortcuts}
### Snapping
| Shortcut | Action |
| --------------------- | --------------------- |
| `End` | Snap to Floor |
| `Alt` `End` | Snap Pivot to Floor |
| `Shift` `End` | Snap Bounds to Floor |
| `Ctrl` `End` | Snap to World Grid |
| Shortcut | Action |
| ------------- | -------------------- |
| `End` | Snap to Floor |
| `Alt` `End` | Snap Pivot to Floor |
| `Shift` `End` | Snap Bounds to Floor |
| `Ctrl` `End` | Snap to World Grid |
{.shortcuts}
### Play in Editor (PIE)
| Shortcut | Action |
| --------------------- | --------------------- |
| `Alt` `P` | Start PIE Session |
| `Pause` | Pause |
| `F8 ` | Eject from Player |
| `Esc` | Stop PIE Session |
| Shortcut | Action |
| --------- | ----------------- |
| `Alt` `P` | Start PIE Session |
| `Pause` | Pause |
| `F8 ` | Eject from Player |
| `Esc` | Stop PIE Session |
{.shortcuts}
@@ -116,11 +115,11 @@ intro:
Note: You need to select assets first for these shortcuts to work
| Shortcut | Action |
| --------------------- | --------------------- |
| `Alt` `Shift` `A` | Audit Assets |
| `Alt` `Shift` `R` | Reference Viewer |
| `Alt` `Shift` `M` | Size Map |
| Shortcut | Action |
| ----------------- | ---------------- |
| `Alt` `Shift` `A` | Audit Assets |
| `Alt` `Shift` `R` | Reference Viewer |
| `Alt` `Shift` `M` | Size Map |
{.shortcuts}
@@ -128,21 +127,21 @@ Note: You need to select assets first for these shortcuts to work
### Blueprints {.row-span-2}
| Shortcut | Action |
| --------------------- | ------------------------------- |
| `B` | Add Branch |
| `S` | Add Sequence |
| `D` | Add Delay |
| `F` | Add For Each Loop |
| `G` | Add Gate |
| `M` | Add Multi Gate |
| `O` | Add Do Once |
| `N` | Add Do N |
| `C` | Add Comment |
| `F7` | Compile Blueprint |
| `F9` | Add Breakpoint to selected node |
| `Ctrl` `Shift` `F9` | Remove all Breakpoints |
| `Home` | Zoom to selected node |
| Shortcut | Action |
| ------------------- | ------------------------------- |
| `B` | Add Branch |
| `S` | Add Sequence |
| `D` | Add Delay |
| `F` | Add For Each Loop |
| `G` | Add Gate |
| `M` | Add Multi Gate |
| `O` | Add Do Once |
| `N` | Add Do N |
| `C` | Add Comment |
| `F7` | Compile Blueprint |
| `F9` | Add Breakpoint to selected node |
| `Ctrl` `Shift` `F9` | Remove all Breakpoints |
| `Home` | Zoom to selected node |
{.shortcuts}
@@ -150,21 +149,21 @@ Note: You need to select assets first for these shortcuts to work
Used in the viewport for the Mesh Editor, Material Editor, Blueprint Editor, etc.
| Shortcut | Action |
| --------------------- | ---------------------- |
| `I` | Toggle Environment |
| `O` | Toggle Floor |
| `P` | Toggle Post Processing |
| Shortcut | Action |
| -------- | ---------------------- |
| `I` | Toggle Environment |
| `O` | Toggle Floor |
| `P` | Toggle Post Processing |
{.shortcuts}
### Static Meshes
| Shortcut | Action |
| --------------------- | ------------------------- |
| `Ctrl` `N` | Show Nanite Fallback Mesh |
| `Alt` `N` | Toggle Normals |
| `Alt` `S` | Toggle Sockets |
| Shortcut | Action |
| ---------- | ------------------------- |
| `Ctrl` `N` | Show Nanite Fallback Mesh |
| `Alt` `N` | Toggle Normals |
| `Alt` `S` | Toggle Sockets |
{.shortcuts}
@@ -189,4 +188,4 @@ Used in the viewport for the Mesh Editor, Material Editor, Blueprint Editor, etc
- [Unreal Engine Editor Hotkey Cheat Sheet](https://uecasts.com/resources/unreal-engine-5-editor-hotkeys-cheat-sheet)
_(uecasts.com)_
- [Unreal Engine Actor Snapping Shortcuts](https://unrealdirective.com/tips/actor-snapping-shortcuts)
_(unrealdirective.com)_
_(unrealdirective.com)_
+1 -1
View File
@@ -383,7 +383,7 @@ See `:help text-objects`
| `<C-w>` `-` _/_ `+` | Decrease/Increase height |
| `<C-w>` `<` _/_ `>` | Decrease/Increase width |
| `<C-w>` <code>\|</code> | Max out the width |
| `<C-w>` `_` | Max out the height |
| `<C-w>` `_` | Max out the height |
| `<C-w>` `=` | Equally high and wide |
| `<C-w>` `h` _/_ `l` | Go to the left/right window |
| `<C-w>` `j` _/_ `k` | Go to the up/down window |
+325
View File
@@ -0,0 +1,325 @@
---
title: Vue
date: 2025-06-13 14:45:00
background: bg-[#43CF96]
tags:
- vue
- web
categories:
- Programming
intro: |
A Vue 3 cheat sheet with the most important concepts, reactivity, component system, routing, and more. Updated for the latest version and perfect for both beginners and advanced users.
plugins:
- copyCode
- runCode
---
## 📘 Vue.js 3 Cheatsheet – Beginner to Advanced
> The ultimate reference for mastering Vue 3.
## ⚙️ 1. Setup
### CDN (Quick Start)
```html
<script src="https://unpkg.com/vue@3"></script>
<div id="app">{{ message }}</div>
<script>
Vue.createApp({
data() {
return { message: "Hello Vue!" };
}
}).mount("#app");
</script>
```
### Vite + Vue
```bash
npm create vite@latest my-vue-app --template vue
cd my-vue-app
npm install
npm run dev
```
## 🧠 2. App Structure
```
src/
├─ components/
├─ views/
├─ App.vue
├─ main.js
```
## 📦 3. Data, Methods, Template
```js
data() {
return {
count: 0,
message: "Welcome!"
};
},
methods: {
increment() {
this.count++;
}
}
```
```html
<h1>{{ message }}</h1>
<button @click="increment">+</button>
```
## 🧰 4. Directives
| Directive | Purpose |
| --------------- | ----------------------- |
| `v-bind` / `:` | Bind attributes |
| `v-model` | Two-way binding |
| `v-if / v-else` | Conditional rendering |
| `v-show` | Toggle visibility |
| `v-for` | List rendering |
| `v-on` / `@` | Event handling |
| `v-slot` | Named/Scoped slot usage |
### Example
```html
<input v-model="name" />
<p v-if="name">Hi, {{ name }}!</p>
<ul>
<li v-for="item in list" :key="item.id">{{ item }}</li>
</ul>
```
## 🪝 5. Lifecycle Hooks
```js
created() {},
mounted() {},
updated() {},
unmounted() {}
```
## 🎯 6. Events
```html
<button @click="sayHi">Click</button>
<input @keyup.enter="submit" />
```
## 🔁 7. Computed & Watch
```js
computed: {
reversed() {
return this.message.split('').reverse().join('');
}
},
watch: {
count(newVal, oldVal) {
console.log(`Count changed from ${oldVal} to ${newVal}`);
}
}
```
## 🧱 8. Components
### Register + Use
```js
app.component("Greeting", {
props: ["name"],
template: `<h1>Hello, {{ name }}!</h1>`
});
```
```html
<Greeting name="Sumangal" />
```
## 🔗 9. Props & Emits
### Props
```js
props: {
title: String,
age: {
type: Number,
default: 18
}
}
```
### Emit
```js
this.$emit("custom-event", payload);
```
## 🔄 10. v-model with Components
```js
props: ['modelValue'],
emits: ['update:modelValue']
```
```html
<input
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
/>
```
## ⚒ 11. Composition API
```js
import { ref, computed } from "vue";
export default {
setup() {
const count = ref(0);
const double = computed(() => count.value * 2);
const increment = () => count.value++;
return { count, double, increment };
}
};
```
## 🌐 12. Vue Router
```bash
npm install vue-router
```
### router.js
```js
import { createRouter, createWebHistory } from "vue-router";
import Home from "./views/Home.vue";
import About from "./views/About.vue";
const routes = [
{ path: "/", component: Home },
{ path: "/about", component: About }
];
export default createRouter({
history: createWebHistory(),
routes
});
```
### main.js
```js
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
const app = createApp(App);
app.use(router).mount("#app");
```
## 📦 13. Pinia (Vuex Alternative)
```bash
npm install pinia
```
### store/counter.js
```js
import { defineStore } from "pinia";
export const useCounterStore = defineStore("counter", {
state: () => ({ count: 0 }),
actions: {
increment() {
this.count++;
}
}
});
```
```js
const counter = useCounterStore();
counter.increment();
```
## 🎨 14. Slots
```html
<!-- Default -->
<slot></slot>
<!-- Named -->
<slot name="header"></slot>
<!-- Scoped -->
<slot :user="user"></slot>
```
## 🧪 15. Testing
### Vitest + Vue Test Utils
```bash
npm install vitest @vue/test-utils
```
```js
import { mount } from "@vue/test-utils";
import MyComponent from "@/components/MyComponent.vue";
test("renders", () => {
const wrapper = mount(MyComponent);
expect(wrapper.text()).toContain("Hello");
});
```
## 🧼 16. Best Practices
* Use `ref()` for primitives, `reactive()` for objects
* Use `<script setup>` syntax in SFCs
* Break UI into small, reusable components
* Always define `key` in `v-for`
* Use slots for flexible composition
## 🛠 17. Dev Tools
* 🧩 [Vue DevTools](https://devtools.vuejs.org/)
* 🧠 [Volar](https://github.com/vuejs/language-tools) for VSCode
* ⚡ [Vite](https://vitejs.dev) for fast dev environment
## 📚 18. Official Resources
* 📘 [Vue Docs](https://vuejs.org)
* 🧭 [Router Docs](https://router.vuejs.org)
* 📦 [Pinia Docs](https://pinia.vuejs.org)
* 🧪 [Composition API FAQ](https://vuejs.org/guide/extras/composition-api-faq.html)
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: WebStorm
date: 2020-12-17 21:51:44
background: bg-gradient-to-r from-emerald-300 to-blue-400 hover:from-emerald-400 hover:to-blue-500
background: bg-gradient-to-r from-indigo-300 to-blue-400 hover:from-indigo-400 hover:to-blue-500
tags:
- jetbrains
- web
+200
View File
@@ -0,0 +1,200 @@
---
title: Windows Cmd
date: 2025-06-30 18:28:43
background: bg-red-500
tags:
- command
categories:
- Programming
intro: |
This windows command Cheat Sheet is a non exhaustive list of main windows command that you can use.
plugins:
- copyCode
---
## Getting Started
### Basic {.col-span-3}
| CMD | Description |
|:-----------|:------------------------------------------------------------|
| `cls` | Clears the content of the screen. |
| `echo` | Displays messages or enables/disables command echoing. |
| `help` | Provides help information for Windows commands. |
| `exit` | Exits the CMD.EXE program (command interpreter). |
| `date` | Displays or sets the date. |
| `time` | Displays or sets the system time. |
| `ver` | Displays the Windows version. |
| `dir` | Displays a list of files and subdir in a directory. |
| `cd` | Displays the name of or changes the current directory. |
| `copy` | Copies one or more files to another location. |
| `move` | Moves files and renames files and directories. |
| `del` | Deletes one or more files. |
| `mkdir` | Creates a directory. |
| `rmdir` | Removes a directory. |
| `type` | Displays the contents of a text file. |
| `ren` | Renames a file or files. |
| `start` | Starts a separate window to run a specified program or cmd. |
| `shutdown` | Allows you to shut down or restart the computer. |
| `tasklist` | Displays all currently running tasks including services. |
| `taskkill` | Ends one or more tasks or processes. |
## Manage file :
### File {.col-span-3}
| CMD | Description |
|:-----------|:------------------------------------------------------------------|
| `attrib` | Displays or changes file attributes. |
| `fc` | Compares two files and displays the differences between them. |
| `find` | Searches for a text string in a file or files. |
| `findstr` | Searches for strings in files. |
| `xcopy` | Copies files and directory trees. |
| `robocopy` | Robust File Copy for Windows, a more advanced version of `xcopy`. |
| `compact` | Displays or alters the compression of files on NTFS partitions. |
| `expand` | Expands one or more compressed files. |
| `replace` | Replaces files. |
| `tree` | Graphically displays the folder structure of a drive or path. |
| `sort` | Sorts input. |
| `more` | Displays output one screen at a time. |
| `print` | Prints a text file. |
| `cipher` | Displays or alters the encryption of dir [files] on NTFS parts. |
| `diskcomp` | Compares the contents of two floppy disks. |
| `diskcopy` | Copies the contents of one floppy disk to another. |
| `format` | Formats a disk for use with Windows. |
| `chkdsk` | Checks a disk and displays a status report. |
| `label` | Creates, changes, or deletes the volume label of a disk. |
| `recover` | Recovers readable information from a bad or defective disk. |
## System & Network
### System {.col-span-3}
| CMD | Description |
|:--------------|:------------------------------------------------------------------------------------------|
| `systeminfo` | Displays detailed configuration information about a computer and its operating system. |
| `driverquery` | Displays current device driver status and properties. |
| `msinfo32` | Starts the System Information tool. |
| `reg` | Registry Console Tool, used to manage the Windows Registry. |
| `sc` | Displays or configures services (background processes). |
| `taskmgr` | Starts the Task Manager. |
| `wmic` | Windows Management Instrumentation , used for managing Windows systems. |
| `sfc` | System File Checker, scans and verifies the versions of all protected system files. |
| `gpupdate` | Refreshes local and Active Directory-based Group Policy settings. |
| `gpresult` | Displays Group Policy settings and Resultant Set of Policy (RSoP) for a user or computer. |
| `powercfg` | Configures power settings. |
| `dxdiag` | Starts the DirectX Diagnostic Tool. |
| `msinfo32` | Starts the Microsoft System Information tool. |
| `perfmon` | Starts the Performance Monitor. |
| `rsop` | Resultant Set of Policy, used to view Group Policy settings. |
| `sigverif` | Starts the File Signature Verification tool. |
| `sysedit` | Starts the System Configuration Editor. |
| `syskey` | Secures the Windows XP account database. |
| `chgport` | Displays or changes Com port mappings. |
| `chgusr` | Changes the installed user mode. |
### Network {.col-span-3}
| CMD | Description |
|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `ipconfig` | Displays all current TCP/IP network configuration values. |
| `ping` | Tests network connectivity to a specified host. |
| `tracert` | Traces the route taken by packets to a specified destination. |
| `netstat` | Displays active TCP connections, ports on which the computer is listening. |
| `nslookup` | Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. |
| `net` | Manages network resources, services, and user accounts. |
| `netsh` | Network Shell, used to configure and monitor network devices. |
| `arp` | Displays and modifies the IP-to-Physical address translation tables used by the Address Resolution Protocol (ARP). |
| `route` | Displays and modifies the entries in the local IP routing table. |
| `ftp` | Starts the File Transfer Protocol (FTP) client. |
| `telnet` | Starts the Telnet client. |
| `nbtstat` | Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP). |
| `netuse` | Displays information about network connections. |
| `net session` | Manages server computer connections. |
| `net start` | Starts a network service. |
| `net stop` | Stops a network service. |
| `net view` | Displays a list of resources being shared on a specified computer. |
| `net user` | Manages user accounts. |
| `net localgroup` | Manages local groups. |
| `net share` | Manages shared resources. |
| `net statistics` | Displays network statistics. |
## Miscellaneouss
### Process Management {.col-span-1}
| CMD | Description |
|:---------------|:-------------------------------------------------------------|
| `wmic process` | Manages processes using Windows Management Instrumentation . |
| `timeout` | Waits for specified number of seconds / until a key pressed. |
### Disk Management {.col-span-1}
| CMD Command | Description |
|:-------------|:------------------------------------|
| `diskpart` | Manages disk partitions. |
| `defrag` | Defragments a disk. |
| `convert` | Converts a FAT volume to NTFS. |
| `diskperf` | Manages disk performance counters. |
### System Configuration {.col-span-1}
| CMD Command | Description |
|:-------------|:--------------------------------------------------------|
| `bcdedit` | Manages the Boot Configuration Data (BCD) store. |
| `bootcfg` | Configures, queries, or changes Boot.ini file settings. |
| `msconfig` | Starts the System Configuration utility. |
| `regedit` | Starts the Registry Editor. |
## Tips & Tricks
### Miscellaneouss Tips & Tricks {.col-span-3}
| Tip or Trick | Description |
|:----------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------|
| `wmic path SoftwareLicensingService get OA3xOriginalProductKey` | Get your Windows Product key |
| `cmd /k` | Opens the command prompt and executes a specified command, keeping the window open. |
| `cmd /c` | Opens the command prompt, executes a specified command, and then closes the window. |
| `&&` | Allows you to run multiple commands in sequence. For example, `command1 && command2`. |
| `\|\|` | Allows you to run a second command only if the first command fails. For example, `command1 `\|\|` command2`. |
| `>` | Redirects the output of a command to a file, overwriting the file if it already exists. For example, `command > output.txt`. |
| `>>` | Redirects the output of a command to a file, appending the output if the file already exists. For example, `command >> output.txt`. |
| `\|` | Pipes the output of one command to another command. For example, `command1 `\|` command2`. |
| `clip` | Redirects the output of a command to the Windows clipboard. For example, `dir `\|` clip`. |
| `for %i in (*.txt) do echo %i` | Loops through all `.txt` files in the current directory and echoes their names. |
| `pushd` and `popd` | `pushd` saves the current directory and then changes to a new directory. `popd` returns to the saved directory. |
| `set` | Displays, sets, or removes environment variables. For example, `set PATH=C:\newpath`. |
| `start "" "C:\Path\To\Program\program.exe"` | Starts a program without waiting for it to finish. |
| `taskkill /IM "process.exe" /F` | Forcefully kills a process by its image name. |
| `wmic product get name` | Lists all installed software on the system. |
| `wmic logicaldisk get size,freespace,caption` | Displays the size, free space, and caption of all logical disks. |
| `systeminfo` `\|` `findstr /B /C:"OS Name" /C:"OS Version"` | Displays the OS name and version. |
| `schtasks /query /fo LIST /v` | Lists all scheduled tasks in detail. |
| `netsh wlan show profiles` | Displays a list of all saved Wi-Fi profiles. |
| `netsh wlan show profiles name="ProfileName" key=clear` | Displays the password for a specific Wi-Fi profile. |
| `assoc` | Displays or modifies file extension associations. |
| `ftype` | Displays or modifies file types used in file extension associations. |
| `driverquery /v` | Lists all installed drivers with detailed information. |
| `powercfg /energy` | Generates a detailed energy report for the system. |
| `powercfg /batteryreport` | Generates a battery life report for laptops. |
| `robocopy C:\Source D:\Destination /MIR` | Mirrors a directory from one location to another, including subdirectories and files. |
| `mklink /D "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a symbolic link to a directory. |
| `mklink /H "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a hard link to a file. |
| `mklink /J "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a directory junction. |
| `diskpart /s script.txt` | Runs a DiskPart script to automate disk partitioning tasks. |
| `shutdown /a` | Aborts a system shutdown. |
| `chkdsk /f /r` | Checks a disk and fixes errors, also recovers readable information from bad sectors. |
| `sfc /scannow` | Scans and repairs protected system files. |
| `DISM /Online /Cleanup-Image /RestoreHealth` | Repairs the Windows image using DISM. |
| `bcdboot C:\Windows` | Repairs the boot environment by copying boot files from the Windows directory. |
| `bootrec /fixmbr` | Repairs the Master Boot Record (MBR). |
| `bootrec /fixboot` | Writes a new boot sector to the system partition. |
| `bootrec /scanos` | Scans for installations compatible with Windows and displays the entries that are currently not in the Boot Configuration Data store. |
| `bootrec /rebuildbcd` | Scans for installations compatible with Windows and allows you to select the installations you want to add to the Boot Configuration Data store. |
## Other
- Also see : [Windows Official Documentation](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands)
+1 -1
View File
@@ -20,7 +20,7 @@ plugins:
- [Xpath test bed](http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm) _(whitebeam.org)_
Test in Firefox or Chrome console:
Test in Firefox or Chromium based browser console:
```console
$x('/html/body')
+2 -2
View File
@@ -323,7 +323,7 @@ Jack:
hobby:
- a
- b
location: { country: "A", city: "A-A" }
location: { country: 'A', city: 'A-A' }
```
#### ↓ Equivalent JSON
@@ -349,7 +349,7 @@ Jack:
set1: !!set
? one
? two
set2: !!set { "one", "two" }
set2: !!set { 'one', 'two' }
```
#### ↓ Equivalent JSON
+63 -62
View File
@@ -16,97 +16,98 @@ intro: A visual cheat-sheet for the 50 keyboard shortcuts found in the Zed text
### Zed
| Shortcut | Action |
|------------------------|------------------------|
| `Ctrl` `,` | Open settings |
| `Ctrl` `Shift` `X` | Open Extensions store |
| `Ctrl` `Q` | Quit Zed |
| Shortcut | Action |
| ------------------ | --------------------- |
| `Ctrl` `,` | Open settings |
| `Ctrl` `Shift` `X` | Open Extensions store |
| `Ctrl` `Q` | Quit Zed |
{.shortcuts}
### File
| Shortcut | Action |
|----------------------------|---------------------|
| `Ctrl` `N` | New file |
| `Ctrl` `Shift` `N` | New Window |
| `Ctrl` `O` | Open folder |
| `Ctrl` `Alt` `Shift` `O` | Open remote folder |
| `Ctrl` `S` | Save |
| `Ctrl` `Shift` `S` | Save As... |
| `Ctrl` `Alt` `S` | Save All |
| `Ctrl` `Shift` `W` | Close Window |
| Shortcut | Action |
| ------------------------ | ------------------ |
| `Ctrl` `N` | New file |
| `Ctrl` `Shift` `N` | New Window |
| `Ctrl` `O` | Open folder |
| `Ctrl` `Alt` `Shift` `O` | Open remote folder |
| `Ctrl` `S` | Save |
| `Ctrl` `Shift` `S` | Save As... |
| `Ctrl` `Alt` `S` | Save All |
| `Ctrl` `Shift` `W` | Close Window |
{.shortcuts}
### Edit
| Shortcut | Action |
|------------------------|---------------------|
| `Ctrl` `Z` | Undo |
| `Ctrl` `Shift` `Z` | Redo |
| `Ctrl` `X` | Cut |
| `Ctrl` `C` | Copy |
| `Ctrl` `V` | Paste |
| `Ctrl` `Shift` `F` | Find in project |
| `Ctrl` `/` | Toggle line comment |
| Shortcut | Action |
| ------------------ | ------------------- |
| `Ctrl` `Z` | Undo |
| `Ctrl` `Shift` `Z` | Redo |
| `Ctrl` `X` | Cut |
| `Ctrl` `C` | Copy |
| `Ctrl` `V` | Paste |
| `Ctrl` `Shift` `F` | Find in project |
| `Ctrl` `/` | Toggle line comment |
{.shortcuts}
### Selection
| Shortcut | Action |
|--------------------------|-------------------------|
| `Ctrl` `A` | Select all |
| `Alt` `Shift` `Right` | Expand selection |
| `Alt` `Shift` `Left` | Shrink selection |
| `Alt` `Shift` `Up` | Add cursor above |
| `Alt` `Shift` `Down` | Add cursor below |
| `Ctrl` `Shift` `Down` | Select next Occurrence |
| `Alt` `Up` | Move line up |
| `Alt` `Down` | Move line down |
| `Ctrl` `Shift` `D` | Duplicate selection |
| Shortcut | Action |
| --------------------- | ---------------------- |
| `Ctrl` `A` | Select all |
| `Alt` `Shift` `Right` | Expand selection |
| `Alt` `Shift` `Left` | Shrink selection |
| `Alt` `Shift` `Up` | Add cursor above |
| `Alt` `Shift` `Down` | Add cursor below |
| `Ctrl` `Shift` `Down` | Select next Occurrence |
| `Alt` `Up` | Move line up |
| `Alt` `Down` | Move line down |
| `Ctrl` `Shift` `D` | Duplicate selection |
{.shortcuts}
### View
| Shortcut | Action |
|------------------------|----------------------|
| `Ctrl` `B` | Toggle Left Dock |
| `Ctrl` `Alt` `B` | Toggle Right Dock |
| `Ctrl` `J` | Toggle Bottom Dock |
| `Ctrl` `Alt` `Y` | Close All Docks |
| `Ctrl` `K` `Up` | Split Up |
| `Ctrl` `K` `Down` | Split Down |
| `Ctrl` `K` `Left` | Split Left |
| `Ctrl` `K` `Right` | Split Right |
| `Ctrl` `Shift` `E` | Project Panel |
| `Ctrl` `Shift` `B` | Outline Panel |
| `Ctrl` `Shift` `C` | Collab Panel |
| `Ctrl` ``` ` ``` | Terminal Panel |
| `Ctrl` `Shift` `M` | Diagnostics |
| Shortcut | Action |
| ------------------ | ------------------ |
| `Ctrl` `B` | Toggle Left Dock |
| `Ctrl` `Alt` `B` | Toggle Right Dock |
| `Ctrl` `J` | Toggle Bottom Dock |
| `Ctrl` `Alt` `Y` | Close All Docks |
| `Ctrl` `K` `Up` | Split Up |
| `Ctrl` `K` `Down` | Split Down |
| `Ctrl` `K` `Left` | Split Left |
| `Ctrl` `K` `Right` | Split Right |
| `Ctrl` `Shift` `E` | Project Panel |
| `Ctrl` `Shift` `B` | Outline Panel |
| `Ctrl` `Shift` `C` | Collab Panel |
| `Ctrl` `` ` `` | Terminal Panel |
| `Ctrl` `Shift` `M` | Diagnostics |
{.shortcuts}
### Go
| Shortcut | Action |
|-----------------------|----------------------------|
| `Ctrl` `Alt` `-` | Back |
| `Ctrl` `Shift` `P` | Command Palette… |
| `Ctrl` `E` | Go to File… |
| `Ctrl` `Shift` `O` | Go to Symbol in Editor… |
| `Ctrl` `G` | Go to Line/Column… |
| `F12` | Go to Definition |
| `Ctrl` `F12` | Go to Type Definition |
| `Alt` `Shift` `F12` | Find All References |
| `F8` | Next Problem |
| `Shift` `F8` | Previous Problem |
| Shortcut | Action |
| ------------------- | ----------------------- |
| `Ctrl` `Alt` `-` | Back |
| `Ctrl` `Shift` `P` | Command Palette… |
| `Ctrl` `E` | Go to File… |
| `Ctrl` `Shift` `O` | Go to Symbol in Editor… |
| `Ctrl` `G` | Go to Line/Column… |
| `F12` | Go to Definition |
| `Ctrl` `F12` | Go to Type Definition |
| `Alt` `Shift` `F12` | Find All References |
| `F8` | Next Problem |
| `Shift` `F8` | Previous Problem |
{.shortcuts}
## Also see
- [Zed](https://zed.dev/)
- [Zed GitHub](https://github.com/zed-industries/zed)
- [Zed Documentation](https://zed.dev/docs)
+4 -5
View File
@@ -3,9 +3,9 @@ title: About
date: 2020-03-26 20:45:53
---
Welcome to [CheatSheets] – your go-to resource for [describing content]. Designed with [developers/students/professionals]
in mind, our quick reference provides a comprehensive collection of [topics/sections] to help you [solve problems/learn
efficiently/etc.].
Welcome to [CheatSheets] – your go-to resource for [describing content]. Designed with
[developers/students/professionals] in mind, our quick reference provides a comprehensive collection of
[topics/sections] to help you [solve problems/learn efficiently/etc.].
Our user-friendly interface ensures rapid access to the information you need. Whether you're [coding/studying/working],
you'll find [specific benefits or standout features].
@@ -24,8 +24,7 @@ Key Features:
- By avoiding the need to seek through lengthy documentation, cheat sheets save users valuable time during tasks or
learning.
- Digital cheat sheets are easily searchable, and users can quickly find what they need by using keywords or phrases.
- Cheat sheets act as a rapid review tool, allowing users to refresh their memory on topics they've previously
learned.
- Cheat sheets act as a rapid review tool, allowing users to refresh their memory on topics they've previously learned.
Our team of experts has meticulously crafted this reference to provide instant information. We're committed to evolving
our content to meet your needs and bring out fascinating upgrades in the future.
+3
View File
@@ -0,0 +1,3 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M 452.759 56.3 L 56.3 743.002 L 56.3 940.358 C 56.3 955.358 68.452 967.548 83.262 967.7 L 464.152 967.7 L 272.758 636.444 L 607.697 56.3 L 452.759 56.3 Z M 648.71 56.3 L 464.152 375.974 L 605.418 620.495 L 967.7 620.495 L 967.7 83.566 C 967.7 68.49 955.548 56.3 940.358 56.3 L 648.71 56.3 Z M 443.645 411.48 L 365.417 547.241 C 356.682 562.393 356.682 581.001 365.417 596.153 C 374.151 611.343 390.1 620.457 407.569 620.457 L 564.405 620.457 L 443.645 411.48 Z M 325.163 656.039 L 505.164 967.7 L 940.738 967.7 C 955.548 967.548 967.7 955.396 967.7 940.434 L 967.7 656.001 L 325.163 656.039 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 738 B

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 445.44 0 L 424.96 35.456 L 675.84 470.016 L 947.2 0 L 445.44 0 Z M 993.28 0 L 627.328 633.856 L 1024 633.856 L 1024 30.336 C 1023.79 13.52 1010.1 -0.001 993.28 0 Z M 401.92 75.392 L 245.76 345.856 L 558.08 345.856 L 401.92 75.392 Z M 468.608 385.024 L 467.84 385.024 C 452.48 385.237 437.973 394.24 430.336 407.339 L 384.128 487.552 L 383.787 488.149 C 376.284 501.686 376.284 518.133 383.787 531.669 C 399.33 558.607 414.875 585.544 430.421 612.48 C 438.272 625.707 453.035 633.813 468.181 633.856 C 468.267 633.856 527.061 633.941 556.373 633.813 C 571.733 633.6 586.197 625.067 593.835 611.968 C 609.365 585.045 625.024 558.165 640.469 531.157 C 647.979 517.76 647.723 501.163 640.171 488.021 L 639.744 487.381 L 593.749 407.595 L 593.493 407.211 C 585.655 393.842 571.48 385.456 555.989 385.024 L 555.477 385.024 L 468.608 385.024 Z M 222.72 385.707 L 0 771.499 L 0 788.139 L 0.128 995.968 C 1.44 1010.94 13.39 1022.76 28.373 1023.91 L 396.8 385.707 L 222.72 385.707 Z M 348.16 549.76 L 74.069 1024 L 621.909 1024 L 348.16 549.76 Z M 465.792 673.749 L 668.032 1024 L 993.28 1024 C 1010.25 1024 1024 1010.25 1024 993.28 L 1024 673.792 L 465.792 673.749 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 255.915 68.565 L 0 512 L 255.915 955.434 L 768.085 955.434 L 1024 512 L 768.085 68.565 L 255.915 68.565 Z M 425.173 303.786 L 540.16 422.4 L 608.341 490.453 L 608.427 490.368 L 711.253 591.189 C 702.72 597.162 694.784 601.941 687.232 605.866 C 680.41 609.458 673.337 612.552 666.069 615.125 C 660.163 617.193 654.099 618.777 647.936 619.861 C 642.347 620.842 637.269 621.312 632.661 621.312 C 627.115 621.312 622.336 620.714 618.24 619.861 C 614.737 619.165 611.308 618.136 608 616.789 C 604.971 615.533 602.106 613.914 599.467 611.968 L 554.155 565.376 L 424.491 435.626 L 377.557 480.554 L 246.571 611.626 C 243.922 613.535 241.058 615.124 238.037 616.362 C 234.776 617.727 231.389 618.77 227.925 619.477 C 223.179 620.438 218.347 620.91 213.504 620.885 C 208.896 620.885 203.819 620.501 198.229 619.562 C 192.063 618.437 185.998 616.81 180.096 614.698 C 172.828 612.126 165.755 609.032 158.933 605.44 C 150.626 601.072 142.603 596.184 134.912 590.805 L 425.173 303.786 Z M 626.56 337.28 L 821.931 533.461 L 880.896 591.189 C 873.191 596.583 865.154 601.485 856.832 605.866 C 850.039 609.457 842.995 612.552 835.755 615.125 C 829.835 617.196 823.756 618.78 817.579 619.861 C 812.032 620.842 806.869 621.312 802.219 621.312 C 796.715 621.312 791.936 620.714 787.84 619.861 C 782.065 618.681 776.518 616.578 771.413 613.632 C 770.584 613.171 769.823 612.596 769.152 611.925 L 716.587 559.957 L 626.517 469.888 L 612.267 484.138 L 545.707 418.133 L 626.603 337.194 L 626.56 337.28 Z M 372.011 513.066 L 372.011 620.97 C 366.915 620.9 361.834 620.4 356.821 619.477 C 350.698 618.306 344.678 616.651 338.816 614.528 C 331.666 611.987 324.707 608.936 317.995 605.397 C 309.807 601.059 301.898 596.214 294.315 590.89 L 371.968 513.024 L 372.011 513.066 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 512.015 354.241 L 464.067 724.289 L 416.118 388.651 L 392.178 676.307 L 376.15 644.353 L 360.156 452.593 L 352.176 644.353 L 328.168 700.315 L 312.242 508.556 L 296.214 660.347 L 272.273 620.413 L 272.273 732.269 L 248.265 642.341 L 248.265 444.613 C 237.762 434.962 223.78 428.96 208.399 428.619 L 208.331 428.619 L 208.331 932.008 C 208.57 932.008 208.877 932.008 209.184 932.008 C 226.133 932.008 240.865 922.391 248.163 908.307 L 248.265 908.068 L 248.265 764.223 L 256.279 772.203 L 280.288 852.106 L 288.268 756.209 L 312.276 876.08 L 312.276 724.289 L 328.202 764.223 L 352.21 876.08 L 352.21 724.289 L 368.204 740.215 L 392.212 876.08 L 416.153 692.267 L 469.012 899.372 L 472.081 772.169 L 488.075 724.255 L 504.103 923.994 L 552.017 724.255 L 568.012 892.04 L 607.98 716.241 L 647.948 908 L 655.928 764.155 L 679.868 716.207 L 687.882 900.02 L 727.851 724.221 L 751.791 804.123 L 759.805 732.201 L 775.731 764.155 L 775.731 908 C 783.165 922.323 797.898 931.974 814.881 931.974 C 815.153 931.974 815.46 931.974 815.733 931.974 L 815.699 931.974 L 815.699 428.585 C 800.251 428.926 786.269 434.928 775.663 444.613 L 775.697 444.579 L 775.697 649.707 L 759.771 692.335 L 751.757 556.47 L 735.763 660.313 L 719.768 628.358 L 711.754 516.502 L 671.82 668.327 L 663.806 636.373 L 639.866 396.665 L 615.926 604.418 L 599.898 668.327 L 567.943 452.593 L 535.989 636.338 L 519.995 684.287 L 512.015 354.241 Z M 512.015 92.026 C 509.935 91.992 507.479 91.958 505.024 91.958 C 404.421 91.958 311.594 125.276 236.943 181.477 L 238.069 180.659 C 168.397 231.745 122.972 312.397 120.449 403.758 L 120.449 404.168 L 120.449 436.122 C 47.503 484.104 -0.002 565.61 -0.002 658.232 C -0.002 664.61 0.237 670.953 0.68 677.193 L 0.646 676.341 C 0.646 817.492 80.924 932.042 184.391 932.042 L 184.391 404.134 C 186.778 332.757 222.722 270.213 276.877 231.574 L 277.559 231.131 C 340.479 184.137 419.802 155.866 505.706 155.866 C 507.923 155.866 510.139 155.9 512.356 155.935 L 512.015 155.935 C 513.857 155.9 516.039 155.9 518.256 155.9 C 604.195 155.9 683.551 184.137 747.528 231.847 L 746.505 231.131 C 801.308 270.247 837.252 332.757 839.639 403.793 L 839.639 404.168 L 839.639 932.042 C 943.107 932.042 1023.38 817.526 1023.38 676.341 C 1023.79 670.919 1024 664.575 1024 658.198 C 1024 565.61 976.493 484.104 904.502 436.77 L 903.513 436.156 L 903.513 404.202 C 900.99 312.432 855.565 231.813 786.678 181.273 L 785.893 180.727 C 712.436 125.344 619.609 92.026 519.04 92.026 C 516.585 92.026 514.095 92.06 511.64 92.094 L 512.015 92.094 L 512.015 92.026 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 668.971 0 L 758.4 101.547 C 758.4 101.547 836.907 79.701 873.984 116.821 C 911.019 153.941 941.568 186.709 941.568 186.709 L 917.589 245.632 L 948.096 332.971 C 948.096 332.971 858.325 673.451 847.829 715.051 C 827.093 796.928 812.928 828.544 754.048 870.059 C 693.572 912.379 632.51 953.855 570.88 994.475 C 553.429 1005.4 531.627 1024 512 1024 C 492.373 1024 470.613 1005.4 453.12 994.475 C 391.488 953.857 330.426 912.381 269.952 870.059 C 211.072 828.544 196.907 796.928 176.213 715.051 C 165.675 673.451 75.904 332.971 75.904 332.971 L 106.411 245.632 L 82.432 186.709 C 82.432 186.709 112.981 153.941 150.059 116.821 C 187.093 79.701 265.6 101.547 265.6 101.547 L 354.987 0 L 669.013 0 L 668.971 0 Z M 512 637.269 C 506.027 637.269 467.712 650.795 436.992 666.709 C 406.272 682.624 384 693.888 376.875 698.368 C 369.749 702.805 374.101 711.211 380.587 715.819 C 387.072 720.384 474.197 787.925 482.688 795.435 C 491.136 802.901 503.552 815.232 512 815.232 C 520.448 815.232 532.907 802.859 541.355 795.435 C 549.803 787.968 636.928 720.384 643.413 715.819 C 649.899 711.211 654.251 702.805 647.125 698.325 C 640 693.888 617.728 682.624 586.965 666.709 C 556.245 650.795 517.973 637.269 512 637.269 Z M 512 156.075 C 512 156.075 494.549 156.117 468.395 164.864 C 442.24 173.611 413.867 184.491 400.811 184.491 C 387.712 184.491 290.688 165.973 290.688 165.973 C 290.688 165.973 175.701 305.152 175.701 334.891 C 175.701 364.629 190.165 372.48 204.715 387.925 L 290.901 479.616 C 299.093 488.277 316.075 501.419 306.091 525.099 C 296.064 548.779 281.344 578.859 297.728 609.451 C 314.112 640 342.187 660.395 360.192 657.024 C 378.155 653.611 420.437 631.509 435.968 621.44 C 451.499 611.328 500.736 570.667 500.736 555.136 C 500.736 539.563 449.835 511.616 440.448 505.301 C 431.061 498.901 388.139 474.368 387.243 464.768 C 386.389 455.083 386.731 452.267 399.36 428.459 C 412.032 404.608 434.816 372.821 431.019 351.659 C 427.221 330.539 390.485 319.531 364.245 309.589 C 338.005 299.691 287.488 280.96 281.173 278.016 C 274.859 275.115 276.48 272.341 295.637 270.549 C 314.752 268.715 368.981 261.504 393.429 268.331 C 417.877 275.157 459.648 285.525 463.061 291.029 C 466.432 296.576 469.419 296.747 465.92 315.733 C 462.464 334.72 444.587 425.856 442.837 442.027 C 441.131 458.24 437.717 468.907 455.125 472.917 C 472.576 476.928 501.931 483.84 512 483.84 C 522.069 483.84 551.424 476.928 568.875 472.917 C 586.283 468.949 582.912 458.24 581.163 442.069 C 579.456 425.856 561.536 334.72 558.08 315.733 C 554.581 296.747 557.568 296.533 560.939 291.029 C 564.352 285.525 606.123 275.157 630.571 268.331 C 655.019 261.504 709.291 268.715 728.363 270.549 C 747.52 272.341 749.141 275.115 742.827 278.016 C 736.512 280.96 685.995 299.691 659.755 309.589 C 633.515 319.531 596.779 330.496 592.981 351.659 C 589.141 372.821 611.968 404.608 624.64 428.459 C 637.312 452.267 637.611 455.083 636.757 464.725 C 635.904 474.368 592.981 498.944 583.552 505.259 C 574.165 511.659 523.264 539.563 523.264 555.136 C 523.264 570.667 572.501 611.328 588.032 621.44 C 603.563 631.509 645.845 653.653 663.808 657.024 C 681.813 660.395 709.888 639.957 726.272 609.451 C 742.656 578.901 727.936 548.779 717.952 525.099 C 707.925 501.419 724.907 488.277 733.099 479.616 L 819.285 387.925 C 833.835 372.48 848.299 364.629 848.299 334.891 C 848.299 305.152 733.312 165.931 733.312 165.931 C 733.312 165.931 636.288 184.533 623.232 184.533 C 610.133 184.533 581.76 173.611 555.605 164.864 C 529.451 156.117 512 156.075 512 156.075 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M512 714.666667c-8.533333 0-17.066667-2.133333-23.466667-8.533334l-341.333333-341.333333c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l320 317.866667 317.866667-317.866667c12.8-12.8 32-12.8 44.8 0 12.8 12.8 12.8 32 0 44.8l-341.333334 341.333333c-4.266667 6.4-12.8 8.533333-21.333333 8.533334z"/>
</svg>

After

Width:  |  Height:  |  Size: 431 B

+5
View File
@@ -0,0 +1,5 @@
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M744 312h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c53 0 96 43 96 96s-43 96-96 96h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c101.8 0 184-82.2 184-184s-82.2-184-184-184z"/>
<path d="M664 128H144c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-24h480v24c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32z"/>
<path d="M144 256h520c17.7 0 32 14.3 32 32v496c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V288c0-17.7 14.3-32 32-32zm464 496V320H176v432h432z"/>
</svg>

After

Width:  |  Height:  |  Size: 615 B

+3
View File
@@ -0,0 +1,3 @@
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.4c2.4.8 4.9 1.2 7.5 1.2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM672 888H414V746c0-22.1-17.9-40-40-40H232V256h440v632z"/>
</svg>

After

Width:  |  Height:  |  Size: 512 B

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 34.261 633.013 C 34.261 601.269 68.626 581.428 96.117 597.3 C 108.876 604.667 116.736 618.28 116.736 633.013 C 116.736 664.758 82.372 684.598 54.88 668.726 C 42.121 661.359 34.261 647.746 34.261 633.013 M 150.997 633.013 C 150.997 624.65 148.736 616.97 146.219 609.418 C 136.235 579.466 108.843 557.536 75.52 557.536 C 70.187 557.536 65.493 559.498 60.459 560.522 C 26.24 567.69 0 596.661 0 633.013 C 1.382 691.132 65.161 725.961 114.802 695.704 C 136.749 682.328 150.386 658.708 150.997 633.013 M 75.477 327.989 C 107.238 327.989 127.089 362.371 111.208 389.877 C 103.838 402.643 90.218 410.506 75.477 410.506 C 43.716 410.506 23.866 376.124 39.746 348.618 C 47.116 335.853 60.737 327.989 75.477 327.989 M 75.477 444.725 C 117.186 444.725 150.997 410.914 150.997 369.205 C 150.997 360.885 148.736 353.162 146.219 345.653 C 136.235 315.701 108.8 293.728 75.52 293.728 C 70.187 293.728 65.493 295.733 60.459 296.8 C 26.24 303.925 0 332.853 0 369.205 C 0 410.89 33.792 444.725 75.52 444.725 M 639.573 201.781 C 616.794 201.781 598.334 183.302 598.357 160.522 C 598.357 137.743 616.836 119.283 639.616 119.306 C 671.361 119.306 691.201 153.671 675.329 181.162 C 667.962 193.921 654.349 201.781 639.616 201.781 M 230.016 906.336 C 198.271 905.315 179.537 870.312 196.293 843.331 C 203.572 831.611 216.227 824.305 230.016 823.861 C 252.796 823.861 271.256 842.34 271.232 865.12 C 271.232 887.883 252.779 906.336 230.016 906.336 M 639.616 85.045 C 597.907 85.045 564.096 118.856 564.096 160.565 C 564.096 169.44 566.357 177.717 569.173 185.653 L 214.997 792.629 C 180.736 799.797 154.496 828.725 154.496 865.12 C 155.878 923.239 219.657 958.067 269.298 927.811 C 291.245 914.435 304.882 890.815 305.493 865.12 C 305.208 857.05 303.609 849.08 300.757 841.525 L 656.725 232.544 C 689.92 224.608 715.093 196.149 715.093 160.522 C 715.07 118.83 681.265 85.045 639.573 85.045 M 948.48 201.781 C 925.7 201.781 907.24 183.302 907.264 160.522 C 907.264 137.743 925.743 119.283 948.523 119.306 C 980.267 119.306 1000.11 153.671 984.235 181.162 C 976.869 193.921 963.255 201.781 948.523 201.781 M 538.923 906.336 C 516.143 906.336 497.683 887.857 497.707 865.077 C 497.707 842.314 516.16 823.861 538.923 823.861 C 570.667 823.861 590.508 858.226 574.635 885.717 C 567.269 898.476 553.655 906.336 538.923 906.336 M 948.523 85.045 C 906.814 85.045 873.003 118.856 873.003 160.565 C 873.003 169.44 875.264 177.717 878.08 185.653 L 523.904 792.629 C 489.685 799.797 463.445 828.725 463.445 865.12 C 465.399 923.222 529.518 957.421 578.86 926.678 C 600.226 913.365 613.554 890.28 614.4 865.12 C 614.4 856.714 612.139 849.077 609.664 841.525 L 965.632 232.544 C 998.784 224.608 1024 196.149 1024 160.522 C 1023.98 118.83 990.172 85.045 948.48 85.045"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

+2 -3
View File
@@ -1,4 +1,3 @@
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M525.65333333 967.11111147h-4.55111146a469.2195552 469.2195552 0 0 1-334.0515552-143.36 476.04622187 476.04622187 0 0 1-11.83288854-637.15555627 461.0275552 461.0275552 0 0 1 182.04444374-124.70044373 45.51111147 45.51111147 0 0 1 48.24177813 10.01244373 45.51111147 45.51111147 0 0 1 10.92266667 45.51111147 382.29333333 382.29333333 0 0 0 88.2915552 400.95288853 385.47911147 385.47911147 0 0 0 401.86311146 88.29155627 45.51111147 45.51111147 0 0 1 57.79911147 58.70933333A462.39288853 462.39288853 0 0 1 857.8844448 830.57777813a467.85422187 467.85422187 0 0 1-332.23111147 136.53333334z"
></path>
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M9.528 1.718a.75.75 0 01.162.819A8.97 8.97 0 009 6a9 9 0 009 9 8.97 8.97 0 003.463-.69.75.75 0 01.981.98 10.503 10.503 0 01-9.694 6.46c-5.799 0-10.5-4.701-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 01.818.162z"/>
</svg>

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 512 682.667 L 512 1024 L 170.667 682.667 M 170.667 682.667 L 170.667 341.333 L 512 341.333 M 170.667 682.667 L 853.334 682.667 L 512 341.333 M 512 341.333 L 853.334 341.333 L 853.334 0 L 170.667 0 L 512 341.333 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 364 B

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 638.3 571.941 L 607.032 587.337 L 609.592 589.453 L 618.023 596.144 L 703.738 665.166 C 731.16 687.104 758.912 708.62 786.995 729.716 C 786.756 730.979 786.619 732.413 786.619 733.881 C 786.619 734.324 786.619 734.768 786.653 735.212 L 786.653 735.144 L 797.747 733.437 L 802.151 739.923 L 900.973 802.698 C 899.437 808.706 898.584 815.601 898.584 822.702 C 898.584 838.199 902.748 852.741 910.019 865.235 L 909.814 864.825 C 936.952 905.924 976.208 937.158 1022.43 953.646 L 1024 954.124 C 991.125 870.184 1015.09 801.879 950.197 777.813 C 945.657 775.833 940.4 774.707 934.836 774.707 C 930.74 774.707 926.78 775.321 923.093 776.482 L 923.366 776.414 L 836.047 695.581 L 828.64 693.362 L 827.582 682.199 C 825.602 682.985 823.895 683.838 822.291 684.794 L 822.461 684.691 C 809.422 673.597 793.173 661.786 775.969 649.941 C 717.802 614.338 679.706 594.471 638.266 571.873 L 638.3 571.941 Z M 661.785 567.674 C 659.737 569.927 657.552 571.976 655.231 573.853 L 655.129 573.955 L 664.072 578.871 C 663.526 574.638 662.707 570.849 661.649 567.162 L 661.785 567.674 Z M 309.437 355.897 C 289.844 356.136 274.039 372.077 274.039 391.739 C 274.039 411.538 290.082 427.582 309.881 427.582 C 329.68 427.582 345.724 411.538 345.724 391.739 C 345.724 384.981 343.846 378.666 340.603 373.306 L 340.706 373.477 C 334.356 362.895 322.921 355.931 309.881 355.931 C 309.745 355.931 309.574 355.931 309.437 355.931 L 309.472 355.931 L 309.437 355.897 Z M 72.297 350.674 L 72.366 350.674 C 72.661 350.674 72.957 350.674 73.253 350.674 C 73.287 350.674 73.321 350.674 73.356 350.674 C 84.654 350.674 94.895 355.18 102.405 362.519 C 109.846 369.79 114.421 379.894 114.421 391.125 C 114.421 402.356 109.812 412.46 102.371 419.731 C 94.895 427.036 84.62 431.542 73.321 431.542 C 62.022 431.542 51.714 427.002 44.238 419.662 C 36.83 412.392 32.222 402.253 32.222 391.057 C 32.222 380.031 36.66 370.063 43.862 362.827 C 51.167 355.487 61.169 350.879 72.263 350.606 L 72.297 350.606 L 72.297 350.674 Z M 539.068 323.4 C 539.068 323.4 539.033 323.4 539.033 323.4 C 507.834 323.4 482.505 348.694 482.505 379.929 C 482.505 411.163 507.799 436.457 539.033 436.457 C 570.233 436.457 595.562 411.163 595.562 379.929 C 595.562 369.551 592.763 359.789 587.882 351.425 L 588.018 351.698 C 578.085 334.665 559.89 323.4 539.102 323.4 L 539.068 323.4 Z M 292.677 302.85 C 293.462 302.816 294.384 302.816 295.305 302.816 C 337.736 302.816 372.315 336.44 373.817 378.529 L 373.817 378.666 C 372.247 420.823 337.668 454.412 295.271 454.412 C 294.349 454.412 293.428 454.412 292.506 454.378 L 292.643 454.378 C 291.858 454.412 290.97 454.412 290.048 454.412 C 247.652 454.412 213.107 420.823 211.605 378.802 L 211.605 378.666 C 213.107 336.44 247.72 302.782 290.185 302.782 C 291.072 302.782 291.926 302.782 292.779 302.816 L 292.643 302.816 L 292.677 302.85 Z M 846.903 69.943 C 842.397 69.26 837.174 74.517 833.078 86.874 C 826.387 106.912 787.302 223.519 598.293 271.411 C 623.553 292.576 639.597 323.98 639.938 359.174 L 639.938 359.242 C 637.481 425.773 582.966 478.751 516.094 478.751 C 514.661 478.751 513.193 478.717 511.759 478.683 L 511.964 478.683 C 510.769 478.717 509.37 478.751 507.936 478.751 C 441.03 478.751 386.516 425.773 384.092 359.481 L 384.092 359.242 C 384.194 333.163 393.104 309.165 407.953 290.05 L 407.748 290.323 C 324.321 278.887 254.684 228.537 216.896 158.457 L 216.213 157.091 L 212.117 334.665 C 212.253 337.225 212.356 340.229 212.356 343.267 C 212.356 365.319 208.055 386.346 200.203 405.564 L 200.613 404.472 L 198.463 401.4 C 183.238 380.099 164.259 362.554 142.378 349.343 L 141.524 348.865 C 123.364 337.566 101.313 330.842 77.691 330.842 C 77.418 330.842 77.145 330.842 76.871 330.842 L 76.906 330.842 C 60.657 331.183 45.74 336.44 33.451 345.247 L 33.69 345.076 C 13.106 361.598 -0.002 386.79 -0.002 415.02 C -0.002 417.034 0.066 419.014 0.203 420.994 L 0.203 420.721 C 1.568 458.167 14.403 492.371 35.26 520.192 L 34.919 519.748 C 52.26 544.189 74.857 563.817 101.108 577.267 L 102.132 577.744 C 116.571 585.561 133.741 590.136 152.004 590.136 C 160.265 590.136 168.287 589.18 176.001 587.405 L 175.284 587.541 C 303.122 682.234 537.088 764.5 697.013 667.965 L 610.65 598.465 C 588.223 604.473 562.451 607.954 535.893 607.954 C 495.237 607.954 456.459 599.864 421.095 585.152 L 423.075 585.869 C 447.379 593.891 475.336 598.499 504.352 598.499 C 558.73 598.499 609.353 582.284 651.613 554.464 L 650.623 555.078 C 642.191 545.93 632.155 538.386 620.925 532.89 L 620.345 532.617 C 635.91 536.065 649.36 543.506 660.044 553.815 L 660.01 553.781 C 665.813 561.223 669.329 570.678 669.329 580.953 C 669.329 581.192 669.329 581.431 669.329 581.67 L 669.329 581.636 C 692.917 594.334 719.782 609.627 749.309 626.934 C 837.174 539.069 888.07 373.852 856.802 88.718 C 855.3 77.248 851.374 70.592 846.868 69.875 L 846.903 69.943 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 248.935 1022.75 C 248.935 1021.9 250.215 1021.73 250.983 1021.73 C 251.836 1021.73 255.933 1019.68 260.282 1017.21 C 271.859 1010.47 285.441 1004.91 298.417 1001.55 L 309.917 998.56 L 338.301 999.41 C 367.265 1000.27 412.989 998.56 439.954 997.03 C 600.584 985.97 715.637 947.35 777.06 883.883 C 791.865 868.575 804.852 850.928 802.804 848.888 C 801.951 848.036 796.148 850.084 782.888 855.289 C 670.095 900.139 538.632 910.908 420.558 884.976 C 413.219 883.354 406.973 881.818 406.76 881.648 C 406.76 881.648 414.354 880.795 424.159 880.539 C 477.841 878.49 538.299 871.006 586.572 860.451 C 714.98 832.377 809.153 779.975 865.182 705.403 C 878.102 688.225 893.556 661.822 893.556 656.933 C 893.556 650.789 878.554 656.933 817.541 689.215 C 751.639 723.834 684.038 743.913 616.49 748.913 C 591.896 750.705 534.528 749.767 527.462 747.292 C 526.608 747.292 536.319 744.135 548.975 740.977 C 669.345 710.625 793.196 654.979 865.694 598.668 C 879.817 587.711 899.546 570.031 899.546 568.358 C 899.546 567.505 900.4 566.737 900.57 566.395 C 901.423 566.395 901.594 642.401 901.594 794.891 L 901.594 1024 L 574.958 1024 C 357.463 1024 248.535 1024 248.944 1022.98 L 248.935 1022.75 Z M 122.459 627.655 L 122.407 500.135 L 149.162 500.135 L 175.925 500.135 L 176.778 387.606 C 177.632 276.017 177.632 275.002 179.509 266.076 C 190.182 222.412 215.34 173.798 249.447 130.935 C 261.281 116.062 290.543 86.947 305.72 74.923 C 348.863 40.772 396.399 18.715 449.751 8.082 C 463.191 5.437 484.362 2.536 491.735 2.45 C 494.977 2.408 495.659 2.45 494.294 1.597 C 491.478 0.488 522.317 -0.452 537.455 0.231 C 544.452 0.231 549.333 1.17 548.276 1.511 C 547.166 1.511 550.664 2.536 556.126 2.876 C 576.469 4.328 607.855 11.069 629.725 18.749 C 697.496 42.514 753.79 90.624 795.928 160.759 C 816.202 194.508 833.568 235.664 844.285 275.361 L 847.869 288.63 L 847.869 391.584 L 847.869 494.52 L 837.612 499.981 C 744.626 549.423 728.207 557.308 700.081 566.114 C 671.803 574.963 609.442 586.303 540.792 595.067 C 510.447 598.907 504.252 599.59 439.775 606.143 C 302.035 620.061 267.79 630.259 208.83 674.947 C 182.383 695.009 131.886 741.532 124.464 752.694 C 122.928 754.997 122.843 746.891 122.758 627.664 L 122.459 627.655 Z M 681.291 391.464 L 681.291 282.801 L 677.707 272.442 C 662.006 227.097 630.074 191.18 587.272 170.7 C 558.771 157.064 531.661 151.867 498.748 153.728 C 429.398 157.653 367.547 205.174 344.025 272.579 L 340.697 282.084 L 340.697 390.09 C 340.697 449.49 340.655 498.667 340.697 499.367 C 340.697 500.39 374.464 500.561 511.009 500.39 L 680.821 500.39 L 680.821 391.72 L 681.291 391.464 Z M 243.792 269.532 C 263.831 230.527 288.742 193.227 313.893 164.565 C 351.678 121.506 400.349 89.438 449.588 75.171 C 479.787 66.424 498.218 64.077 537.002 64.06 C 570.274 64.043 574.933 64.06 615.687 70.204 C 640.22 73.702 645.477 73.873 643.975 71.485 C 641.671 67.73 598.296 53.897 574.011 49.127 C 542.915 42.984 501.743 40.85 473.207 43.922 C 365.192 55.434 285.304 119.517 248.867 223.905 C 244.344 236.978 240.131 252.303 237.419 265.957 C 234.005 282.998 236.224 284.253 243.818 269.541 L 243.792 269.532 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<g transform="matrix(1.200019, 0, 0, 1.200019, -102.421753, -102.421562)">
<path d="M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"/>
<path d="M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"/>
<path d="M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+4 -27
View File
@@ -1,27 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg height="1em" width="1em" viewBox="-46 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
<g>
<path d="M125.533525,84.856832 C126.234965,66.5716053 121.616725,59.190272 118.150485,53.9132587 C114.633045,48.9895253 106.195285,41.2532053 95.8272853,40.9289387 C86.0224853,40.6234453 83.663872,46.042112 74.6185387,46.369792 C73.1354453,29.8970453 85.5668053,20.8585387 85.5668053,20.8585387 C85.5668053,20.8585387 82.1671253,16.054272 79.3545387,14.881792 C76.1186987,17.7575253 68.360192,26.017792 66.701312,37.107712 C64.9536853,20.7732053 56.7872853,10.3266987 38.6829653,3.04605867 C33.5407787,21.0343253 50.5186987,37.839872 61.5488853,44.4770987 C55.7018453,42.5127253 50.6279253,39.9168853 43.8132053,41.2583253 C31.9023787,43.6032853 22.0839253,50.803712 16.4877653,66.6057387 C10.893312,82.4077653 18.4640853,100.843179 20.109312,106.108245 C21.7562453,111.378432 33.9367253,133.761365 43.4838187,137.053525 C53.0292053,140.349099 53.0326187,138.864299 58.135552,136.891392 C63.2384853,134.916779 70.9730987,131.293525 82.3343787,135.411712 C93.6871253,139.524779 95.168512,140.511232 102.244352,135.903232 C109.327019,131.295232 118.541312,116.976299 120.679765,112.859819 C122.819925,108.746752 123.971925,106.604885 124.634112,104.466432 C125.456725,98.2029653 124.902059,101.245952 125.533525,84.856832" fill="#D1D2D3">
</path>
<path d="M126.214656,110.16192 L126.214656,119.103147 C126.214656,121.197227 127.912789,122.89536 130.006869,122.89536 L130.006869,122.89536 L144.076629,122.89536 C148.601003,122.89536 152.942763,124.694187 156.142763,127.894187 C159.344469,131.095893 161.143296,135.435947 161.143296,139.962027 L161.143296,139.962027 L161.142317,181.198985 C161.142285,181.658001 161.142252,182.115644 161.142219,182.571734 L161.141346,191.858973 C161.141296,192.284417 161.141245,192.707037 161.141192,193.126652 L161.140495,198.006133 C161.140432,198.398798 161.140367,198.78773 161.1403,199.17275 L161.139883,201.434453 C161.139883,205.970773 159.335936,210.321067 156.120576,213.522773 C152.906923,216.72448 148.549803,218.514773 144.013483,218.499413 C139.258709,218.51136 134.258176,218.502827 130.087083,218.4448 C129.066496,218.42432 128.081749,218.81344 127.353003,219.528533 C126.625963,220.24192 126.214656,221.218133 126.214656,222.235307 L126.214656,222.235307 L126.214339,226.749094 C126.214304,226.931737 126.214265,227.115473 126.214222,227.300091 L126.213464,229.544517 C126.213379,229.732856 126.213288,229.921242 126.213191,230.109466 L126.212523,231.2352 C126.210389,234.409813 126.206123,237.41696 126.197589,239.230293 C126.197589,240.35328 125.697536,241.41824 124.833963,242.13504 C120.487083,245.418667 105.301163,252.695893 71.3350827,252.695893 C38.0704427,252.695893 22.2291627,247.261867 17.286656,244.399787 C16.196096,243.705173 15.535616,242.500267 15.5322027,241.210027 C15.517184,233.835861 15.4611944,207.580048 15.4031959,180.486075 L15.3952782,176.787942 C15.3279344,145.338457 15.2602709,113.864788 15.2529605,110.46478 L15.2523093,110.16192 L126.214656,110.16192 Z M143.034197,138.088619 L130.954411,138.088619 C129.782044,138.088619 128.652792,138.525707 127.785893,139.305529 L127.604224,139.477845 C126.774329,140.309333 126.283401,141.412887 126.221632,142.580368 L126.214997,142.831445 L126.214997,197.999445 C126.214997,199.171812 126.650599,200.301064 127.43161,201.169351 L127.604224,201.351339 C128.432526,202.181234 129.538841,202.670675 130.703929,202.732246 L130.954411,202.738859 L143.034197,202.738859 C144.206564,202.738859 145.335816,202.304743 146.204103,201.52393 L146.386091,201.351339 C147.214393,200.521444 147.705215,199.415023 147.766977,198.249927 L147.773611,197.999445 L147.773611,142.831445 C147.773611,141.655893 147.338009,140.529402 146.558385,139.66011 L146.386091,139.477845 C145.556196,138.649543 144.449775,138.157234 143.284679,138.095274 L143.034197,138.088619 Z" fill="#FEFEFE">
</path>
<path d="M26.191872,109.062656 L26.191872,226.619563 C26.191872,227.976363 26.9154987,229.229056 28.091392,229.906603 C32.888832,232.193536 46.810112,237.653163 71.217152,237.653163 C95.7846187,237.653163 109.291179,231.019349 113.815552,228.285269 C114.895872,227.590656 115.546112,226.392576 115.546112,225.109163 C115.556352,209.520469 115.556352,109.062656 115.556352,109.062656 L26.191872,109.062656 Z" fill="#FAAF41">
</path>
<path d="M39.327744,123.713536 C42.128384,123.713536 44.4187307,125.903189 44.5791573,128.664576 L44.5876907,128.973483 L44.5876907,219.821056 C44.5876907,222.725803 42.2324907,225.081003 39.327744,225.081003 C36.5253973,225.081003 34.2367573,222.891349 34.0763307,220.131669 L34.0677973,219.821056 L34.0677973,128.973483 C34.0677973,126.068736 36.4229973,123.713536 39.327744,123.713536" fill="#FFDA95">
</path>
<path d="M89.8184533,133.186048 C89.8184533,131.289941 88.7022933,129.025195 86.8693333,127.888555 C83.88608,126.084608 81.55648,123.316395 80.2884267,120.019115 C56.02304,120.834901 33.8773333,116.575061 22.7191467,113.566208 C19.85536,112.753835 16.9540267,112.079701 14.02368,111.547221 C7.3472,110.221141 2.27157333,104.357035 2.27157333,97.3067947 C2.27157333,89.5465813 8.42922667,83.240448 16.1211733,82.963968 C17.6042667,74.756608 24.7688533,68.525568 33.4045867,68.525568 C43.11552,68.525568 50.9883733,76.3984213 50.9883733,86.1093547 C50.9883733,88.1522347 50.6197333,90.1080747 49.9797333,91.934208 L50.0309333,91.9427413 C52.2001067,85.160448 58.5489067,80.245248 66.0514133,80.245248 C73.5044267,80.245248 79.8208,85.1024213 82.0258133,91.821568 C81.96096,91.2157013 81.9285333,90.5995947 81.9285333,89.9749547 C81.9285333,79.8749013 90.1154133,71.689728 100.21376,71.689728 C108.388693,71.689728 115.30752,77.055488 117.649067,84.453888 L119.241387,84.0374613 C121.326933,82.8632747 123.7248,82.1840213 126.288213,82.1840213 C134.224213,82.1840213 140.65664,88.6181547 140.653228,96.5507413 C140.653228,103.819435 135.258453,109.825195 128.254293,110.784341 C126.667093,111.007915 125.11232,111.412395 123.615573,111.989248 C119.451307,113.557675 115.19488,114.858155 110.895787,115.931648 C110.680747,118.051328 110.04928,120.048128 109.085013,121.840128 C107.3408,125.113515 106.559147,128.813568 106.8288,132.511915 C106.827093,132.735488 106.835627,133.909675 106.835627,134.134955 C106.835627,138.833408 103.026347,141.692075 98.3227733,141.692075 C93.6277333,141.692075 89.8184533,137.886208 89.8184533,133.186048" fill="#FEFEFE">
</path>
<polygon fill="#010202" points="86.4017067 112.433152 86.5024 112.740352 86.4699733 112.433152">
</polygon>
<path d="M37.19168,0 L39.5298133,0.938666667 C54.5570133,6.98197333 63.3053867,15.2814933 67.0993067,27.5182933 C69.49888,22.20032 73.1426133,17.4711467 77.3768533,13.6072533 L77.3768533,13.6072533 L78.9128533,12.2368 L80.2304,12.78464 C80.79872,13.0235733 81.3653333,13.3495467 81.9387733,13.75744 C82.8296533,14.3906133 83.73248,15.2132267 84.6472533,16.18432 C85.3418667,16.9198933 86.0040533,17.7015467 86.6167467,18.4814933 L86.6167467,18.4814933 L86.9546667,18.9166933 L87.33184,19.4235733 L88.7159467,21.3777067 L86.90176,22.69696 L86.6542933,22.8881067 L86.31296,23.168 L85.89312,23.5383467 L85.3998933,23.9940267 C84.2018133,25.1306667 82.9986133,26.4874667 81.8756267,28.05248 C78.7336533,32.43008 76.84608,37.4920533 76.7675733,43.2366933 L76.7675733,43.2366933 L76.7658667,43.9057067 L77.2573867,43.8254933 C78.9486933,43.5165867 80.5393067,42.9243733 82.8672,41.8645333 L82.8672,41.8645333 L84.1966933,41.2552533 C88.69376,39.2192 91.38688,38.5194667 95.8976,38.6594133 C105.47712,38.9597867 114.69312,45.1669333 120.04864,52.6677333 C120.168107,52.8503467 120.28928,53.03296 120.405333,53.21728 L120.405333,53.21728 L121.094827,54.3095467 L121.751893,55.3949867 C125.84448,62.34624 127.81568,69.0944 127.88736,79.99488 C136.326827,80.79872 142.928213,87.9035733 142.9248,96.5512533 C142.9248,104.89344 136.751787,111.91296 128.571733,113.032533 C128.54272,113.037653 128.515413,113.04448 128.484693,113.0496 L128.484693,113.0496 L128.484693,119.103147 C128.484693,119.942827 129.16736,120.625493 130.00704,120.625493 L130.00704,120.625493 L144.0768,120.625493 C149.205333,120.625493 154.123947,122.661547 157.750613,126.288213 C161.37728,129.916587 163.413333,134.8352 163.413333,139.962027 L163.413333,139.962027 L163.411627,201.434453 C163.411627,206.574933 161.365333,211.503787 157.723307,215.130453 C154.08128,218.758827 149.147307,220.788053 144.02048,220.76928 C143.296853,220.770987 142.58688,220.772693 141.888853,220.7744 L141.888853,220.7744 L137.751893,220.772693 L132.724053,220.745387 L130.039467,220.714667 C129.629867,220.706133 129.235627,220.863147 128.94208,221.149867 C128.65024,221.436587 128.484693,221.827413 128.484693,222.235307 L128.484693,222.235307 L128.479573,234.668373 L128.467627,239.230293 C128.467627,241.02912 127.6672,242.732373 126.201173,243.945813 C124.1344,245.507413 121.39008,246.985387 117.986987,248.323413 L117.986987,248.323413 L116.82816,248.762027 C115.053227,249.41568 113.114453,250.031787 111.015253,250.601813 L111.015253,250.601813 L109.590187,250.975573 L108.11904,251.33568 C106.624,251.68896 105.05728,252.02176 103.420587,252.330667 L103.420587,252.330667 L101.76,252.632747 L100.053333,252.91776 C98.6094933,253.14816 97.1195733,253.3632 95.5818667,253.55776 L95.5818667,253.55776 L93.71136,253.78304 L91.79648,253.991253 L89.83552,254.178987 L87.82848,254.349653 L85.77536,254.49984 L83.67616,254.629547 C83.32288,254.650027 82.9678933,254.6688 82.6112,254.687573 L82.6112,254.687573 L80.44544,254.78656 L78.2353067,254.865067 C77.4894933,254.885547 76.73856,254.906027 75.9790933,254.921387 L75.9790933,254.921387 L73.6785067,254.953813 C72.9053867,254.962347 72.1237333,254.96576 71.3352533,254.96576 L71.3352533,254.96576 L70.1354667,254.96576 C69.34016,254.96064 68.5499733,254.953813 67.76832,254.94528 L67.76832,254.94528 L65.4455467,254.907733 L63.1671467,254.85312 C62.4145067,254.83264 61.6704,254.80704 60.93312,254.78144 L60.93312,254.78144 L58.7451733,254.690987 C58.38336,254.67392 58.02496,254.65856 57.66656,254.639787 L57.66656,254.639787 L55.5451733,254.523733 L53.4698667,254.394027 L51.44064,254.245547 C51.1044267,254.221653 50.7733333,254.194347 50.44224,254.16704 L50.44224,254.16704 L48.48128,253.99808 C48.15872,253.96736 47.8378667,253.938347 47.51872,253.90592 L47.51872,253.90592 L45.6277333,253.714773 L43.7845333,253.508267 C43.4807467,253.472427 43.1786667,253.436587 42.88,253.39904 L42.88,253.39904 L41.1067733,253.170347 L39.3813333,252.931413 L37.7053867,252.67712 C36.87936,252.545707 36.0704,252.412587 35.2802133,252.27264 L35.2802133,252.27264 L33.72544,251.987627 C33.46944,251.93984 33.2168533,251.890347 32.9659733,251.840853 L32.9659733,251.840853 L31.48288,251.538773 L30.0509867,251.226453 L28.6685867,250.90048 L27.33568,250.56768 C26.0283733,250.228053 24.79616,249.873067 23.6424533,249.506133 L23.6424533,249.506133 L22.51264,249.13408 C21.95968,248.946347 21.4289067,248.7552 20.9152,248.558933 L20.9152,248.558933 L19.9150933,248.168107 C18.4541867,247.57248 17.1707733,246.95296 16.06656,246.314667 C14.3240533,245.203627 13.2676267,243.280213 13.2625067,241.21344 L13.2625067,241.21344 L12.98944,113.629867 C5.46474667,111.85152 0,105.14432 0,97.3073067 C0,89.66656 5.1712,83.2238933 12.2350933,81.29024 C12.1480533,78.96576 12.20096,76.672 12.4416,74.40896 C12.7624533,71.4154667 13.3888,68.5568 14.3479467,65.8466133 C19.8485333,50.3108267 29.6379733,41.73312 43.3749333,39.02976 C45.8274133,38.54848 48.07168,38.4938667 50.4302933,38.8113067 C48.6485333,37.143893Line truncated
</path>
</g>
</svg>
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 338.709 0 C 334.619 0 331.028 2.719 329.92 6.656 C 316.437 53.76 337.557 98.389 365.675 131.883 C 372.203 139.605 379.029 146.688 385.984 153.259 C 376.543 151.988 366.958 152.276 357.611 154.112 C 307.093 164.053 264.043 196.139 240.704 262.144 C 233.887 282.257 230.99 303.49 232.171 324.693 C 203.162 332.547 182.975 358.812 182.848 388.864 C 182.986 420.253 204.64 447.448 235.2 454.613 L 236.309 968.576 C 236.309 976.896 240.576 984.661 247.573 989.141 C 247.686 989.215 247.799 989.286 247.915 989.355 C 270.827 1002.58 335.253 1024 470.208 1024 C 608.363 1024 670.741 995.072 691.264 979.627 C 691.38 979.53 691.494 979.43 691.605 979.328 C 697.172 974.7 700.393 967.837 700.395 960.597 C 700.48 945.92 700.48 912.128 700.48 892.16 C 700.454 888.706 703.299 885.919 706.752 886.016 C 723.691 886.272 743.829 886.272 762.987 886.229 C 806.098 886.371 841.129 851.474 841.152 808.363 L 841.152 560.725 C 841.152 517.714 806.297 482.84 763.285 482.816 L 706.581 482.816 C 703.164 482.891 700.382 480.088 700.48 476.672 L 700.48 452.267 L 700.779 452.267 L 700.779 452.224 C 733.916 447.609 758.593 419.292 758.635 385.835 C 758.635 351.019 731.883 322.304 697.877 319.147 C 696.811 257.792 679.232 228.437 666.475 209.067 C 666.406 208.966 666.334 208.866 666.261 208.768 C 650.731 187.008 615.36 154.069 569.195 152.619 C 547.733 151.936 533.269 157.909 521.195 163.456 C 511.936 167.723 503.275 171.008 492.608 172.843 C 492.693 117.973 532.928 88.32 532.928 88.32 C 537.021 85.394 537.975 79.707 535.061 75.605 C 535.061 75.605 531.349 70.4 526.101 64.512 C 520.939 58.709 514.624 51.968 506.048 48.384 C 504.981 47.93 503.837 47.684 502.677 47.659 C 500.394 47.64 498.187 48.477 496.491 50.005 C 481.557 63.513 468.945 79.383 459.157 96.981 C 457.094 100.778 455.201 104.665 453.483 108.629 C 449.691 95.929 444.225 83.79 437.227 72.533 C 417.899 41.728 386.709 18.603 342.08 0.683 C 341.023 0.249 339.894 0.017 338.752 0 L 338.709 0 Z M 345.365 22.357 C 381.632 38.485 406.379 57.771 421.739 82.219 C 433.429 100.907 439.915 123.264 442.389 149.803 C 441.724 156.351 441.552 162.94 441.877 169.515 C 439.479 168.806 437.089 168.066 434.709 167.296 C 414.024 154.52 395.454 138.599 379.669 120.107 C 356.16 92.075 339.776 57.813 345.365 22.357 Z M 503.488 69.035 C 506.475 71.339 509.504 73.344 512.533 76.715 C 513.984 78.379 513.899 78.421 515.008 79.829 C 500.843 92.971 469.355 128.64 474.389 184.491 C 474.818 189.349 478.989 193.012 483.861 192.811 C 503.872 192.085 517.227 185.472 528.917 180.053 C 540.565 174.677 550.592 170.325 568.64 170.923 C 605.973 172.075 638.571 201.429 651.371 219.307 C 663.957 238.464 679.104 261.973 679.659 320 C 673.588 321.246 667.706 323.282 662.165 326.059 C 649.016 296.06 619.399 276.65 586.645 276.565 C 549.12 276.693 516.375 302.048 506.859 338.347 C 492.524 321.184 471.364 311.197 449.003 311.04 C 428.352 311.04 410.176 319.787 396.395 333.099 C 391.106 293.51 357.402 263.904 317.461 263.765 C 289.771 263.765 265.493 278.059 251.243 299.605 C 252.195 288.919 254.445 278.388 257.941 268.245 C 279.701 206.933 315.755 180.992 361.195 172.075 C 376.853 168.96 389.525 171.605 403.435 176.128 C 417.301 180.651 432.064 187.307 450.112 190.72 C 456.36 191.936 461.903 186.546 460.864 180.267 C 456.085 151.68 463.979 126.251 475.2 105.856 C 482.768 92.258 492.3 79.851 503.488 69.035 Z M 317.461 282.069 C 360.047 281.942 389.88 324.077 375.616 364.203 C 373.704 369.584 377.144 375.38 382.784 376.277 L 382.997 376.277 C 387.457 376.999 391.774 374.351 393.152 370.048 C 406.851 327.083 461.924 315.06 492.283 348.406 C 497.854 354.526 502.066 361.756 504.64 369.621 C 506.673 376.35 515.227 378.354 520.038 373.229 C 521.913 371.232 522.792 368.498 522.432 365.781 C 518.506 327.759 548.378 294.708 586.603 294.784 C 615.531 294.784 639.893 313.771 648.128 339.84 C 649.586 344.503 654.456 347.191 659.179 345.941 L 665.579 344.235 C 666.338 344.045 667.069 343.758 667.755 343.381 C 700.232 324.914 740.533 348.474 740.373 385.835 C 740.407 410.168 722.454 430.782 698.347 434.091 C 698.332 434.091 698.318 434.091 698.304 434.091 C 691.225 435.094 684.283 436.898 677.611 439.467 C 661.2 445.621 644.446 450.821 627.435 455.04 C 623.685 455.958 620.917 459.135 620.523 462.976 C 619.811 470.118 617.694 477.05 614.293 483.371 C 606.539 497.911 603.006 514.331 604.096 530.773 L 604.139 537.216 C 604.424 543.128 601.892 548.826 597.312 552.576 C 592.082 556.649 585.591 558.763 578.965 558.549 C 565.056 558.597 553.782 547.285 553.877 533.376 C 553.854 521.54 547.724 510.555 537.664 504.32 C 537.636 504.291 537.607 504.263 537.579 504.235 C 527.339 498.048 519.232 488.448 514.88 477.099 C 513.496 473.451 509.948 471.085 506.048 471.211 C 428.856 473.369 351.74 464.752 276.928 445.611 L 276.8 445.525 C 265.02 442.198 253.089 439.436 241.045 437.248 L 241.173 437.248 C 218.017 432.712 201.283 412.46 201.195 388.864 C 201.195 362.453 222.016 341.163 248.171 340.224 C 252.481 340.091 256.111 336.959 256.875 332.715 C Line truncated
</svg>

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

+9
View File
@@ -0,0 +1,9 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em"">
<g transform="matrix(2.247413, 0, 0, 2.089796, -38.51609, 0)">
<rect x="167.765" y="296.665" width="14.296" height="75.366"/>
<path d="M209.724,328.8l-0.105-9.884l-0.164-4.92l-0.224-4.965h0.553l2.378,5.413l2.423,5.398 c2.288,5.159,3.963,8.763,5.024,10.827l21.533,41.362h24.24v-75.366h-14.296v43.395l0.105,9.72l0.179,4.86l0.165,4.86h-0.508 l-2.871-6.191l-2.871-6.131c-2.273-4.815-4.277-8.927-6.011-12.307l-19.604-38.206h-24.24v75.366h14.296V328.8z"/>
<rect x="278.646" y="296.665" width="14.296" height="75.366"/>
<path d="M77.788,0v265.111H42.189v139.615h0.001l35.59,35.591L77.788,490h370.023V102.422L345.388,0H77.788z M395.793,389.413 H57.501v-108.99h338.292V389.413z M353.022,36.962l57.816,57.804h-57.816V36.962z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 879 B

+2 -3
View File
@@ -1,4 +1,3 @@
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M512 31.40266667c14.19946667 0 26.935296 8.14830933 31.93787733 20.447232l29.40381867 72.50466133c12.713984 31.30436267-4.456448 66.21320533-38.33856 77.96599467A70.34197333 70.34197333 0 0 1 512 206.16533333c-36.19771733 0-65.536-27.11005867-65.536-60.555264 0-7.25265067 1.41994667-14.46161067 4.17245867-21.25550933l29.425664-72.50466133C485.04285867 39.550976 497.75684267 31.40266667 512 31.40266667z m0 961.19466666c-14.221312 0-26.95714133-8.14830933-31.93787733-20.447232l-29.425664-72.50466133a56.492032 56.492032 0 0 1-4.17245867-21.25550933C446.464 844.96657067 475.80228267 817.83466667 512 817.83466667c7.86432 0 15.64125867 1.31072 23.003136 3.84477866 33.882112 11.75278933 51.052544 46.661632 38.33856 77.98784l-29.40381867 72.482816c-5.00258133 12.29892267-17.73841067 20.447232-31.93787733 20.447232z m480.59733333-480.59733333c0 14.19946667-8.14830933 26.935296-20.447232 31.93787733l-72.50466133 29.40381867c-31.30436267 12.713984-66.21320533-4.456448-77.96599467-38.33856A70.34197333 70.34197333 0 0 1 817.83466667 512c0-36.19771733 27.11005867-65.536 60.555264-65.536 7.25265067 0 14.46161067 1.41994667 21.25550933 4.17245867l72.50466133 29.425664c12.29892267 4.980736 20.447232 17.69472 20.447232 31.93787733zM31.40266667 512c0-14.221312 8.14830933-26.95714133 20.447232-31.93787733l72.50466133-29.425664c6.77205333-2.752512 13.98101333-4.17245867 21.25550933-4.17245867C179.03342933 446.464 206.16533333 475.80228267 206.16533333 512c0 7.86432-1.31072 15.64125867-3.84477866 23.003136-11.75278933 33.882112-46.661632 51.052544-77.98784 38.33856l-72.482816-29.40381867C39.550976 538.935296 31.40266667 526.19946667 31.40266667 512zM172.15214933 172.17399467c10.04885333-10.04885333 24.81629867-13.28196267 37.04968534-8.126464l72.06775466 30.45239466c31.1296 13.172736 43.66882133 49.98212267 28.00571734 82.24768a70.34197333 70.34197333 0 0 1-13.54410667 19.00544c-25.58088533 25.58088533-65.49230933 27.15374933-89.12896 3.49525334a56.492032 56.492032 0 0 1-12.10231467-17.97870934L164.04753067 209.22368c-5.177344-12.23338667-1.94423467-27.000832 8.10461866-37.04968533z m679.673856 679.673856c-10.04885333 10.04885333-24.81629867 13.28196267-37.04968533 8.10461866l-72.04590933-30.45239466a56.492032 56.492032 0 0 1-18.00055467-12.08046934c-23.63665067-23.658496-22.06378667-63.56992 3.51709867-89.15080533a70.34197333 70.34197333 0 0 1 19.00544-13.54410667c32.26555733-15.663104 69.074944-3.12388267 82.24768 28.00571734l30.45239466 72.06775466c5.15549867 12.23338667 1.92238933 26.97898667-8.126464 37.04968534z m0-679.69570134c10.04885333 10.04885333 13.28196267 24.81629867 8.126464 37.04968534l-30.45239466 72.06775466c-13.172736 31.1296-49.98212267 43.66882133-82.24768 28.00571734a70.34197333 70.34197333 0 0 1-19.00544-13.54410667c-25.58088533-25.58088533-27.15374933-65.49230933-3.49525334-89.12896 5.111808-5.15549867 11.206656-9.240576 17.97870934-12.10231467l72.04590933-30.45239466c12.23338667-5.177344 27.000832-1.94423467 37.04968533 8.10461866zM172.15214933 851.82600533c-10.04885333-10.04885333-13.28196267-24.81629867-8.10461866-37.04968533l30.45239466-72.04590933c2.83989333-6.77205333 6.946816-12.86690133 12.08046934-18.00055467 23.658496-23.63665067 63.56992-22.06378667 89.15080533 3.51709867 5.57056 5.57056 10.15808 12.01493333 13.54410667 19.00544 15.663104 32.26555733 3.12388267 69.074944-28.00571734 82.24768l-72.06775466 30.45239466c-12.23338667 5.15549867-26.97898667 1.92238933-37.04968534-8.126464zM512 752.29866667c-132.7104 0-240.29866667-107.58826667-240.29866667-240.29866667s107.58826667-240.29866667 240.29866667-240.29866667 240.29866667 107.58826667 240.29866667 240.29866667-107.58826667 240.29866667-240.29866667 240.29866667z"
></path>
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="1em" width="1em">
<path d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.166a.75.75 0 00-1.06-1.06l-1.591 1.59a.75.75 0 101.06 1.061l1.591-1.59zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM17.834 18.894a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 10-1.061 1.06l1.59 1.591zM12 18a.75.75 0 01.75.75V21a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM7.758 17.303a.75.75 0 00-1.061-1.06l-1.591 1.59a.75.75 0 001.06 1.061l1.591-1.59zM6 12a.75.75 0 01-.75.75H3a.75.75 0 010-1.5h2.25A.75.75 0 016 12zM6.697 7.757a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 00-1.061 1.06l1.59 1.591z"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 774 B

+8
View File
@@ -0,0 +1,8 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<g transform="matrix(30.989471, 0, 0, 30.989471, -215.609863, -113.381523)">
<path d="M21.2219 26.1822C21.7957 26.8188 22.6185 27.1839 23.4793 27.1839C24.3401 27.1839 25.1628 26.8188 25.7366 26.1822L36.8899 13.8084C37.1767 13.4901 37.5881 13.3076 38.0185 13.3076H39.4963C39.7751 13.3076 40.001 13.0833 40.001 12.8067V11.805C40.001 11.5285 39.7751 11.3042 39.4963 11.3042H38.0185C37.0143 11.3042 36.0544 11.7302 35.385 12.4729L24.2317 24.8466C24.0273 25.0734 23.7415 25.193 23.4322 25.1795C23.1521 25.1674 22.8921 25.03 22.7052 24.8226L11.5736 12.4729C10.9043 11.7302 9.94436 11.3042 8.94004 11.3042H7.46227C7.18352 11.3042 6.95752 11.5285 6.95752 11.805V12.8067C6.95752 13.0833 7.18352 13.3076 7.46227 13.3076H8.94004C9.37046 13.3076 9.7817 13.4901 10.0687 13.8084L21.2219 26.1822Z"/>
<path d="M38.0185 27.0533H39.4963C39.7751 27.0533 40.001 27.2775 40.001 27.5541V28.5558C40.001 28.8324 39.7751 29.0567 39.4963 29.0567H38.0185C37.0143 29.0567 36.0544 28.6307 35.3848 27.8879L31.3759 23.4403L32.7303 21.9377L36.8899 26.5524C37.1767 26.8707 37.5881 27.0533 38.0185 27.0533Z"/>
<path d="M14.2283 21.9377L10.0687 26.5524C9.7817 26.8707 9.37046 27.0533 8.94004 27.0533H7.46227C7.18339 27.0533 6.95752 27.2775 6.95752 27.5541V28.5558C6.95752 28.8324 7.18339 29.0567 7.46227 29.0567H8.94004C9.94436 29.0567 10.9043 28.6307 11.5736 27.8879L15.5826 23.4402L14.2283 21.9377Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<g transform="matrix(44.52174, 0, 0, 44.52174, -22.260864, -22.26067)">
<path d="M6.77857 6.13902C7.7289 4.78181 9.59953 4.45197 10.9568 5.4023C12.314 6.35263 12.6438 8.22327 11.6935 9.58048L5.95771 17.772C5.00738 19.1292 3.13674 19.4591 1.77953 18.5087C0.422312 17.5584 0.0924684 15.6878 1.0428 14.3305L6.77857 6.13902Z"/>
<path d="M15.2678 6.22799C16.2182 4.87077 18.0888 4.54093 19.446 5.49126C20.8032 6.44159 21.1331 8.31223 20.1827 9.66945L14.447 17.861C13.4966 19.2182 11.626 19.548 10.2688 18.5977C8.91158 17.6474 8.58173 15.7767 9.53207 14.4195L15.2678 6.22799Z"/>
<path d="M20.5 18.8595C22.1569 18.8595 23.5 17.5164 23.5 15.8595C23.5 14.2026 22.1569 12.8595 20.5 12.8595C18.8431 12.8595 17.5 14.2026 17.5 15.8595C17.5 17.5164 18.8431 18.8595 20.5 18.8595Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 924 B

+890
View File
@@ -0,0 +1,890 @@
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="1.12em" height="1.12em" fill="currentColor" viewBox="0 0 720.000000 386.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0,386) scale(0.11,-0.11)">
<path d="M3253 3790 c-731 -52 -1254 -287 -2350 -1053 -268 -188 -345 -245
-443 -331 -169 -149 -259 -288 -285 -439 -8 -48 11 -144 39 -193 27 -48 98
-97 174 -119 47 -14 269 -59 397 -81 89 -15 325 -78 425 -113 267 -92 561
-233 936 -449 117 -66 251 -140 298 -164 47 -23 86 -45 86 -49 0 -3 -10 -11
-23 -16 -17 -8 -29 -7 -48 3 -15 8 -58 13 -115 14 l-91 0 -43 -93 -43 -92 -43
92 -43 92 -212 0 c-224 0 -256 -5 -279 -49 -15 -28 -23 -25 -45 16 l-19 36
-104 -4 c-103 -3 -104 -3 -133 -36 -43 -48 -41 -102 6 -149 l35 -35 0 -120 c0
-114 -1 -122 -25 -150 -18 -21 -25 -41 -25 -72 0 -82 53 -116 180 -116 88 0
134 15 163 51 l23 30 22 -40 23 -40 182 0 c201 0 246 7 275 44 l20 25 16 -25
c25 -38 75 -45 284 -43 180 3 192 4 221 26 l31 23 31 -23 c30 -22 38 -23 281
-26 283 -2 319 3 349 51 23 37 21 98 -6 127 -15 17 -14 19 21 30 20 7 54 28
76 48 57 51 81 104 82 179 l1 61 105 6 c206 11 425 27 454 33 28 6 28 5 13
-18 -30 -45 -50 -147 -42 -215 28 -263 302 -399 500 -248 26 19 48 34 49 32 1
-2 7 -14 14 -28 22 -44 50 -54 157 -58 132 -5 173 8 201 65 l22 43 28 -55 29
-55 60 0 c76 0 130 15 148 41 14 19 15 19 83 -13 64 -30 77 -33 169 -32 104 0
165 16 243 64 31 19 32 23 32 82 1 40 6 70 15 82 8 11 15 40 15 64 0 38 -5 50
-33 76 -33 31 -33 33 -18 56 12 17 16 48 16 110 0 93 -16 133 -58 149 -12 5
-87 8 -167 7 -137 -1 -148 -2 -202 -29 -58 -29 -118 -87 -140 -139 -16 -36
-24 -35 -31 2 -9 41 -73 109 -127 134 -38 17 -70 21 -206 24 -179 4 -214 -4
-236 -56 -7 -15 -13 -29 -15 -31 -1 -2 -18 10 -38 28 -31 27 -34 32 -18 38 75
27 256 120 443 227 309 177 608 331 779 401 121 49 287 105 314 105 9 0 25 4
35 9 23 13 108 32 327 75 291 58 357 80 459 154 63 46 90 103 89 189 -1 121
-107 285 -287 445 -90 80 -357 283 -591 449 -755 538 -1417 842 -2055 945
-120 19 -644 28 -837 14z m737 -15 c69 -8 163 -21 210 -30 226 -42 663 -180
685 -216 13 -20 -2 -19 -66 7 -234 97 -516 172 -809 216 -121 18 -663 14 -862
-7 -267 -28 -545 -93 -763 -179 -103 -41 -95 -39 -95 -25 0 14 83 49 233 98
232 75 471 122 724 140 203 14 606 12 743 -4z m-120 -25 c256 -19 523 -75 777
-164 190 -65 241 -87 247 -102 8 -20 -4 -18 -91 17 -323 130 -665 211 -963
228 -158 9 -582 -2 -735 -19 -230 -26 -515 -96 -717 -178 -65 -26 -98 -35 -98
-27 0 16 205 92 375 139 235 64 447 95 740 105 306 12 321 12 465 1z m104 -45
c222 -26 412 -70 649 -151 158 -54 277 -104 277 -115 0 -12 5 -14 -105 31
-282 115 -592 192 -885 221 -151 14 -578 6 -782 -16 -253 -27 -502 -88 -732
-180 -61 -25 -112 -42 -115 -39 -11 11 30 34 129 72 265 101 531 160 821 181
202 14 603 12 743 -4z m86 -45 c220 -32 442 -92 679 -182 151 -57 161 -63 161
-99 0 -108 -68 -291 -134 -364 l-37 -39 33 -18 c18 -9 38 -17 43 -17 6 0 -5 8
-24 18 -19 10 -30 20 -24 22 6 2 28 32 50 66 48 73 92 202 101 295 l7 66 85
-41 85 -42 -2 -65 c-5 -112 -55 -239 -123 -312 -11 -12 -20 -26 -20 -31 0 -5
-7 -6 -16 -3 -8 3 -12 2 -9 -4 3 -6 1 -10 -6 -10 -10 0 -10 -3 -1 -12 10 -10
15 -10 21 1 5 8 14 10 21 6 8 -5 11 -4 7 2 -4 6 15 44 42 84 58 87 88 171 97
268 l7 70 89 -45 c49 -25 92 -52 95 -60 10 -26 -15 -172 -41 -235 -31 -76 -67
-130 -84 -124 -7 3 -10 1 -7 -4 3 -5 -6 -22 -19 -36 -21 -23 -28 -25 -48 -15
-22 11 -22 10 -4 -4 25 -20 31 -20 50 0 9 8 20 12 26 9 6 -4 9 -3 8 2 -1 4 17
37 40 72 49 75 79 165 89 263 7 79 0 78 105 17 l71 -41 -6 -57 c-4 -31 -16
-83 -27 -116 -25 -75 -92 -191 -108 -187 -7 1 -11 -1 -11 -5 3 -21 -2 -33 -13
-27 -7 5 -8 3 -3 -6 5 -8 2 -18 -9 -26 -18 -13 -19 -12 34 -42 25 -14 25 -14
3 3 -23 18 -33 42 -11 29 7 -4 8 -3 4 5 -4 6 1 23 12 39 75 105 130 232 140
325 l7 57 93 -56 c50 -31 92 -61 92 -66 0 -42 -38 -176 -66 -233 -37 -76 -86
-139 -99 -127 -5 4 -4 1 0 -7 6 -11 4 -13 -7 -8 -10 3 -15 0 -14 -11 1 -12 -6
-17 -23 -16 -23 1 -23 0 -5 -13 10 -8 28 -19 39 -24 19 -9 19 -9 2 4 -15 13
-15 16 -2 27 12 10 22 8 52 -10 36 -21 36 -21 13 -1 -14 11 -28 21 -32 21 -5
0 -8 5 -8 11 0 5 5 7 12 3 6 -4 8 -3 5 3 -4 5 5 25 19 44 56 74 106 198 120
291 l6 47 84 -56 c46 -31 84 -59 84 -63 0 -4 -9 -41 -19 -82 -24 -93 -60 -166
-108 -219 -30 -33 -38 -37 -52 -27 -14 11 -14 11 -4 -3 13 -16 0 -33 -42 -56
-11 -7 -14 -13 -7 -17 6 -4 42 23 80 61 76 75 121 156 146 262 8 35 17 65 20
68 8 9 171 -113 174 -130 2 -10 -10 -47 -27 -83 -36 -77 -160 -210 -187 -200
-10 4 -13 2 -8 -6 5 -7 2 -9 -9 -5 -12 4 -14 2 -10 -10 5 -14 -1 -12 -28 6
l-34 23 30 -27 c26 -24 27 -26 8 -22 -17 4 -20 1 -15 -11 4 -12 -3 -10 -26 7
-18 12 -32 20 -32 17 0 -3 21 -20 48 -37 27 -19 41 -25 32 -14 -14 17 -13 18
2 12 12 -4 15 -2 11 9 -6 17 8 18 27 1 11 -9 11 -8 0 7 -14 18 -13 19 3 13 12
-5 16 -3 11 5 -5 7 -2 9 9 5 10 -4 14 -2 11 7 -2 6 14 27 37 45 54 44 125 141
146 202 11 30 23 47 30 45 6 -3 43 -28 82 -56 l70 -51 -14 -38 c-26 -74 -57
-124 -113 -180 -94 -92 -117 -107 -140 -89 -15 12 -16 11 -3 -4 19 -25 -3 -24
-42 3 l-32 21 28 -24 c28 -24 39 -51 12 -28 -8 7 -15 10 -15 7 0 -3 15 -16 33
-28 21 -16 27 -17 18 -6 -18 23 -6 21 32 -4 l32 -21 -28 24 c-27 24 -27 49 0
26 10 -8 12 -8 8 3 -3 9 16 30 50 57 67 53 129 133 159 204 11 29 25 55 29 57
5 2 38 -18 74 -43 36 -26 67 -45 70 -43 2 3 -30 29 -71 58 -42 29 -76 59 -76
67 0 19 16 12 94 -44 l67 -48 -7 -41 c-3 -22 -18 -64 -32 -94 -29 -63 -158
-205 -179 -197 -8 3 -12 2 -9 -3 3 -5 -1 -14 -9 -21 -11 -9 -21 -7 -47 10
l-33 22 28 -24 c27 -24 27 -49 0 -26 -11 9 -12 7 -7 -7 6 -14 4 -16 -6 -10 -9
6 -11 4 -6 -4 5 -7 15 -10 23 -6 9 3 25 -3 37 -12 21 -18 21 -18 4 2 -14 17
-14 22 -2 33 8 7 20 10 27 6 6 -4 9 -4 5 0 -3 4 22 34 56 67 76 71 110 118
141 194 l23 57 83 -68 c46 -37 85 -68 87 -69 9 -8 -45 -92 -83 -130 -56 -57
-150 -119 -169 -112 -10 4 -13 1 -9 -9 6 -17 -8 -18 -27 -1 -12 10 -12 9 -1
-5 17 -22 3 -23 -29 -2 l-25 16 23 -20 c15 -14 18 -22 10 -25 -7 -2 -10 -8 -6
-12 4 -4 14 -3 21 3 8 7 17 9 20 5 4 -3 7 -2 7 4 0 18 31 24 49 11 14 -11 14
-11 3 4 -12 15 -8 20 29 44 62 39 147 122 176 171 l25 43 42 -37 c24 -21 57
-54 75 -75 l31 -36 -42 -37 c-51 -44 -219 -128 -258 -129 -15 -1 -25 -5 -22
-10 3 -5 -1 -7 -9 -4 -9 4 -15 -1 -16 -12 -1 -13 6 -17 27 -16 15 1 25 5 22
10 -3 5 2 6 12 3 10 -4 15 -3 11 3 -8 13 1 13 28 -1 21 -9 21 -9 4 5 -17 13
-12 18 74 60 51 26 111 62 135 81 23 19 44 35 47 35 7 0 74 -104 81 -127 6
-18 1 -25 -22 -37 -47 -24 -181 -55 -260 -60 -41 -2 -76 -7 -79 -10 -4 -3 4
-18 18 -32 20 -21 21 -27 9 -34 -13 -8 -12 -10 3 -10 10 0 16 -4 13 -9 -3 -5
2 -8 12 -7 9 0 16 -5 14 -12 -1 -8 2 -11 8 -7 5 3 19 0 31 -8 20 -14 20 -16 2
-27 -17 -11 -17 -11 1 -6 18 6 56 -18 56 -35 0 -8 -92 -39 -117 -39 -17 0 -17
47 0 53 8 4 6 6 -4 6 -9 1 -16 7 -17 14 -3 35 -8 53 -17 63 -15 18 -26 5 -15
-17 8 -14 7 -19 -2 -19 -10 0 -10 -2 1 -9 11 -7 10 -10 -5 -14 -17 -4 -17 -5
2 -6 16 -1 21 -9 22 -40 3 -43 1 -44 -70 -57 -38 -6 -38 -6 -39 27 0 19 -2 41
-4 50 -4 23 -35 69 -46 69 -14 0 -11 -9 13 -42 13 -19 22 -47 22 -72 l1 -41
-50 -11 c-96 -23 -100 -21 -102 40 -3 52 -34 126 -53 126 -5 0 2 -19 15 -42
17 -30 25 -58 25 -94 l0 -52 -71 -16 c-39 -9 -77 -16 -83 -16 -7 0 -10 20 -8
59 5 74 -25 131 -68 131 -12 -1 -12 -3 2 -14 10 -7 15 -16 11 -19 -3 -4 1 -7
9 -7 24 0 42 -54 34 -107 -3 -26 -8 -48 -10 -50 -2 -2 -33 -12 -69 -22 -75
-22 -69 -25 -82 56 -4 23 -16 52 -27 65 -11 13 -26 31 -33 42 -7 10 -19 16
-26 14 -8 -3 -3 -13 14 -30 38 -38 67 -98 67 -138 0 -36 -1 -36 -68 -58 -83
-27 -82 -27 -82 -3 0 10 -13 43 -28 74 -18 36 -25 58 -18 61 6 3 2 4 -9 3 -12
-1 -19 3 -17 11 1 8 -2 11 -7 7 -6 -3 -19 0 -29 6 -14 9 -23 9 -38 0 -18 -11
-17 -12 4 -6 13 4 22 2 22 -4 0 -6 5 -11 12 -11 34 0 108 -124 96 -162 -3 -9
-139 -72 -143 -66 -1 2 -13 23 -27 48 -15 25 -38 57 -52 72 -15 14 -23 28 -19
30 4 3 3 3 -4 2 -16 -4 -65 21 -57 29 3 3 -4 3 -17 0 -13 -4 -18 -8 -11 -11 7
-2 10 -8 7 -13 -4 -5 1 -6 9 -3 22 8 42 -6 25 -17 -10 -6 -6 -8 11 -7 16 2 24
-2 22 -10 -1 -8 1 -11 6 -8 16 10 92 -89 92 -119 0 -5 -144 -75 -155 -75 -3 0
-5 6 -5 13 0 6 -13 32 -30 57 l-30 45 23 12 c12 7 18 12 12 12 -5 1 -17 -4
-25 -9 -17 -10 -53 16 -44 32 3 5 -2 8 -12 6 -12 -2 -18 2 -16 11 2 8 -3 11
-11 8 -8 -3 -19 -1 -25 5 -7 7 -16 7 -28 0 -15 -8 -13 -11 14 -17 54 -11 162
-129 162 -175 0 -23 -150 -96 -161 -78 -5 7 -9 17 -9 22 0 4 -14 29 -31 54
-24 35 -28 47 -17 54 9 7 8 8 -5 4 -20 -6 -52 18 -43 33 3 5 -2 8 -12 7 -9 0
-16 5 -14 12 1 8 -2 11 -7 7 -6 -3 -19 0 -30 7 -16 10 -23 10 -33 0 -9 -9 -8
-12 7 -12 17 0 18 -2 5 -10 -11 -8 -8 -9 13 -4 27 6 39 -9 15 -20 -7 -3 0 -2
16 1 24 5 28 3 23 -10 -4 -11 -2 -14 9 -10 23 9 16 -13 -8 -26 -21 -11 -6 -8
26 5 16 6 74 -79 78 -115 3 -20 -8 -30 -67 -62 -38 -21 -73 -39 -76 -39 -3 0
-11 17 -17 39 -7 21 -23 55 -37 75 -14 21 -23 42 -19 47 3 5 0 8 -8 7 -7 -2
-12 3 -10 10 1 8 -2 11 -7 8 -5 -4 -16 1 -24 9 -9 8 -20 15 -26 15 -6 0 -11 5
-11 12 0 6 -3 8 -7 5 -3 -4 -11 -3 -17 2 -6 5 -20 5 -31 1 -17 -6 -14 -9 18
-15 20 -4 37 -11 37 -16 0 -5 7 -9 15 -9 16 0 21 -15 8 -23 -5 -2 -2 -2 6 0 7
2 25 -9 39 -24 27 -29 72 -118 72 -143 0 -12 -94 -72 -152 -98 -4 -2 -10 9
-14 25 -11 44 -33 85 -66 119 -28 30 -29 33 -11 43 15 9 13 10 -12 5 -34 -7
-58 -24 -34 -24 35 0 105 -98 111 -155 3 -28 -2 -32 -142 -102 -321 -161 -623
-223 -1090 -223 -136 0 -196 4 -225 15 -28 10 -86 14 -191 15 -176 0 -267 15
-434 69 -100 33 -319 134 -408 188 l-30 18 15 45 c20 60 81 143 100 136 8 -3
11 -1 8 4 -3 6 -1 10 4 10 6 0 11 5 11 10 0 21 -23 8 -60 -32 -34 -38 -67 -97
-84 -151 -5 -16 -11 -14 -63 14 -84 47 -87 50 -74 91 6 19 24 54 39 77 24 38
30 42 57 37 l30 -6 -25 16 -25 15 30 -6 c29 -6 29 -6 10 9 -23 18 -45 21 -45
5 0 -6 -9 -8 -22 -4 -20 5 -21 5 -5 -5 17 -11 16 -13 -7 -40 -13 -16 -32 -51
-42 -77 -10 -26 -19 -49 -20 -51 -6 -9 -164 85 -164 98 0 9 15 40 33 70 27 45
38 55 57 53 14 -1 19 1 13 3 -19 8 -15 24 4 17 11 -4 14 -3 9 5 -4 7 -1 12 9
12 10 0 13 5 9 11 -5 9 2 10 22 6 16 -3 23 -4 16 -1 -10 5 -10 9 0 22 11 14
10 15 -7 7 -11 -4 -28 -8 -37 -9 -9 0 -15 -2 -13 -5 7 -7 -47 -49 -59 -47 -6
2 -8 1 -5 -1 4 -2 -8 -29 -27 -60 -19 -31 -34 -63 -34 -70 0 -7 -2 -13 -5 -13
-5 0 -146 69 -153 75 -5 4 27 71 47 97 14 17 28 25 39 22 13 -5 14 -4 4 4 -11
7 -7 14 17 31 17 12 36 19 42 15 8 -4 9 -3 5 4 -5 8 1 12 16 12 21 1 21 2 5
11 -13 8 -22 7 -32 -1 -8 -6 -24 -9 -37 -5 -18 5 -20 4 -8 -4 14 -10 7 -16
-15 -11 -5 1 -7 -1 -3 -5 12 -12 -19 -35 -39 -29 -12 4 -14 3 -5 -3 9 -7 5
-23 -20 -69 -17 -32 -32 -60 -32 -61 -1 -1 -34 13 -74 32 -68 33 -71 36 -62
60 19 49 41 85 52 85 6 0 9 3 5 6 -11 11 21 34 40 28 15 -5 15 -4 3 5 -13 9
-13 11 3 11 9 0 17 5 17 10 0 6 8 10 17 10 9 0 13 3 9 7 -10 11 -36 12 -36 2
0 -5 -6 -9 -13 -9 -7 0 -19 -9 -27 -20 -9 -13 -22 -18 -35 -15 -11 3 -14 2 -7
-1 6 -3 12 -10 12 -15 0 -6 -9 -5 -21 1 -11 7 -23 9 -26 7 -2 -3 5 -8 17 -12
12 -4 20 -10 18 -13 -2 -4 -14 -28 -26 -54 -12 -27 -25 -48 -29 -48 -4 0 -41
14 -81 32 -71 31 -73 33 -66 62 11 55 48 111 69 108 16 -2 17 -1 6 7 -11 7
-10 10 5 13 17 5 18 6 2 12 -11 5 -23 2 -32 -6 -20 -20 -52 -87 -61 -126 -4
-18 -12 -32 -18 -30 -7 2 -38 12 -71 23 l-58 19 5 51 c7 66 25 105 46 98 12
-4 13 -3 2 5 -17 12 1 23 19 11 8 -5 22 -8 30 -8 8 0 3 5 -12 10 -17 7 -25 15
-21 25 7 18 -4 18 -23 -1 -26 -26 -54 -99 -54 -142 0 -24 -1 -43 -2 -43 -2 0
-37 11 -78 23 l-75 24 -3 51 c-2 36 3 62 17 91 23 44 26 61 12 61 -17 0 -41
-81 -41 -141 0 -53 -2 -60 -17 -55 -10 3 -40 10 -68 17 -27 7 -58 16 -67 21
-24 12 -22 51 6 121 13 31 20 57 15 57 -17 0 -41 -64 -46 -120 l-5 -57 -74 16
-74 15 0 36 c0 20 9 52 19 73 10 20 15 37 10 37 -13 0 -36 -50 -44 -98 l-7
-43 -41 6 c-23 4 -45 9 -49 12 -14 8 -9 83 7 113 16 31 13 34 -20 20 -11 -5
-14 -9 -8 -9 9 -1 10 -8 3 -25 -5 -13 -7 -40 -5 -61 4 -41 9 -41 -103 -9 -52
15 -52 15 -36 39 22 34 61 57 87 51 12 -3 16 -3 10 0 -21 9 -15 27 7 21 13 -3
18 -1 13 6 -4 6 2 8 16 4 22 -5 22 -5 5 15 -13 14 -28 19 -51 16 -39 -5 -40
-2 -11 29 28 30 47 30 22 1 l-19 -23 26 23 c33 28 60 30 34 2 -10 -11 -16 -20
-13 -20 2 0 15 12 29 27 13 14 18 23 12 19 -7 -4 -13 -2 -13 3 0 6 -3 10 -7
10 -26 -4 -43 2 -37 14 6 10 4 10 -7 0 -16 -16 -43 -17 -33 -2 5 8 2 9 -11 2
-17 -10 -138 5 -210 25 -37 11 -36 32 5 117 16 33 27 61 25 63 -7 8 -45 -63
-62 -115 -18 -58 -20 -60 -48 -39 -18 13 -18 15 -2 57 9 23 31 66 48 95 l32
51 57 -57 c41 -41 83 -70 156 -105 54 -27 101 -52 102 -57 2 -4 8 -5 13 -2 6
3 15 2 22 -4 19 -14 47 -22 47 -13 0 4 -19 16 -42 26 -167 68 -298 148 -298
180 0 13 146 175 159 175 3 0 21 -29 40 -65 18 -36 54 -87 80 -113 49 -51 131
-123 131 -116 0 2 9 -4 19 -13 11 -9 18 -20 15 -24 -2 -4 6 -5 18 -1 12 3 17
7 10 10 -7 2 -9 9 -6 14 4 7 2 8 -4 4 -7 -4 -12 -3 -12 3 0 5 -9 13 -21 16
-17 6 -18 9 -7 23 12 15 11 16 -4 3 -16 -12 -24 -8 -67 28 -85 72 -150 159
-166 223 -6 23 0 32 58 78 36 29 68 53 72 54 4 0 15 -22 25 -51 10 -28 35 -77
55 -107 37 -55 128 -146 147 -146 6 0 8 -7 5 -14 -4 -11 -1 -13 11 -9 14 5 14
3 -3 -18 l-20 -24 23 19 c18 16 26 17 48 8 16 -8 22 -17 18 -25 -5 -7 0 -6 11
3 17 14 17 15 -8 24 -15 6 -27 14 -27 19 0 4 -5 5 -12 1 -8 -5 -9 -2 -5 10 4
10 3 15 -3 11 -32 -20 -162 109 -209 207 -50 106 -52 99 38 162 43 31 81 56
84 56 2 0 12 -21 22 -47 26 -69 100 -178 151 -220 36 -31 41 -39 31 -52 -11
-14 -10 -14 5 -3 15 12 20 12 32 -1 14 -13 11 -18 -24 -41 -22 -14 -40 -29
-40 -32 0 -3 20 9 44 26 51 34 61 37 52 14 -5 -14 -4 -15 9 -4 9 7 19 10 22 6
4 -4 -6 -18 -22 -32 -17 -14 -2 -7 32 16 35 22 63 43 63 46 0 3 -10 -2 -22
-10 -12 -9 -29 -16 -36 -16 -12 0 -12 3 -1 18 11 14 11 15 -1 5 -20 -18 -33
-16 -25 5 5 13 3 14 -6 5 -9 -9 -16 -9 -30 0 -18 11 -17 13 9 35 l27 24 -33
-22 -34 -23 -67 69 c-43 44 -79 93 -99 134 -53 111 -54 108 33 168 65 45 76
50 81 35 30 -90 70 -151 147 -229 l84 -83 -39 -26 c-21 -14 -38 -28 -38 -31 0
-3 20 9 45 26 39 27 47 29 59 17 11 -11 12 -17 3 -27 -8 -8 -5 -8 11 1 19 12
24 12 31 0 5 -7 11 -9 14 -4 3 5 -3 16 -13 23 -16 11 -17 17 -7 29 10 12 9 12
-9 1 -19 -12 -27 -9 -83 34 -86 66 -151 155 -186 256 l-13 38 88 61 88 61 7
-41 c10 -60 87 -206 140 -267 l47 -52 -24 -21 -23 -21 25 16 c32 21 46 20 29
-1 -11 -15 -11 -16 1 -5 19 16 33 15 27 -2 -4 -11 -1 -13 10 -9 12 5 15 2 10
-10 -6 -16 -5 -16 18 -1 29 19 32 26 8 17 -12 -5 -15 -2 -11 8 4 11 0 15 -16
15 -14 -1 -21 5 -20 16 1 10 -3 15 -8 12 -12 -8 -59 37 -105 99 -39 53 -87
161 -97 219 l-7 37 91 61 c118 79 120 80 120 39 0 -54 39 -183 81 -266 32 -63
36 -79 26 -92 -10 -14 -10 -14 4 -3 13 10 19 9 29 -3 11 -13 10 -18 -6 -31
-18 -14 -18 -14 4 -4 20 10 26 8 41 -8 17 -20 17 -20 41 0 24 19 24 19 2 8
-20 -10 -26 -8 -43 11 -15 18 -17 25 -6 38 10 14 10 14 -5 3 -14 -11 -19 -9
-37 17 -55 76 -121 267 -121 346 0 28 8 36 77 81 98 63 93 61 93 21 0 -56 37
-185 77 -266 21 -42 37 -81 37 -88 -1 -6 4 -9 11 -6 7 2 16 -4 19 -15 6 -19
45 -70 47 -61 5 26 4 47 -3 43 -12 -8 -54 44 -92 116 -44 84 -76 191 -79 265
l-2 58 80 49 c44 26 83 48 88 48 4 0 7 -17 7 -39 0 -54 15 -127 39 -192 22
-58 98 -192 113 -197 4 -2 6 -8 2 -13 -3 -5 0 -8 8 -7 7 2 12 -3 10 -11 -3
-13 80 29 103 52 6 6 -11 -2 -36 -16 -46 -26 -74 -26 -41 0 15 12 14 13 -7 2
-21 -10 -23 -9 -18 5 4 11 3 15 -4 10 -17 -10 -30 18 -16 36 10 13 10 13 -5 2
-15 -12 -20 -8 -44 30 -15 24 -38 69 -51 102 -25 61 -51 212 -40 239 4 12 162
107 178 107 2 0 5 -30 7 -68 4 -96 25 -175 76 -274 l44 -87 -21 -16 c-21 -16
-21 -16 5 -1 24 14 27 14 39 0 11 -13 9 -19 -11 -36 l-25 -20 30 17 c28 15 45
58 20 48 -6 -2 -16 7 -23 21 -9 21 -8 27 11 40 l22 17 -22 -11 c-35 -16 -38
-13 -71 58 -42 91 -62 173 -62 254 l0 68 79 39 79 40 6 -70 c10 -93 30 -170
67 -249 17 -36 31 -67 31 -70 1 -3 14 -18 30 -35 15 -16 28 -33 28 -36 0 -3
-32 -21 -71 -39 -39 -19 -73 -38 -76 -43 -2 -4 52 20 121 55 69 34 123 64 121
66 -2 2 -17 -4 -34 -12 -35 -19 -55 -21 -45 -4 4 7 3 8 -4 4 -6 -4 -19 6 -29
21 -10 15 -20 30 -23 33 -16 15 -40 63 -63 127 -26 70 -53 235 -42 252 8 14
162 76 296 119 252 82 481 119 804 132 275 11 514 4 675 -20z m-1780 -123 c0
-7 -33 -28 -72 -45 -79 -35 -93 -38 -82 -21 5 8 130 73 152 78 1 1 2 -5 2 -12z
m2704 -41 c45 -21 76 -41 76 -50 0 -11 -13 -8 -57 13 -32 16 -68 31 -80 35
-13 4 -23 14 -23 22 0 19 -2 19 84 -20z m-2704 -2 c0 -5 -145 -74 -156 -74
-35 0 101 78 139 79 9 1 17 -2 17 -5z m2790 -92 c0 -16 2 -16 -93 24 -44 19
-67 35 -67 46 0 14 13 11 80 -19 46 -21 80 -42 80 -51z m-2961 44 c-18 -12
-171 -87 -174 -84 -10 9 17 29 90 66 44 22 82 36 84 30 1 -5 1 -10 0 -12z
m161 11 c0 -7 -34 -29 -75 -50 -85 -42 -85 -42 -85 -24 0 8 35 30 78 50 89 43
82 41 82 24z m2903 -48 c77 -39 96 -53 97 -71 0 -12 -189 85 -194 99 -8 21 9
16 97 -28z m-173 -5 c44 -20 80 -41 80 -45 0 -5 -2 -9 -5 -9 -15 0 -165 74
-165 81 0 13 4 12 90 -27z m-2896 14 c-6 -16 -184 -112 -184 -100 0 14 23 31
103 73 79 42 89 45 81 27z m3139 -88 c20 -12 37 -28 37 -36 0 -19 -187 74
-193 97 -4 14 6 12 58 -12 34 -15 78 -37 98 -49z m-3143 46 c0 -8 -40 -37 -90
-64 -73 -41 -90 -47 -90 -33 0 12 29 33 88 64 48 26 88 47 90 47 1 0 2 -6 2
-14z m-182 -18 c-5 -14 -177 -112 -184 -105 -8 8 16 26 96 72 81 46 94 51 88
33z m3362 -105 c0 -15 -183 80 -188 97 -2 6 39 -11 92 -37 53 -26 96 -53 96
-60z m78 60 c37 -20 70 -42 74 -47 19 -28 2 -24 -72 16 -44 24 -80 49 -80 56
0 17 4 16 78 -25z m-3448 3 c0 -8 -29 -30 -65 -50 -36 -20 -77 -43 -90 -52
-22 -14 -25 -15 -25 -1 0 9 37 37 88 66 48 28 88 51 90 51 1 0 2 -6 2 -14z
m3470 -58 c44 -25 76 -51 78 -62 3 -15 -11 -10 -80 27 -45 26 -84 53 -86 62
-5 22 6 19 88 -27z m-3476 7 c-5 -12 -166 -115 -180 -115 -2 0 -4 7 -4 15 0
14 153 113 177 114 7 1 10 -6 7 -14z m-195 -36 c-8 -4 -50 -30 -94 -58 -44
-27 -82 -45 -84 -39 -2 6 3 14 10 19 8 4 50 30 94 58 44 27 82 45 84 39 2 -6
-3 -14 -10 -19z m3850 -28 c83 -48 112 -73 99 -86 -5 -5 -191 105 -200 119
-10 15 -10 29 0 24 4 -1 49 -27 101 -57z m-170 3 c45 -25 81 -49 81 -55 0 -5
-2 -9 -5 -9 -10 0 -165 91 -171 101 -11 18 16 8 95 -37z m-3675 -6 c-2 -7 -42
-35 -86 -63 -99 -61 -98 -60 -98 -43 0 7 37 37 83 65 83 52 110 63 101 41z
m3857 -50 c80 -48 108 -73 95 -85 -8 -9 -196 109 -196 123 0 8 3 14 6 14 3 0
46 -24 95 -52z m-3863 -12 c-51 -36 -172 -106 -175 -102 -13 13 12 37 89 85
65 40 84 48 86 35 2 -8 2 -17 0 -18z m3875 -45 c75 -45 104 -71 80 -71 -17 0
-182 107 -183 118 0 7 3 11 8 9 4 -2 46 -27 95 -56z m-4063 30 c0 -8 -184
-131 -196 -131 -20 0 14 29 91 80 92 60 105 67 105 51z m4217 -29 c32 -21 73
-47 91 -57 17 -11 32 -27 32 -37 0 -16 -8 -13 -56 17 -116 74 -134 88 -134
101 0 19 1 19 67 -24z m-4218 -14 c0 -12 -186 -138 -203 -138 -21 0 21 38 100
90 93 63 104 68 103 48z m4279 -73 c55 -36 79 -65 53 -65 -6 0 -46 23 -90 52
-54 35 -81 58 -81 71 0 21 -14 28 118 -58z m-4278 28 c0 -11 -35 -41 -92 -78
-109 -72 -108 -71 -108 -48 0 12 33 40 93 80 50 34 95 62 100 62 4 1 7 -7 7
-16z m4328 -127 c3 -12 -21 -1 -82 40 -47 31 -86 63 -86 71 0 19 164 -89 168
-111z m-4547 70 c-13 -16 -156 -116 -165 -116 -22 0 6 27 81 79 83 57 110 69
84 37z m4670 -37 c49 -34 89 -67 89 -75 0 -8 -3 -14 -6 -14 -3 0 -42 25 -86
56 -43 31 -82 54 -84 51 -3 -3 35 -33 85 -66 51 -34 91 -69 91 -77 0 -22 -15
-15 -109 51 -77 54 -80 57 -79 95 0 22 2 40 5 40 3 0 45 -27 94 -61z m-4671
-2 c0 -8 -39 -40 -86 -71 -79 -53 -106 -64 -89 -36 6 9 165 120 172 120 2 0 3
-6 3 -13z m8 -61 c-52 -38 -168 -116 -172 -116 -3 0 -6 8 -6 18 0 10 32 39 83
73 66 46 84 54 90 42 5 -8 7 -16 5 -17z m4638 -22 c88 -59 104 -74 104 -91 0
-15 -181 106 -188 126 -7 21 15 11 84 -35z m-4839 -7 c-3 -8 -34 -34 -69 -59
-89 -62 -90 -63 -86 -45 3 15 149 127 157 121 2 -2 1 -9 -2 -17z m5057 -43
c39 -28 66 -55 66 -66 0 -13 -18 -5 -80 39 -44 32 -80 64 -80 71 0 19 17 11
94 -44z m-5055 -8 c-40 -34 -150 -103 -153 -97 -7 10 12 27 89 80 34 24 61 37
63 31 2 -6 2 -13 1 -14z m5095 -72 c17 -12 27 -27 25 -37 -6 -25 -159 86 -159
114 0 21 5 18 134 -77z m-5084 38 c0 -11 -28 -38 -74 -70 -41 -29 -77 -52 -80
-52 -3 0 -6 8 -6 19 0 12 26 37 73 69 39 28 75 51 80 52 4 0 7 -8 7 -18z
m5039 -60 c50 -36 70 -57 63 -64 -13 -13 -162 95 -162 118 0 18 2 17 99 -54z
m-5221 26 c-3 -7 -31 -32 -64 -56 -84 -60 -94 -66 -94 -49 0 13 135 116 153
117 5 0 7 -6 5 -12z m5429 -71 c31 -21 50 -68 20 -50 -71 43 -145 106 -140
119 4 11 14 8 47 -17 22 -17 56 -41 73 -52z m-5439 12 c-8 -4 -43 -29 -77 -54
-58 -43 -83 -52 -66 -25 14 23 150 111 154 99 2 -6 -3 -15 -11 -20z m5398 -31
c45 -33 74 -60 74 -71 0 -23 0 -23 -88 38 -41 29 -71 57 -72 68 0 9 3 17 6 17
3 0 39 -24 80 -52z m-5376 5 c-1 -26 -148 -129 -163 -114 -14 14 -3 25 83 85
72 51 80 54 80 29z m-180 -32 c0 -6 -28 -31 -62 -57 -35 -26 -69 -52 -75 -57
-9 -7 -13 -5 -13 6 0 9 30 39 66 67 67 50 84 58 84 41z m5741 -62 c74 -56 99
-83 87 -94 -6 -7 -188 134 -188 146 0 19 24 7 101 -52z m-5754 0 c-8 -5 -40
-29 -70 -54 -60 -48 -67 -52 -67 -32 1 18 144 120 149 106 2 -6 -3 -16 -12
-20z m5756 -53 c77 -59 78 -60 72 -95 -4 -20 -8 -38 -10 -40 -7 -7 -175 133
-175 146 0 21 11 16 94 -48 43 -33 80 -58 83 -55 3 2 -34 33 -81 68 -51 38
-85 70 -86 81 0 22 3 21 103 -57z m-5735 9 c-1 -2 -34 -28 -73 -59 -59 -47
-71 -53 -76 -38 -8 20 5 34 81 91 46 34 56 38 63 25 5 -9 7 -17 5 -19z m-229
-74 c-35 -30 -83 -74 -106 -97 -31 -30 -44 -37 -48 -26 -7 19 3 31 114 124
107 89 143 88 40 -1z m6164 -45 c40 -35 67 -66 67 -78 0 -15 -18 -4 -82 53
-46 40 -85 82 -87 93 -4 24 -13 31 102 -68z m-6200 -40 c-60 -58 -102 -91
-107 -85 -12 11 23 49 124 136 41 35 76 60 78 54 2 -5 -41 -53 -95 -105z m107
50 c0 -16 -14 -35 -42 -58 -24 -20 -63 -61 -88 -92 -40 -50 -46 -55 -57 -39
-7 9 -13 20 -13 23 0 10 183 190 192 190 5 0 8 -11 8 -24z m6073 -47 c47 -43
77 -78 77 -91 0 -15 -19 -3 -85 57 -75 68 -102 105 -77 105 4 0 42 -32 85 -71z
m-8 -51 c59 -57 73 -76 65 -88 -8 -12 -23 -1 -85 60 -70 69 -90 100 -65 100 6
0 44 -33 85 -72z m-6337 -70 c-24 -29 -57 -79 -73 -110 -32 -62 -39 -68 -49
-42 -8 21 31 89 97 172 40 49 53 59 59 48 6 -11 -4 -31 -34 -68z m6576 -66
c25 -37 30 -72 9 -72 -4 0 -25 26 -45 58 -21 31 -51 71 -68 89 -16 18 -30 42
-30 55 1 20 8 16 53 -33 29 -30 65 -74 81 -97z m-6524 83 c0 -8 -18 -42 -40
-76 -22 -35 -45 -80 -52 -101 -11 -38 -34 -50 -44 -24 -7 18 32 95 82 163 40
54 54 64 54 38z m6445 -57 c67 -89 78 -113 60 -128 -11 -9 -18 -4 -34 28 -11
21 -36 60 -55 86 -35 45 -46 76 -27 76 5 0 30 -28 56 -62z m-39 -21 c18 -23
41 -61 53 -84 18 -37 19 -42 4 -47 -19 -8 -16 -10 -38 34 -10 19 -31 54 -47
77 -27 36 -31 64 -10 63 4 0 21 -20 38 -43z m202 -219 c4 -71 6 -68 -40 -72
-8 -1 -11 16 -9 55 1 30 -4 74 -12 96 -13 37 -12 43 2 58 15 15 18 13 35 -27
11 -24 22 -73 24 -110z m-6775 15 c-5 -73 -8 -83 -24 -83 -16 0 -19 8 -19 58
0 31 5 74 11 96 9 32 13 36 24 25 9 -10 11 -36 8 -96z m6706 53 c21 -84 13
-146 -19 -146 -16 0 -18 6 -13 54 3 30 1 68 -5 84 -7 21 -7 33 1 41 18 18 24
13 36 -33z m-6663 6 c7 -4 13 -40 16 -79 3 -70 3 -73 -18 -73 -12 0 -25 7 -28
16 -13 34 -3 144 13 144 3 0 11 -4 17 -8z m6619 -45 c8 -62 -5 -101 -38 -105
l-27 -3 16 37 c10 24 13 50 9 72 -4 24 -2 37 6 43 20 12 27 2 34 -44z m-65
-87 c-9 -18 -21 -20 -93 -20 -71 0 -84 3 -94 20 -7 10 -23 24 -35 30 -18 9
-17 6 5 -10 30 -24 36 -44 10 -36 -10 3 -40 8 -68 11 -28 3 -58 13 -68 24 -18
17 -17 18 10 19 89 2 225 31 298 62 l40 17 3 -48 c2 -27 -2 -58 -8 -69z
m-6484 102 c6 -4 14 -33 17 -64 l6 -58 -29 0 c-31 0 -40 18 -40 88 0 33 4 42
18 42 9 0 22 -4 28 -8z m129 -31 c33 -6 78 -14 100 -18 22 -4 46 -7 53 -6 17
1 15 -8 -12 -38 -22 -25 -28 -27 -124 -28 -55 -1 -103 3 -106 8 -3 5 -9 31
-13 57 -6 46 -6 47 18 41 13 -3 51 -10 84 -16z m6109 -96 c11 -1 21 -3 21 -4
0 -1 44 -3 97 -4 54 -1 98 -3 98 -5 0 -14 -132 -102 -154 -102 -2 0 -11 12
-21 26 -14 21 -14 28 -3 42 12 16 11 16 -6 2 -16 -13 -20 -12 -36 8 -10 12
-22 22 -27 22 -5 0 -18 7 -29 15 -18 14 -17 15 10 9 16 -4 38 -8 50 -9z
m-6358 -3 c6 -4 21 -26 33 -50 28 -54 82 -93 171 -122 44 -14 70 -28 70 -37 0
-17 -28 -13 -127 19 -94 31 -151 87 -178 176 -7 23 8 30 31 14z m431 -8 c-16
-9 -35 -13 -43 -10 -8 3 -13 2 -10 -3 3 -5 -1 -14 -9 -21 -12 -10 -19 -10 -32
1 -16 13 -17 12 -4 -4 13 -16 12 -21 -11 -44 l-26 -26 -46 27 c-25 14 -52 36
-61 49 -16 22 -15 22 47 27 35 3 69 1 77 -5 10 -7 13 -7 8 1 -4 7 11 11 45 13
29 1 54 4 57 6 2 3 11 5 20 5 10 -1 4 -7 -12 -16z m-333 -33 c29 -46 70 -77
134 -101 44 -17 60 -39 24 -32 -94 17 -181 71 -212 132 l-20 40 25 0 c18 0 31
-11 49 -39z m74 7 c23 -31 64 -67 94 -79 28 -11 35 -23 20 -33 -16 -10 -128
51 -160 88 -17 20 -32 41 -32 46 0 16 64 -2 78 -22z m6448 -7 c-49 -52 -153
-99 -291 -135 -54 -14 -77 -14 -63 -1 9 10 142 44 150 39 4 -3 8 -1 8 3 0 5
20 19 45 31 24 12 61 37 82 56 33 29 78 49 92 39 3 -2 -8 -16 -23 -32z m84 30
c0 -34 -109 -115 -202 -149 -84 -31 -74 -5 14 37 41 19 89 52 112 77 38 38 76
57 76 35z m70 -6 c0 -26 -68 -91 -130 -124 -60 -32 -162 -71 -187 -71 -31 0
-9 19 45 38 78 29 141 70 188 125 39 47 84 63 84 32z m-6372 -141 c39 -10 72
-21 72 -26 0 -10 -2 -10 -89 10 -41 10 -76 23 -79 31 -3 8 1 11 9 8 8 -3 47
-13 87 -23z m81 -51 c2 -2 2 -5 -1 -8 -8 -8 -181 30 -185 41 -3 9 171 -22 186
-33z m5944 27 c-12 -12 -163 -43 -170 -36 -9 9 -4 11 82 33 77 19 106 20 88 3z
m-5838 -22 c7 -7 -6 -8 -40 -3 -27 3 -54 11 -60 17 -7 7 6 8 40 3 28 -3 55
-11 60 -17z m5655 13 c-24 -14 -117 -25 -105 -13 11 11 44 19 90 20 22 1 26
-1 15 -7z m-5831 -29 c47 -10 86 -23 89 -30 5 -15 -2 -15 -117 6 -52 10 -96
23 -99 30 -5 16 25 15 127 -6z m294 -2 c31 -6 57 -16 57 -22 0 -6 -10 -8 -22
-4 -13 3 -49 11 -80 17 -32 6 -58 16 -58 21 0 6 10 8 23 5 12 -3 48 -11 80
-17z m5417 11 c0 -4 -34 -15 -75 -23 -41 -8 -75 -11 -75 -7 0 5 10 11 23 14
115 27 127 28 127 16z m310 0 c0 -4 -39 -16 -87 -25 -49 -10 -97 -20 -108 -23
-14 -4 -17 -2 -10 5 10 10 152 49 188 51 9 1 17 -3 17 -8z m-5840 -23 c10 -6
-2 -7 -35 -3 -27 4 -54 11 -60 17 -12 12 73 0 95 -14z m5640 12 c0 -5 -17 -12
-37 -15 -21 -4 -46 -9 -55 -12 -10 -2 -18 0 -18 6 0 6 12 13 28 17 15 3 32 7
37 9 21 7 45 5 45 -5z m-5531 -31 c34 -6 64 -16 67 -20 7 -12 -1 -12 -83 8
-40 9 -73 21 -73 26 0 5 6 7 14 4 8 -3 42 -11 75 -18z m5249 6 c-5 -5 -147
-44 -162 -45 -6 0 -5 5 1 11 6 6 45 19 85 29 68 16 89 18 76 5z m160 3 c-5
-14 -158 -49 -158 -36 0 11 20 18 89 34 74 16 73 16 69 2z m-5505 -20 c9 -5
17 -13 17 -17 0 -13 -83 8 -100 25 -13 14 -11 15 25 8 22 -3 48 -11 58 -16z
m262 6 c37 -9 65 -22 65 -29 0 -9 -19 -7 -74 9 -121 35 -113 50 9 20z m5335
-3 c-24 -14 -107 -25 -95 -13 11 11 43 19 85 20 19 1 21 -1 10 -7z m-5406 -52
c19 -18 -1 -18 -71 0 -75 20 -93 27 -93 41 0 9 151 -27 164 -41z m151 -10 c14
-14 -10 -11 -86 12 -38 12 -69 25 -69 29 0 10 141 -27 155 -41z m4990 41 c-5
-9 -64 -28 -139 -46 -22 -5 -28 -4 -24 7 2 7 33 21 69 30 76 20 102 23 94 9z
m150 1 c-9 -7 -132 -41 -152 -41 -24 0 22 22 72 34 72 17 92 19 80 7z m-5042
-27 c33 -10 57 -23 57 -32 0 -9 -7 -11 -22 -6 -88 28 -122 42 -126 53 -5 14
-6 14 91 -15z m4722 17 c-5 -10 -102 -41 -126 -41 -24 0 6 20 52 34 53 17 82
19 74 7z m-4874 -42 c63 -19 88 -34 77 -44 -7 -7 -133 36 -148 50 -19 20 -11
19 71 -6z m4863 7 c-6 -15 -123 -60 -133 -51 -9 10 15 25 69 44 68 24 71 24
64 7z m161 5 c-9 -7 -144 -51 -159 -51 -3 0 -6 4 -6 9 0 5 33 18 73 29 81 23
106 26 92 13z m-4861 -31 c28 -9 52 -23 54 -30 3 -9 -1 -11 -14 -6 -11 5 -45
17 -76 28 -32 11 -58 24 -58 30 0 10 7 8 94 -22z m4564 19 c-4 -12 -129 -61
-137 -53 -9 9 15 24 69 43 66 23 73 24 68 10z m-4433 -22 c38 -14 61 -28 63
-40 3 -16 -1 -16 -50 4 -29 12 -61 24 -70 26 -17 5 -26 34 -10 32 4 0 34 -10
67 -22z m-115 -37 c25 -10 46 -24 48 -33 2 -12 -11 -10 -64 12 -37 15 -70 33
-72 40 -5 14 10 11 88 -19z m4540 17 c0 -7 -24 -21 -52 -32 -29 -10 -59 -20
-65 -23 -7 -2 -13 2 -13 10 0 8 25 23 58 35 69 26 72 26 72 10z m122 1 c-12
-12 -99 -48 -115 -48 -5 0 -7 5 -5 12 4 11 89 46 118 47 11 1 11 -2 2 -11z
m-4485 -48 c2 0 3 -6 3 -14 0 -10 -15 -8 -65 13 -36 14 -65 31 -65 38 0 7 22
3 62 -13 34 -13 63 -24 65 -24z m165 -29 c4 -3 4 -11 0 -17 -10 -16 -152 50
-152 70 0 12 15 9 73 -15 39 -17 75 -34 79 -38z m4048 56 c-27 -25 -140 -68
-140 -53 0 14 102 64 135 65 17 1 17 -1 5 -12z m135 -28 c-6 -15 -115 -62
-124 -54 -9 10 24 34 74 53 56 21 58 21 50 1z m-4333 -54 c17 -23 5 -22 -54 3
-60 25 -77 38 -78 54 0 10 123 -43 132 -57z m4202 42 c-3 -10 -40 -28 -131
-64 -7 -3 -13 1 -13 9 0 14 128 78 142 71 4 -2 5 -9 2 -16z m-4054 -68 c0 -14
-10 -11 -77 17 -35 15 -63 33 -63 40 0 9 22 3 70 -18 39 -17 70 -35 70 -39z
m3900 43 c0 -7 -142 -82 -155 -82 -3 0 -5 6 -5 14 0 7 30 27 68 44 70 32 92
37 92 24z m-3798 -35 c48 -23 65 -36 60 -45 -7 -9 -24 -5 -78 19 -80 36 -78
35 -69 48 8 15 10 14 87 -22z m3948 19 c0 -8 -30 -28 -66 -45 -77 -36 -74 -35
-74 -15 0 9 25 27 63 44 72 34 77 35 77 16z m-4097 -37 c20 -11 37 -26 37 -34
0 -11 -10 -9 -47 8 -62 29 -73 36 -73 48 0 12 30 4 83 -22z m3941 1 c-21 -20
-144 -69 -144 -57 0 16 144 88 149 75 2 -5 -1 -14 -5 -18z m-3785 -35 c28 -14
51 -30 51 -36 0 -12 2 -13 -84 26 -36 17 -66 36 -66 42 0 15 22 7 99 -32z
m221 -77 c0 -10 -2 -18 -4 -18 -3 0 -38 18 -80 41 -51 27 -73 45 -70 54 8 21
154 -53 154 -77z m3400 82 c0 -7 -91 -60 -152 -88 -5 -2 -8 2 -8 10 0 7 31 29
68 50 70 38 92 45 92 28z m170 -4 c0 -14 -145 -98 -154 -89 -15 15 14 45 72
72 76 35 82 36 82 17z m-3810 -31 c40 -20 70 -42 70 -50 0 -20 -1 -20 -80 20
-40 20 -70 42 -70 50 0 20 1 20 80 -20z m3646 -4 c-9 -14 -157 -93 -163 -87
-11 10 11 28 75 61 67 34 98 43 88 26z m-3486 -36 c66 -33 88 -51 77 -62 -8
-7 -157 76 -157 88 0 13 4 12 80 -26z m3480 -14 c0 -14 -22 -31 -76 -60 -41
-23 -78 -41 -80 -41 -3 0 -4 10 -2 22 2 15 24 33 73 60 81 44 85 45 85 19z
m-3474 -32 c41 -22 74 -47 74 -56 0 -8 -3 -13 -7 -11 -94 42 -152 81 -153 101
0 12 10 8 86 -34z m175 -1 c56 -30 79 -47 79 -61 0 -22 6 -24 -93 31 -42 24
-77 50 -77 58 0 20 4 19 91 -28z m3129 33 c0 -8 -141 -91 -155 -91 -3 0 -5 6
-5 13 0 6 31 28 68 49 69 37 92 45 92 29z m0 -40 c0 -9 -139 -91 -154 -91 -3
0 -6 4 -6 10 0 9 137 90 153 90 4 0 7 -4 7 -9z m-3134 -42 c41 -22 74 -47 74
-55 0 -8 -3 -13 -7 -11 -89 49 -153 90 -153 97 0 15 8 13 86 -31z m3128 -11
c-4 -13 -12 -26 -18 -31 -22 -14 -134 -77 -139 -77 -3 0 -2 11 2 25 4 18 27
37 76 65 82 46 89 47 79 18z m-3125 -33 c47 -27 71 -46 71 -58 0 -18 -1 -18
-32 1 -18 11 -54 32 -80 47 -27 15 -48 34 -48 42 0 18 1 18 89 -32z m2959 33
c-4 -13 -145 -98 -161 -98 -25 0 8 30 74 67 79 45 93 50 87 31z m-2786 -34
c77 -45 72 -40 65 -58 -5 -13 -19 -8 -77 25 -38 22 -70 47 -70 55 0 21 13 18
82 -22z m2788 -3 c0 -12 -15 -23 -97 -69 -48 -27 -73 -36 -73 -27 0 7 35 33
78 58 82 48 92 52 92 38z m-2794 -47 c35 -20 64 -42 64 -51 0 -11 -14 -6 -57
18 -65 36 -105 69 -84 69 7 0 42 -16 77 -36z m510 -193 c66 -22 148 -45 184
-52 76 -15 93 -25 56 -35 -37 -9 -212 36 -340 87 -152 60 -320 152 -324 177
-3 17 20 8 151 -59 85 -43 208 -97 273 -118z m2272 177 c-2 -16 -27 -36 -85
-70 -81 -46 -83 -47 -83 -23 0 20 15 33 78 69 42 25 81 46 85 46 5 0 7 -10 5
-22z m-2782 -29 c41 -22 74 -47 74 -55 0 -8 -3 -14 -6 -14 -18 0 -154 86 -154
97 0 19 5 17 86 -28z m2612 29 c-5 -20 -297 -163 -401 -197 -211 -70 -375 -96
-705 -113 -191 -9 -237 -9 -257 2 -29 16 -33 30 -6 23 10 -3 129 0 262 6 446
20 673 72 964 222 139 72 149 76 143 57z m0 -40 c-12 -37 -345 -192 -401 -186
-29 3 -26 5 35 26 36 13 131 56 210 96 157 80 161 82 156 64z m-2378 -71 c74
-37 171 -80 215 -97 75 -27 77 -29 41 -30 -65 0 -406 157 -406 188 0 8 3 12 8
10 4 -1 68 -33 142 -71z m115 -100 l60 -26 -39 0 c-52 -1 -286 114 -286 141 0
15 17 9 103 -35 56 -29 129 -65 162 -80z m2251 117 c-3 -9 -6 -20 -6 -25 0
-10 -119 -71 -219 -114 -39 -16 -73 -24 -87 -21 -34 9 -29 21 14 34 20 6 93
40 162 76 137 70 145 73 136 50z m-1867 -191 c3 -2 0 -8 -6 -14 -19 -19 -143
16 -143 41 0 6 139 -19 149 -27z m1271 13 c0 -2 -11 -11 -25 -20 -33 -22 -186
-43 -405 -56 -204 -13 -292 -11 -297 6 -2 7 57 13 189 17 199 7 327 19 452 41
39 8 74 14 79 15 4 0 7 -1 7 -3z m232 -32 c61 -20 123 -75 155 -138 36 -67 38
-186 7 -257 -48 -104 -133 -163 -235 -162 -98 1 -171 50 -220 145 -80 157 -4
365 151 413 60 18 87 18 142 -1z m1144 1 c42 -13 50 -13 64 0 43 39 70 4 70
-90 0 -65 -3 -76 -20 -85 -30 -16 -54 -4 -71 32 -20 46 -52 59 -129 56 -118
-6 -160 -58 -160 -200 0 -97 17 -135 73 -161 40 -19 138 -23 186 -6 26 9 31
16 31 45 l0 33 -66 3 c-54 2 -69 7 -80 23 -12 18 -11 24 2 43 14 21 23 22 133
22 78 0 121 -4 129 -12 18 -18 14 -55 -7 -71 -16 -10 -21 -27 -23 -77 l-3 -64
-60 -24 c-123 -50 -285 -25 -355 54 -53 61 -74 185 -49 294 33 146 185 230
335 185z m-4015 -172 c62 -98 116 -182 121 -187 4 -6 8 51 8 126 l0 137 -36 3
c-44 4 -67 32 -53 66 8 21 14 22 114 22 89 0 107 -3 112 -16 6 -15 7 -15 17
-1 8 10 34 16 83 19 l72 3 46 -99 c26 -55 53 -117 62 -138 9 -21 18 -36 22
-33 3 4 31 64 62 133 l56 127 77 3 c74 3 76 2 88 -24 11 -24 10 -29 -15 -50
l-27 -23 0 -174 c0 -190 1 -193 55 -179 24 7 35 26 91 167 87 216 83 195 30
195 -64 0 -93 33 -63 73 10 14 32 17 132 18 l120 2 90 -223 c81 -199 94 -225
118 -233 15 -5 27 -13 27 -19 0 -6 8 -4 18 5 10 10 28 17 40 17 22 0 22 2 22
180 l0 180 -24 0 c-31 0 -48 22 -44 57 l3 28 164 3 c149 2 167 1 207 -19 58
-28 87 -69 92 -135 6 -73 -24 -135 -83 -169 -34 -20 -60 -26 -131 -30 l-89 -4
-3 -45 -3 -45 67 -3 c74 -3 92 -16 80 -61 l-6 -27 -138 0 c-94 0 -142 4 -150
12 -9 9 -15 9 -24 0 -8 -8 -48 -12 -115 -12 -91 0 -103 2 -113 19 -5 11 -10
24 -10 30 0 18 31 41 56 41 27 0 27 0 14 34 -9 26 -11 26 -119 26 l-109 0 -11
-30 c-9 -29 -9 -30 18 -30 32 0 51 -16 51 -45 0 -42 -14 -45 -227 -45 l-203 0
-12 25 c-14 32 10 62 54 67 l29 3 2 127 c1 69 -1 124 -4 122 -3 -2 -26 -51
-50 -109 l-44 -105 -47 0 c-38 0 -48 4 -53 21 -4 11 -26 61 -51 112 l-44 92 0
-132 0 -133 33 0 c18 0 38 -5 45 -12 15 -15 15 -51 0 -66 -16 -16 -200 -16
-216 0 -21 21 -14 57 13 70 l25 11 0 176 c-1 175 -1 176 -25 194 -14 10 -25
13 -25 8 0 -6 -11 -13 -25 -17 l-25 -6 0 -224 0 -224 -47 0 -48 0 -114 180
c-63 99 -116 180 -118 180 -2 0 -3 -61 -3 -135 l0 -135 33 0 c38 0 57 -15 57
-45 0 -38 -19 -45 -122 -45 -88 0 -98 2 -108 20 -15 29 -3 59 26 66 l24 6 0
179 0 179 -24 0 c-26 0 -56 23 -56 44 0 32 25 45 95 49 39 2 71 4 72 5 0 1 52
-78 114 -175z m1312 161 c26 -4 37 -11 37 -24 0 -16 -5 -17 -37 -9 -21 5 -41
9 -45 9 -4 0 -12 9 -19 21 -9 18 -8 20 8 15 10 -2 35 -8 56 -12z m2164 -15
c105 -50 120 -182 30 -254 l-35 -28 54 -66 c30 -35 54 -69 54 -73 0 -4 11 -8
24 -8 25 0 56 -23 56 -41 0 -6 -5 -19 -10 -30 -9 -15 -22 -19 -69 -19 l-58 0
-36 57 c-19 32 -57 80 -83 106 -44 45 -50 48 -93 45 l-46 -3 -3 -57 -3 -58 35
0 c33 0 66 -21 66 -41 0 -6 -5 -19 -10 -30 -10 -17 -22 -19 -118 -19 -113 0
-132 6 -132 45 0 27 18 45 47 45 l23 0 0 180 0 180 -23 0 c-31 0 -47 18 -47
52 0 19 6 31 19 36 11 4 86 6 168 4 124 -3 155 -6 190 -23z m-916 -18 c-14
-25 -155 -41 -417 -48 -171 -5 -202 -3 -207 9 -4 13 25 16 201 22 114 4 248
13 297 21 133 19 138 19 126 -4z m-1239 -15 c17 -4 34 -18 43 -36 8 -16 27
-37 40 -46 24 -16 25 -20 25 -135 0 -113 -7 -143 -27 -116 -6 6 -39 84 -74
172 -35 87 -66 163 -68 168 -2 5 5 7 15 4 11 -3 31 -8 46 -11z m-404 -151
c-43 -108 -43 -108 -46 -21 -4 103 -1 110 37 89 l29 -17 -20 -51z m3093 30
c24 -40 23 -42 -9 -37 -42 6 -105 -14 -132 -43 -17 -19 -23 -36 -23 -70 0 -28
-4 -41 -9 -33 -13 22 -9 137 7 168 21 40 42 50 99 47 43 -2 52 -6 67 -32z
m-399 -152 c4 -51 -1 -54 -25 -13 -17 28 -17 31 0 57 19 29 20 28 25 -44z"/>
<path d="M3303 3273 c26 -2 68 -2 95 0 26 2 4 3 -48 3 -52 0 -74 -1 -47 -3z"/>
<path d="M3698 3273 c18 -2 45 -2 60 0 15 2 0 4 -33 4 -33 0 -45 -2 -27 -4z"/>
<path d="M3923 3263 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3048 3253 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4018 3253 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2928 3233 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3288 3213 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3348 3213 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3758 3213 c17 -2 47 -2 65 0 17 2 3 4 -33 4 -36 0 -50 -2 -32 -4z"/>
<path d="M3128 3203 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3938 3203 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3048 3193 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3263 3193 c26 -2 68 -2 95 0 26 2 4 3 -48 3 -52 0 -74 -1 -47 -3z"/>
<path d="M3578 3193 c29 -2 74 -2 100 0 26 2 2 3 -53 3 -55 0 -76 -1 -47 -3z"/>
<path d="M3765 3194 c48 -8 115 -9 115 -2 0 5 -30 7 -67 7 -38 -1 -59 -3 -48
-5z"/>
<path d="M3133 3183 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3920 3186 c0 -2 18 -6 39 -8 22 -2 37 0 35 4 -5 8 -74 11 -74 4z"/>
<path d="M4108 3183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3058 3173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4045 3170 c17 -4 44 -8 60 -8 25 0 24 2 -10 9 -51 10 -92 10 -50 -1z"/>
<path d="M2898 3163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2998 3163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2948 3153 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4158 3153 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M2908 3143 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4215 3140 c19 -8 73 -14 64 -6 -2 2 -22 6 -44 9 -28 5 -34 4 -20 -3z"/>
<path d="M2860 3130 c0 -5 7 -7 15 -4 8 4 15 8 15 10 0 2 -7 4 -15 4 -8 0 -15
-4 -15 -10z"/>
<path d="M2772 3109 c-35 -11 -62 -22 -60 -24 4 -4 129 33 137 40 8 9 -13 4
-77 -16z"/>
<path d="M4298 3123 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4368 3103 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2440 3070 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2655 3065 c-16 -7 -23 -14 -15 -14 8 0 26 6 40 14 32 18 14 18 -25
0z"/>
<path d="M4519 3055 c18 -8 38 -15 45 -15 6 1 -4 7 -23 15 -18 8 -38 15 -45
15 -6 -1 4 -7 23 -15z"/>
<path d="M2575 3031 c-22 -11 -37 -20 -34 -20 10 -1 79 29 79 34 0 7 0 7 -45
-14z"/>
<path d="M2510 3030 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M4586 3031 c5 -5 23 -12 39 -16 30 -6 30 -6 -4 10 -38 17 -49 19 -35
6z"/>
<path d="M4860 3000 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4690 2990 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2315 2960 c-3 -6 1 -7 9 -4 18 7 21 14 7 14 -6 0 -13 -4 -16 -10z"/>
<path d="M4827 2929 c7 -7 15 -10 18 -7 3 3 -2 9 -12 12 -14 6 -15 5 -6 -5z"/>
<path d="M2124 2904 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M4970 2906 c0 -2 7 -7 16 -10 8 -3 12 -2 9 4 -6 10 -25 14 -25 6z"/>
<path d="M2114 2874 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M4970 2885 c0 -2 18 -14 40 -25 22 -11 40 -18 40 -15 0 2 -18 14 -40
25 -22 11 -40 18 -40 15z"/>
<path d="M4940 2875 c0 -2 27 -18 60 -35 33 -17 60 -28 60 -25 0 2 -27 18 -60
35 -33 17 -60 28 -60 25z"/>
<path d="M2118 2854 c-38 -20 -36 -28 2 -9 17 9 30 18 30 20 0 7 -1 6 -32 -11z"/>
<path d="M2154 2844 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1984 2824 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1994 2804 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1934 2794 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1944 2774 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1884 2764 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M5170 2776 c0 -3 9 -10 20 -16 11 -6 20 -8 20 -6 0 3 -9 10 -20 16
-11 6 -20 8 -20 6z"/>
<path d="M2034 2744 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M3483 2750 c-179 -42 -341 -240 -343 -417 l0 -33 115 0 c114 0 115 0
115 24 0 83 85 176 183 200 l27 6 0 115 0 115 -32 -1 c-18 -1 -47 -4 -65 -9z"/>
<path d="M3600 2646 l0 -114 33 -7 c44 -10 98 -38 124 -67 27 -29 62 -105 63
-135 0 -23 2 -23 115 -23 l115 0 0 33 c0 73 -39 172 -99 255 -65 89 -218 172
-317 172 l-34 0 0 -114z"/>
<path d="M5160 2756 c0 -3 9 -10 20 -16 11 -6 20 -8 20 -6 0 3 -9 10 -20 16
-11 6 -20 8 -20 6z"/>
<path d="M1904 2724 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1967 2706 c-48 -29 -61 -43 -22 -23 31 16 74 46 65 46 -3 0 -22 -10
-43 -23z"/>
<path d="M5230 2716 c0 -3 9 -10 20 -16 11 -6 20 -8 20 -6 0 3 -9 10 -20 16
-11 6 -20 8 -20 6z"/>
<path d="M1754 2684 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1734 2644 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1774 2644 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1804 2634 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1843 2629 c-35 -22 -46 -37 -15 -20 22 13 58 40 52 41 -3 0 -20 -10
-37 -21z"/>
<path d="M5375 2625 c11 -9 29 -21 40 -26 l20 -10 -20 16 c-11 9 -29 21 -40
26 l-20 10 20 -16z"/>
<path d="M5529 2552 c14 -11 38 -27 55 -37 l31 -17 -24 20 c-14 11 -38 27 -55
37 l-31 17 24 -20z"/>
<path d="M1534 2544 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1664 2544 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M5710 2516 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M1630 2489 c-22 -18 -22 -19 -3 -10 12 6 25 16 28 21 9 15 3 12 -25
-11z"/>
<path d="M3506 2477 c-52 -29 -93 -82 -104 -134 l-10 -43 58 0 c54 0 58 2 64
26 4 16 18 30 36 37 29 11 30 14 30 74 0 73 -9 78 -74 40z"/>
<path d="M3600 2436 c0 -60 2 -64 25 -70 13 -3 32 -20 40 -37 15 -29 18 -30
73 -27 54 3 57 4 53 28 -9 64 -60 128 -123 155 -64 26 -68 23 -68 -49z"/>
<path d="M5750 2487 c0 -3 12 -12 26 -22 15 -9 23 -12 20 -6 -7 11 -46 35 -46
28z"/>
<path d="M5680 2456 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M1400 2430 c-9 -6 -10 -10 -3 -10 6 0 15 5 18 10 8 12 4 12 -15 0z"/>
<path d="M5880 2376 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M5810 2366 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M5870 2356 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M5960 2346 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M5830 2326 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M1145 2254 l-30 -26 33 22 c17 12 32 23 32 26 0 7 -4 5 -35 -22z"/>
<path d="M3731 2272 c-43 -3 -58 -8 -73 -27 -10 -13 -27 -27 -38 -30 -17 -5
-20 -15 -20 -71 0 -72 4 -75 68 -49 62 26 102 74 123 147 9 33 8 34 -60 30z"/>
<path d="M3825 2265 c-32 -123 -92 -188 -192 -210 l-33 -7 0 -115 c0 -101 2
-114 16 -109 9 3 29 6 45 6 17 0 28 4 25 9 -4 5 2 7 13 4 22 -6 123 36 115 48
-3 5 1 6 9 3 8 -3 40 21 78 56 35 34 57 59 49 55 -8 -4 -5 2 6 12 28 24 57 81
48 95 -4 7 -3 8 4 4 12 -7 26 35 38 111 l6 42 -112 3 c-69 2 -114 -1 -115 -7z"/>
<path d="M3140 2241 c0 -16 5 -42 11 -58 6 -15 13 -39 15 -51 6 -28 33 -74 51
-85 8 -5 11 -13 7 -18 -7 -13 41 -62 86 -86 19 -11 35 -26 35 -34 0 -8 8 -13
18 -11 9 2 16 -2 15 -8 -4 -16 81 -48 117 -44 23 2 26 1 15 -7 -11 -8 -5 -9
22 -7 21 2 40 -1 42 -7 2 -5 5 43 5 107 l1 117 -38 11 c-81 21 -142 84 -165
168 l-11 42 -113 0 -113 0 0 -29z"/>
<path d="M3399 2242 c13 -43 37 -85 63 -109 23 -21 87 -53 108 -53 6 0 10 27
10 64 0 56 -3 66 -20 71 -11 3 -28 17 -39 31 -16 20 -27 24 -74 24 l-56 0 8
-28z"/>
<path d="M6010 2256 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M6050 2256 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M6090 2256 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M1079 2209 l-24 -20 28 17 c15 9 27 18 27 20 0 8 -8 4 -31 -17z"/>
<path d="M5970 2226 c0 -2 14 -14 30 -26 17 -12 30 -19 30 -16 0 2 -13 14 -30
26 -16 12 -30 19 -30 16z"/>
<path d="M6020 2216 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M1140 2159 c-22 -18 -22 -19 -3 -10 12 6 25 16 28 21 9 15 3 12 -25
-11z"/>
<path d="M6040 2176 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M6190 2156 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M6230 2156 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M925 2104 l-30 -26 33 22 c17 12 32 23 32 26 0 7 -4 5 -35 -22z"/>
<path d="M6190 2126 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M6230 2126 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M953 2099 c-35 -22 -46 -37 -15 -20 22 13 58 40 52 41 -3 0 -20 -10
-37 -21z"/>
<path d="M994 2094 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M1044 2094 c-18 -14 -18 -15 4 -4 12 6 22 13 22 15 0 8 -5 6 -26 -11z"/>
<path d="M6330 2056 c0 -3 9 -10 20 -16 11 -6 20 -8 20 -6 0 3 -9 10 -20 16
-11 6 -20 8 -20 6z"/>
<path d="M6370 2056 c0 -3 9 -10 20 -16 11 -6 20 -8 20 -6 0 3 -9 10 -20 16
-11 6 -20 8 -20 6z"/>
<path d="M6122 1938 c3 -7 22 -14 44 -15 21 0 29 1 17 4 -13 2 -23 9 -23 14 0
5 -9 9 -21 9 -12 0 -19 -5 -17 -12z"/>
<path d="M996 1925 c-3 -9 0 -15 8 -15 7 0 19 7 26 15 10 12 9 15 -8 15 -11 0
-22 -7 -26 -15z"/>
<path d="M3315 1920 c3 -5 11 -10 16 -10 6 0 7 5 4 10 -3 6 -11 10 -16 10 -6
0 -7 -4 -4 -10z"/>
<path d="M958 1903 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M6188 1863 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M818 1853 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M793 1823 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M6243 1823 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M938 1813 c12 -2 32 -2 45 0 12 2 2 4 -23 4 -25 0 -35 -2 -22 -4z"/>
<path d="M1093 1803 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M898 1793 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M5918 1793 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M1063 1783 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M1248 1783 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M1288 1773 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M6028 1773 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M6418 1763 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M5938 1753 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M5898 1743 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M1495 1680 c27 -12 43 -12 25 0 -8 5 -22 9 -30 9 -10 0 -8 -3 5 -9z"/>
<path d="M1580 1680 c0 -5 9 -10 21 -10 11 0 17 5 14 10 -3 6 -13 10 -21 10
-8 0 -14 -4 -14 -10z"/>
<path d="M5680 1680 c-18 -12 -2 -12 25 0 13 6 15 9 5 9 -8 0 -22 -4 -30 -9z"/>
<path d="M5470 1660 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5720 1640 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5510 1620 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5490 1580 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5230 1570 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5350 1560 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5500 1560 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M1870 1550 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M1830 1540 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M5360 1530 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2060 1510 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M5170 1490 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M1990 1480 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2060 1480 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M5120 1470 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2190 1460 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4950 1460 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5180 1460 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M1940 1450 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2000 1450 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M5220 1450 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M4900 1440 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5130 1440 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2190 1430 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2270 1430 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4910 1420 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2280 1396 c23 -14 21 -21 -5 -16 -5 1 -4 -4 3 -12 10 -10 16 -10 33
0 11 7 25 10 31 6 7 -4 8 -3 4 4 -5 8 1 12 16 12 21 1 22 1 4 11 -14 9 -20 8
-26 -1 -8 -12 -18 -11 -65 5 -13 4 -12 1 5 -9z"/>
<path d="M4940 1400 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5000 1390 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2180 1380 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2400 1380 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4780 1370 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M5020 1370 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2450 1360 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2400 1350 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4810 1350 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M4625 1335 c-22 -11 -24 -13 -6 -9 16 4 21 3 17 -5 -4 -7 1 -11 13
-11 11 0 23 5 26 10 3 6 -2 10 -12 10 -15 0 -16 2 -3 10 23 15 -1 11 -35 -5z"/>
<path d="M4700 1340 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M2520 1331 c0 -5 -16 -13 -36 -17 -25 -5 -32 -10 -25 -17 7 -7 18 -7
35 2 13 8 30 10 37 6 8 -6 10 -4 4 5 -6 10 -1 12 26 7 21 -4 28 -3 19 2 -28
16 -60 23 -60 12z"/>
<path d="M2410 1320 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4725 1320 c-13 -6 -15 -9 -5 -9 8 0 22 4 30 9 18 12 2 12 -25 0z"/>
<path d="M4805 1315 c-25 -12 -26 -14 -5 -9 28 7 60 23 45 23 -5 0 -23 -6 -40
-14z"/>
<path d="M2360 1310 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2320 1300 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4590 1300 c-8 -5 -10 -10 -5 -10 6 0 17 5 25 10 8 5 11 10 5 10 -5
0 -17 -5 -25 -10z"/>
<path d="M4665 1300 c-3 -5 3 -10 14 -10 10 0 21 -5 23 -12 3 -8 11 -9 24 -3
18 8 18 9 -3 12 -13 3 -23 9 -23 14 0 12 -27 12 -35 -1z"/>
<path d="M2640 1292 c8 -5 26 -13 40 -16 17 -5 20 -4 10 2 -8 5 -26 13 -40 16
-17 5 -20 4 -10 -2z"/>
<path d="M4605 1275 c-25 -12 -26 -14 -5 -9 28 7 60 23 45 23 -5 0 -23 -6 -40
-14z"/>
<path d="M2620 1272 c8 -5 26 -13 40 -16 17 -5 20 -4 10 2 -8 5 -26 13 -40 16
-17 5 -20 4 -10 -2z"/>
<path d="M2485 1260 c27 -12 43 -12 25 0 -8 5 -22 9 -30 9 -10 0 -8 -3 5 -9z"/>
<path d="M2570 1262 c8 -5 26 -13 40 -16 17 -5 20 -4 10 2 -8 5 -26 13 -40 16
-17 5 -20 4 -10 -2z"/>
<path d="M2540 1240 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4665 1235 c-25 -12 -26 -14 -5 -9 28 7 60 23 45 23 -5 0 -23 -6 -40
-14z"/>
<path d="M2500 1230 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M4375 1230 c-13 -5 -14 -9 -5 -9 8 0 24 4 35 9 13 5 14 9 5 9 -8 0
-24 -4 -35 -9z"/>
<path d="M4435 1220 c-27 -10 -43 -18 -35 -18 8 0 38 8 65 18 28 10 43 18 35
18 -8 0 -37 -8 -65 -18z"/>
<path d="M2765 1220 c11 -5 27 -9 35 -9 9 0 8 4 -5 9 -11 5 -27 9 -35 9 -9 0
-8 -4 5 -9z"/>
<path d="M4288 1223 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2580 1200 c8 -5 20 -10 25 -10 6 0 3 5 -5 10 -8 5 -19 10 -25 10 -5
0 -3 -5 5 -10z"/>
<path d="M2641 1206 c8 -8 149 -56 163 -55 6 0 -19 11 -56 24 -92 32 -114 38
-107 31z"/>
<path d="M2908 1203 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4275 1200 c-13 -5 -14 -9 -5 -9 8 0 24 4 35 9 13 5 14 9 5 9 -8 0
-24 -4 -35 -9z"/>
<path d="M2775 1190 c11 -5 27 -9 35 -9 9 0 8 4 -5 9 -11 5 -27 9 -35 9 -9 0
-8 -4 5 -9z"/>
<path d="M2948 1193 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4178 1193 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4435 1190 c-13 -5 -14 -9 -5 -9 8 0 24 4 35 9 13 5 14 9 5 9 -8 0
-24 -4 -35 -9z"/>
<path d="M2888 1183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2988 1183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4138 1183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4228 1183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4328 1183 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2928 1173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3028 1173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4098 1173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4188 1173 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2706 1155 c17 -7 44 -16 60 -20 25 -4 24 -3 -6 8 -19 8 -46 17 -60
20 -19 5 -17 3 6 -8z"/>
<path d="M2968 1163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3068 1163 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4048 1163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4148 1163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4258 1163 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4335 1160 c-13 -5 -14 -9 -5 -9 8 0 24 4 35 9 13 5 14 9 5 9 -8 0
-24 -4 -35 -9z"/>
<path d="M3008 1153 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3128 1153 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3998 1153 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4108 1153 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4218 1153 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2938 1143 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3058 1143 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3178 1143 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3938 1143 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4058 1143 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4178 1143 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2865 1130 c11 -5 27 -9 35 -9 9 0 8 4 -5 9 -11 5 -27 9 -35 9 -9 0
-8 -4 5 -9z"/>
<path d="M2978 1133 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3098 1133 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3243 1133 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3878 1133 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4008 1133 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4138 1133 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4248 1133 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4368 1133 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3028 1123 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3158 1123 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3328 1123 c12 -2 30 -2 40 0 9 3 -1 5 -23 4 -22 0 -30 -2 -17 -4z"/>
<path d="M3793 1123 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3948 1123 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4088 1123 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4180 1120 c-20 -6 -21 -8 -5 -8 11 0 29 3 40 8 25 11 -1 11 -35 0z"/>
<path d="M2928 1113 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3068 1113 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3223 1113 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3513 1113 c43 -2 110 -2 150 0 40 1 5 3 -78 3 -82 0 -115 -2 -72 -3z"/>
<path d="M3888 1113 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4048 1113 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M4298 1113 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2868 1103 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M2968 1103 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3118 1103 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3303 1103 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M3813 1103 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M3988 1103 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4128 1103 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3008 1093 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3183 1093 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3428 1093 c23 -2 59 -2 80 0 20 2 1 4 -43 4 -44 0 -61 -2 -37 -4z"/>
<path d="M3678 1093 c18 -2 45 -2 60 0 15 2 0 4 -33 4 -33 0 -45 -2 -27 -4z"/>
<path d="M3933 1093 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M4088 1093 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3058 1083 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3253 1083 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M3853 1083 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M4028 1083 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M2978 1073 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3108 1073 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3343 1073 c15 -2 39 -2 55 0 15 2 2 4 -28 4 -30 0 -43 -2 -27 -4z"/>
<path d="M3758 1073 c12 -2 32 -2 45 0 12 2 2 4 -23 4 -25 0 -35 -2 -22 -4z"/>
<path d="M3978 1073 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M4138 1073 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3028 1063 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3163 1063 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3533 1063 c31 -2 83 -2 115 0 31 2 5 3 -58 3 -63 0 -89 -1 -57 -3z"/>
<path d="M3923 1063 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M4098 1063 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3068 1053 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M3233 1053 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M3843 1053 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M4048 1053 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3118 1043 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3328 1043 c12 -2 32 -2 45 0 12 2 2 4 -23 4 -25 0 -35 -2 -22 -4z"/>
<path d="M3743 1043 c15 -2 37 -2 50 0 12 2 0 4 -28 4 -27 0 -38 -2 -22 -4z"/>
<path d="M3988 1043 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z"/>
<path d="M3173 1033 c9 -2 25 -2 35 0 9 3 1 5 -18 5 -19 0 -27 -2 -17 -5z"/>
<path d="M3498 1033 c34 -2 90 -2 125 0 34 2 6 3 -63 3 -69 0 -97 -1 -62 -3z"/>
<path d="M3933 1033 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3253 1023 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3863 1023 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z"/>
<path d="M3343 1013 c15 -2 39 -2 55 0 15 2 2 4 -28 4 -30 0 -43 -2 -27 -4z"/>
<path d="M3768 1013 c12 -2 30 -2 40 0 9 3 -1 5 -23 4 -22 0 -30 -2 -17 -4z"/>
<path d="M3523 1003 c37 -2 96 -2 130 0 34 2 4 3 -68 3 -71 0 -99 -1 -62 -3z"/>
<path d="M6560 1926 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21
13z"/>
<path d="M550 1915 c-7 -9 -11 -17 -9 -20 3 -2 10 5 17 15 14 24 10 26 -8 5z"/>
<path d="M584 1908 l-19 -23 23 19 c21 18 27 26 19 26 -2 0 -12 -10 -23 -22z"/>
<path d="M4345 640 c-11 -4 -32 -21 -47 -36 -114 -121 -48 -334 103 -334 126
0 201 157 138 287 -37 76 -123 113 -194 83z m103 -66 c92 -64 53 -244 -53
-244 -26 0 -75 52 -86 91 -31 102 63 206 139 153z"/>
<path d="M3180 555 l0 -85 79 0 c64 0 83 4 105 21 26 21 35 65 20 104 -11 28
-60 45 -134 45 l-70 0 0 -85z m147 9 c7 -20 -13 -34 -49 -34 -23 0 -28 4 -28
25 0 22 4 25 35 25 23 0 38 -6 42 -16z"/>
<path d="M2706 569 c-8 -19 -24 -56 -35 -82 -12 -27 -21 -51 -21 -53 0 -2 32
-4 70 -4 39 0 70 2 70 5 0 7 -61 159 -66 164 -2 2 -10 -11 -18 -30z"/>
<path d="M4860 564 l0 -77 73 5 c102 7 150 42 132 98 -10 33 -57 50 -135 50
l-70 0 0 -76z m130 6 c0 -5 -6 -10 -14 -10 -8 0 -21 -3 -30 -6 -11 -4 -16 -1
-16 10 0 11 9 16 30 16 17 0 30 -4 30 -10z"/>
<path d="M3785 350 c-35 -14 -66 -57 -72 -97 -14 -102 94 -174 191 -128 85 40
89 177 6 220 -31 16 -93 19 -125 5z m105 -70 c42 -42 16 -104 -43 -104 -46 0
-67 19 -67 60 0 57 69 85 110 44z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 58 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 825.807 790.956 C 853.291 749.618 879.725 707.591 905.083 664.916 C 912.07 652.764 911.025 637.595 902.438 626.516 C 880.421 597.289 838.266 537.981 815.311 483.068 C 791.716 426.705 788.174 339.066 788.004 296.313 C 788.042 280.096 782.666 264.329 772.729 251.513 L 636.279 78.113 C 635.765 85.904 634.682 93.648 633.036 101.281 C 628.513 122.743 619.937 144.119 610.166 165.282 C 604.449 177.655 597.793 190.882 591.137 204.28 L 577.91 230.99 C 555.893 276.558 535.37 326.01 529.61 384.165 C 524.32 437.926 531.573 500.647 564.384 575.358 C 569.846 575.827 575.35 576.424 580.854 577.235 C 633.414 584.319 682.749 606.643 722.765 641.449 C 761.849 675.157 797.177 723.456 825.807 790.785 L 825.807 790.956 Z M 349.81 962.948 C 352.925 963.46 356.04 963.801 359.197 963.801 C 392.478 964.825 448.585 967.727 494.026 976.175 C 531.146 983.001 604.662 1003.48 665.122 1021.19 C 711.331 1034.67 758.905 997.807 765.603 950.19 C 770.467 915.459 779.684 876.162 796.537 840.109 L 796.111 840.322 C 767.523 760.534 731.171 708.992 693.026 676.095 C 659.63 646.982 618.41 628.331 574.496 622.462 C 508.789 613.246 448.542 630.569 410.654 641.663 C 433.353 736.299 426.355 847.703 349.853 962.99 L 349.81 962.948 Z M 236.059 424.017 C 235.078 428.283 233.67 432.422 231.878 436.39 L 120.303 685.183 C 108.843 710.741 114.135 740.704 133.657 760.79 L 309.276 941.699 C 399.006 809.388 385.907 684.842 344.946 587.561 C 313.884 513.746 266.78 456.102 236.144 424.102 L 236.059 424.017 Z M 397.64 597.758 C 423.881 589.95 466.164 577.918 514.762 574.974 C 485.62 501.373 478.58 437.03 484.212 379.685 C 490.783 313.466 514.079 258.211 536.906 211.149 C 541.728 201.122 546.421 191.778 550.901 182.818 C 557.259 170.146 563.19 158.199 568.779 146.124 C 578.038 126.071 584.95 108.364 588.406 91.937 C 591.819 75.723 591.819 61.216 587.809 47.435 C 583.755 33.568 575.136 18.634 558.795 2.207 C 536.568 -3.586 512.919 2.186 495.86 17.568 L 284.657 207.523 C 272.873 218.116 265.136 232.474 262.769 248.142 L 244.55 368.89 C 273.222 394.064 343.879 467.708 386.845 569.896 C 390.685 578.856 394.312 588.243 397.64 597.758 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" height="1em" width="1em">
<path d="M 908.353 401.596 L 943.213 401.596 L 943.213 544.419 L 1024 544.419 L 1024 573.51 L 908.353 573.51 L 908.353 401.596 Z M 817.804 577.402 C 816.164 577.504 814.287 577.573 812.375 577.573 C 794.177 577.573 777.241 571.973 763.277 562.413 L 763.584 562.617 C 751.327 552.921 743.507 538.034 743.507 521.338 C 743.507 521.03 743.507 520.69 743.507 520.382 L 743.507 520.416 L 777.652 520.416 C 778.027 529.362 782.227 537.284 788.645 542.609 L 788.679 542.644 C 795.61 546.878 804.01 549.37 813.024 549.37 C 814.185 549.37 815.345 549.336 816.506 549.234 L 816.335 549.234 C 816.439 549.234 816.609 549.234 816.745 549.234 C 821.116 549.234 825.384 548.79 829.516 547.97 L 829.106 548.038 C 833.1 547.288 836.618 545.956 839.861 544.113 L 839.69 544.215 C 842.695 542.507 845.153 540.186 846.962 537.42 L 846.997 537.351 C 848.738 534.586 849.762 531.24 849.762 527.621 C 849.762 527.45 849.762 527.245 849.762 527.074 L 849.762 527.109 C 849.762 526.938 849.762 526.699 849.762 526.494 C 849.762 522.874 848.636 519.495 846.724 516.728 L 846.758 516.797 C 844.504 513.895 841.636 511.574 838.358 510.003 L 838.222 509.934 C 834.432 508.057 829.993 506.418 825.349 505.222 L 824.872 505.12 C 819.659 503.755 813.775 502.344 807.22 500.886 C 799.548 499.134 792.14 497.176 784.992 495.014 C 777.856 492.897 771.608 489.893 765.973 486.068 L 766.213 486.205 C 760.852 482.518 756.517 477.771 753.341 472.239 L 753.238 472.035 C 750.098 466.128 748.254 459.095 748.254 451.651 C 748.254 451.037 748.254 450.456 748.288 449.876 L 748.288 449.944 C 748.288 449.602 748.288 449.193 748.288 448.817 C 748.288 441.101 750.131 433.794 753.375 427.306 L 753.238 427.58 C 756.584 421.093 761.228 415.698 766.827 411.533 L 766.964 411.43 C 772.871 407.128 779.802 403.748 787.314 401.802 L 787.758 401.7 C 795.372 399.65 804.112 398.456 813.126 398.456 C 813.502 398.456 813.877 398.456 814.253 398.456 L 814.185 398.456 C 815.277 398.388 816.541 398.353 817.839 398.353 C 834.022 398.353 848.977 403.509 861.166 412.284 L 860.961 412.148 C 872.672 421.639 880.218 435.945 880.559 451.993 L 880.559 452.06 L 847.168 452.06 C 846.689 444.071 842.66 437.106 836.651 432.667 L 836.583 432.633 C 830.608 428.57 823.233 426.112 815.277 426.112 C 814.833 426.112 814.356 426.112 813.912 426.146 L 813.98 426.146 C 813.366 426.112 812.648 426.077 811.931 426.077 C 804.352 426.077 797.25 428.16 791.206 431.779 L 791.377 431.677 C 786.323 434.614 782.977 440.042 782.977 446.223 C 782.977 446.256 782.977 446.325 782.977 446.358 C 782.977 446.529 782.977 446.735 782.977 446.939 C 782.977 449.979 783.831 452.812 785.333 455.202 L 785.3 455.133 C 787.108 457.695 789.431 459.777 792.162 461.212 L 792.264 461.28 C 795.61 463.124 799.469 464.694 803.532 465.752 L 803.908 465.821 C 808.551 467.085 814.048 468.45 820.501 469.918 C 829.334 471.83 837.63 473.947 845.392 476.268 C 853.176 478.556 859.937 481.697 866.151 485.726 L 865.844 485.556 C 871.58 489.312 876.224 494.228 879.57 500.033 L 879.672 500.238 C 882.882 506.349 884.759 513.553 884.759 521.201 C 884.759 521.851 884.759 522.499 884.726 523.148 L 884.726 523.045 C 884.726 523.319 884.726 523.66 884.726 524.001 C 884.726 532.094 882.847 539.742 879.536 546.571 L 879.672 546.263 C 876.292 553.092 871.58 558.794 865.844 563.232 L 865.741 563.301 C 859.732 567.876 852.664 571.461 845.016 573.646 L 844.572 573.748 C 836.788 576.071 827.843 577.368 818.624 577.368 C 818.385 577.368 818.145 577.368 817.872 577.368 L 817.906 577.368 L 817.804 577.402 Z M 657.431 577.402 C 655.793 577.504 653.914 577.573 652.003 577.573 C 633.804 577.573 616.869 571.973 602.904 562.413 L 603.212 562.617 C 590.954 552.921 583.135 538.034 583.135 521.305 C 583.135 520.997 583.135 520.655 583.135 520.348 L 583.135 520.382 L 617.279 520.382 C 617.654 529.328 621.854 537.249 628.273 542.576 L 628.308 542.609 C 635.239 546.844 643.637 549.336 652.651 549.336 C 653.812 549.336 654.973 549.302 656.134 549.2 L 655.964 549.2 C 656.066 549.2 656.237 549.2 656.373 549.2 C 660.743 549.2 665.012 548.755 669.143 547.936 L 668.733 548.005 C 672.728 547.253 676.245 545.922 679.488 544.078 L 679.318 544.18 C 682.322 542.473 684.78 540.151 686.59 537.386 L 686.624 537.317 C 688.366 534.552 689.39 531.205 689.39 527.586 C 689.39 527.416 689.39 527.211 689.39 527.04 L 689.39 527.074 C 689.39 526.903 689.39 526.665 689.39 526.459 C 689.39 522.84 688.263 519.461 686.351 516.695 L 686.385 516.763 C 684.132 513.861 681.264 511.539 677.986 509.968 L 677.849 509.901 C 674.06 508.022 669.62 506.384 664.977 505.188 L 664.499 505.086 C 659.287 503.72 653.403 502.309 646.847 500.853 C 639.176 499.1 631.767 497.142 624.62 494.98 C 617.483 492.862 611.235 489.858 605.602 486.034 L 605.841 486.17 C 600.48 482.483 596.144 477.737 592.969 472.206 L 592.866 472.001 C 589.725 466.094 587.881 459.06 587.881 451.617 C 587.881 451.002 587.881 450.422 587.915 449.841 L 587.915 449.91 C 587.915 449.568 587.915 449.158 587.915 448.783 C 587.915 441.067 589.759 433.76 593.002 Line truncated
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

Loaded 100 of 212 files, more files were not shown because too many files have changed in this diff. Show more