diff --git a/.gitignore b/.gitignore
index 1b7c454..ba6ce9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,24 +9,30 @@ ehthumbs.db
Thumbs.db
nohup.out
-
+# Python files #
+######################
.python-version
.env
.venv
.ipynb_checkpoints
*.log
-uploads/
+
+# Editor files #
+######################
.idea
+.vscode
-
-# templates files #
+# Node files #
######################
node_modules/
dist/
-public/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
-db.json
+
+# Other files #
+######################
+public/
+db.json
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 5173ab1..0000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Contributing
-
-Thanks for your interest on contributing to reference 👍👍, it's people like you that make [QuickRef.ME](https://quickref.me) such a amazing site 🎉🎉. Feel free to [submit issues](https://github.com/Fechin/reference/issues/new?assignee=Fechin) and enhancement requests.
-
-A `{filename}.md` file will be processed into a cheat sheet, let's create or edit a markdown file:
-
-#### Front Matter
-```markdown
----
-title: QuickRef
-date: 2020-11-25 18:28:43
-icon: icon-style
-background: bg-emerald-600
-tags:
-categories:
- - Other
-intro: This is a reference of styles that you can use on quickref cheatsheets!
----
-```
-Just need `title` and `intro`, and ignore other options. I will complete it if it can be released.
-
-#### CSS classes
-QuickRefs uses [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs) and supports adding classes via its syntax. Also, there is a reference of styles that you can use on `quickref.me` cheat sheets: https://quickref.me/quickref
-
-
-At last, It's a good practice to refer to the source code of the existing cheat sheet!
diff --git a/README.md b/README.md
index 7fcc9ae..8bb7fa8 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,16 @@
# Reference
-Share quick reference cheat sheet for developers.
-If you see a cheatsheet here is not fit, you can fix it or provide a better cheatsheet by submitting a PR.
+[](#)
+[](https://github.com/Fechin/reference/blob/main/LICENSE)
+[](#)
+[](#)
+[](#)
+
+
+
+**Reference** is a collection of **cheatsheets** contributed by open source angels. It shares a quick reference cheat sheet for developers in a beautiful layout.
+
+We're happy to see your best skill cheat sheets in **Reference**, If you see a cheatsheet here is not fit, you can fix it or provide a better cheatsheet by submitting a PR.
## Live Demo
@@ -11,9 +20,61 @@ Read the cheatsheet gracefully https://quickref.me
+## Directory structure
+```
+.
+├── source
+│ ├── _posts # Source file for cheatsheet
+│ │ ├── bash.md
+│ │ ├── chmod.md
+│ │ ├── ...
+│ └── widget # Widget that can be referenced
+│ └── chmod.html
+├── public # Static files for distribution
+├── _config.yml
+├── gulpfile.js
+├── package.json
+├── postcss.config.js
+├── tailwind.config.js
+└── themes
+ └── coo # Hexo's theme
+```
+
## Contributing
-See [the contribution guide](https://github.com/Fechin/reference/blob/main/CONTRIBUTING.md) for ways to get started.
+Thanks for your interest on contributing to reference 👍👍, it's people like you that make [QuickRef.ME](https://quickref.me) such a amazing site 🎉🎉. Feel free to [submit issues](https://github.com/Fechin/reference/issues/new?assignee=Fechin) and enhancement requests.
+
+
+#### Development setup
+
+1. Clone Github repo `git clone https://github.com/Fechin/reference.git`
+2. Install `npm` package manager (Read [installation guide](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm))
+3. Run `npm install` in the root folder to install dependencies.
+4. Run `npm run dev` to start a dev server. This serves the project and live reloads when any files are changed, then visit http://127.0.0.1:4000 preview.
+5. Send us pull request and chill.
+
+A `source/_posts/{filename}.md` file will be processed into a cheat sheet, let's create or edit a markdown file:
+
+#### Front Matter
+```markdown
+---
+title: QuickRef
+date: 2020-11-25 18:28:43
+icon: icon-style
+background: bg-emerald-600
+tags:
+categories:
+- Other
+ intro: This is a reference of styles that you can use on quickref cheatsheets!
+---
+```
+Just need `title` and `intro`, and ignore other options. I will complete it if it can be released.
+
+#### CSS classes
+QuickRefs uses [markdown-it-attrs](https://github.com/arve0/markdown-it-attrs) and supports adding classes via its syntax. Also, there is a reference of styles that you can use on `quickref.me` cheat sheets: https://quickref.me/quickref
+
+
+At last, It's a good practice to refer to the source code of the existing cheat sheet!
I'm a crypto enthusiast, and these are just a few wallet addresses. If you'd like, I can send you an address to a token or asset of your choice. I'm always happy to receive and learn about a new one! Permissions:
diff --git a/_config.yml b/_config.yml
new file mode 100644
index 0000000..d2ffa24
--- /dev/null
+++ b/_config.yml
@@ -0,0 +1,160 @@
+# Hexo Configuration
+## Docs: https://hexo.io/docs/configuration.html
+## Source: https://github.com/hexojs/hexo/
+
+# Site
+title: QuickRef.ME
+subtitle: 'Quick Reference Cheat Sheet'
+description: 'Share quick reference and cheat sheet for developers'
+keywords: reference,cheatsheet,code table,snippets,linux
+author: QuickRef.ME
+language: en
+timezone: ''
+
+# URL
+## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
+url: https://quickref.me
+root: /
+permalink: :name.html
+permalink_defaults:
+pretty_urls:
+ trailing_index: false # Set to false to remove trailing 'index.html' from permalinks
+ trailing_html: false # Set to false to remove trailing '.html' from permalinks
+
+# Directory
+source_dir: source
+public_dir: public
+#tag_dir: tag
+archive_dir: archives
+#category_dir: node
+#code_dir: downloads/code
+i18n_dir: :lang
+skip_render:
+ - "assets/**/*"
+ - "_posts/README.md"
+ - "_posts/CONTRIBUTING.md"
+
+# Writing
+new_post_name: :title.md # File name of new posts
+default_layout: post
+titlecase: false # Transform title into titlecase
+external_link:
+ enable: true # Open external links in new tab
+ field: site # Apply to the whole site
+ exclude: ''
+filename_case: 1
+render_drafts: false
+post_asset_folder: false
+relative_link: false
+future: true
+highlight:
+ enable: false
+
+# Home page setting
+# path: Root path for your blogs index page. (default = '')
+# per_page: Posts displayed per page. (0 = disable pagination)
+# order_by: Posts order. (Order by date descending by default)
+index_generator:
+ path: ''
+ per_page: 0
+ order_by: -date
+
+# Category & Tag
+default_category: uncategorized
+category_map:
+tag_map:
+
+# Metadata elements
+## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
+meta_generator: false
+
+# Date / Time format
+## Hexo uses Moment.js to parse and display date
+## You can customize the date format as defined in
+## http://momentjs.com/docs/#/displaying/format/
+date_format: YYYY-MM-DD
+time_format: HH:mm:ss
+## Use post's date for updated date unless set in front-matter
+updated_option: 'date'
+
+# Pagination
+## Set per_page to 0 to disable pagination
+per_page: 10
+pagination_dir: page
+
+# Include / Exclude file(s)
+## include:/exclude: options only apply to the 'source/' folder
+include:
+exclude:
+ - ".github"
+ignore:
+
+# Extensions
+## Plugins: https://hexo.io/plugins/
+## Themes: https://hexo.io/themes/
+theme: coo
+
+nofollow:
+ enable: true
+ field: site
+ exclude:
+ - 'exclude1.com'
+
+excerpt:
+ depth: 2
+ excerpt_excludes: []
+ more_excludes: []
+ hideWholePostExcerpts: true
+
+
+# Deployment
+## Docs: https://hexo.io/docs/deployment.html
+deploy:
+# - type: cjh_google_url_submitter
+ - type: cjh_bing_url_submitter
+ - type: cjh_baidu_url_submitter
+
+# hexo-server configuration
+server:
+ # Solve the problem that occasional real-time refresh is invalid and long articles are truncated
+ compress: true
+
+# https://github.com/hexojs/hexo-generator-sitemap#options
+sitemap:
+ path: sitemap.xml
+ tags: false
+ categories: false
+
+# hexo-related-popular-posts
+# https://github.com/tea3/hexo-related-popular-posts/wiki/More-Settings#popular-posts
+popularPosts:
+ googleAnalyticsAPI:
+ clientId: 122889019292-92h297ceb29qnv9ulvgabad6q5kgv0an.apps.googleusercontent.com
+ serviceEmail: quickref-service@decent-courage-275204.iam.gserviceaccount.com
+ key: google-services-private-key.pem
+ viewId: 242826463
+ dateRange: 30 # (Optional) The period you want to get by Google Analytics page view. Default = 30
+ expiresDate: 10 # (optional) Expiration date of cache file. Default = 10
+ # cache: # (Deprecated) This options is Deprecated > v0.1.3
+ # path: hexo-related-popular-posts-ga-cached.json # (Deprecated) This options is Deprecated > v0.1.3
+ # expiresDate: 10 # (Deprecated) This options is Deprecated > v0.1.3
+
+
+# Markdown-it configuration
+## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
+markdown:
+ render:
+ html: true
+ xhtmlOut: false
+ breaks: false
+ linkify: false
+ typographer: false
+ quotes: '“”‘’'
+ anchors:
+ level: 2
+ collisionSuffix: ''
+ permalink: true
+ permalinkClass: h-anchor
+ permalinkSymbol: '#'
+ case: 1
+ separator: '-'
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..1539b72
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,37 @@
+const gulp = require('gulp');
+const htmlmin = require('gulp-htmlmin');
+const htmlclean = require('gulp-htmlclean');
+const version = require('gulp-version-number');
+const terser = require('gulp-terser');
+
+// Compress js files
+gulp.task('js', function () {
+ return gulp.src(['./public/js/main.js'])
+ .pipe(terser({
+ compress: true
+ }))
+ .pipe(gulp.dest('./public/js'));
+});
+
+
+// Build html files
+gulp.task('html', function () {
+ return gulp.src('./public/**/*.html')
+ .pipe(htmlclean())
+ .pipe(htmlmin({
+ removeComments: true,
+ minifyJS: true,
+ minifyCSS: true,
+ minifyURLs: true,
+ }))
+ .pipe(version({
+ 'append': {
+ 'key': '_v',
+ 'cover': 1,
+ 'to': ['css', 'js', 'png', 'jpg', 'woff2']
+ }
+ }))
+ .pipe(gulp.dest('./public'));
+});
+
+gulp.task('default', gulp.parallel('js', 'html'));
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..110af21
--- /dev/null
+++ b/package.json
@@ -0,0 +1,76 @@
+{
+ "name": "QuickRef.ME",
+ "version": "1.0.0",
+ "private": true,
+ "scripts": {
+ "dev": "run-p dev:*",
+ "dev:hexo": "npx hexo clean && npx hexo server",
+ "dev:css": "npx postcss themes/coo/source/css/style.tailwindcss -o themes/coo/source/css/style.css --watch",
+ "build": "run-s build:*",
+ "build:clean": "npx hexo clean",
+ "build:css": "npx postcss themes/coo/source/css/style.tailwindcss -o themes/coo/source/css/style.css",
+ "build:generate": "npx hexo generate",
+ "build:cache": "npm cache clean --force",
+ "build:gulp": "npx gulp --max-old-space-size=4096"
+ },
+ "hexo": {
+ "version": "5.4.2"
+ },
+ "dependencies": {
+ "eslint": "^8.27.0",
+ "gulp": "^4.0.2",
+ "gulp-cli": "^2.3.0",
+ "gulp-ext-replace": "^0.3.0",
+ "gulp-htmlclean": "^2.7.22",
+ "gulp-htmlmin": "^5.0.1",
+ "gulp-minify-css": "^1.2.4",
+ "gulp-postcss": "^9.0.1",
+ "gulp-uglify-es": "^3.0.0",
+ "gulp-version-number": "^0.2.4",
+ "hexo": "^5.4.0",
+ "hexo-browsersync": "^0.3.0",
+ "hexo-cli": "^4.3.0",
+ "hexo-excerpt": "^1.2.1",
+ "hexo-filter-nofollow": "^2.0.2",
+ "hexo-generator-index": "^2.0.0",
+ "hexo-generator-sitemap": "^2.2.0",
+ "hexo-log": "^3.0.0",
+ "hexo-pagination": "^2.0.0",
+ "hexo-related-popular-posts": "^5.0.1",
+ "hexo-renderer-ejs": "^2.0.0",
+ "hexo-renderer-markdown-it": "^5.0.0",
+ "hexo-renderer-stylus": "^2.0.1",
+ "hexo-server": "^2.0.0",
+ "markdown-it-abbr": "^1.0.4",
+ "markdown-it-anchor": "^8.4.1",
+ "markdown-it-attrs": "^4.1.0",
+ "markdown-it-checkbox": "^1.1.0",
+ "markdown-it-emoji": "^2.0.0",
+ "markdown-it-footnote": "^3.0.3",
+ "markdown-it-highlight-lines": "^1.0.2",
+ "markdown-it-highlightjs": "^3.5.0",
+ "markdown-it-ins": "^3.0.1",
+ "markdown-it-multimd-table": "^4.1.1",
+ "markdown-it-shortcode-tag": "^1.1.0",
+ "markdown-it-sub": "^1.0.0",
+ "markdown-it-sup": "^1.0.0",
+ "markdown-it-task-lists": "^2.1.1"
+ },
+ "devDependencies": {
+ "autoprefixer": "^10.4.0",
+ "gulp-clean-css": "^4.3.0",
+ "gulp-filesize": "^0.0.6",
+ "gulp-javascript-obfuscator": "^1.1.6",
+ "gulp-replace": "^1.1.3",
+ "gulp-rev": "^9.0.0",
+ "gulp-terser": "^2.1.0",
+ "npm-run-all": "^4.1.5",
+ "postcss": "^8.4.4",
+ "postcss-cli": "^9.1.0",
+ "postcss-import": "^14.0.2",
+ "postcss-minify": "^1.1.0",
+ "sync-request": "^6.1.0",
+ "tailwindcss": "^3.0.1",
+ "tailwindcss-cli": "^0.1.2"
+ }
+}
diff --git a/postcss.config.js b/postcss.config.js
new file mode 100644
index 0000000..dff409f
--- /dev/null
+++ b/postcss.config.js
@@ -0,0 +1,8 @@
+module.exports = {
+ plugins: {
+ 'postcss-import': {path: 'themes/coo/source/css'},
+ 'tailwindcss': {config: './tailwind.config.js'},
+ 'autoprefixer': {},
+ 'postcss-minify':{},
+ }
+};
\ No newline at end of file
diff --git a/scaffolds/draft.md b/scaffolds/draft.md
new file mode 100644
index 0000000..2945745
--- /dev/null
+++ b/scaffolds/draft.md
@@ -0,0 +1,6 @@
+---
+title: {{ title }}
+date: {{ date }}
+categories:
+tags:
+---
diff --git a/scaffolds/page.md b/scaffolds/page.md
new file mode 100644
index 0000000..f01ba3c
--- /dev/null
+++ b/scaffolds/page.md
@@ -0,0 +1,4 @@
+---
+title: {{ title }}
+date: {{ date }}
+---
diff --git a/scaffolds/post.md b/scaffolds/post.md
new file mode 100644
index 0000000..648dba7
--- /dev/null
+++ b/scaffolds/post.md
@@ -0,0 +1,16 @@
+---
+title: {{ title }}
+date: {{ date }}
+icon: icon-{{ title }}
+background: bg-blue-400
+tags:
+ -
+categories:
+ -
+intro:
+---
+
+
+
+
+
diff --git a/scaffolds/table.md b/scaffolds/table.md
new file mode 100644
index 0000000..2945745
--- /dev/null
+++ b/scaffolds/table.md
@@ -0,0 +1,6 @@
+---
+title: {{ title }}
+date: {{ date }}
+categories:
+tags:
+---
diff --git a/aspect-ratio.md b/source/_posts/aspect-ratio.md
similarity index 100%
rename from aspect-ratio.md
rename to source/_posts/aspect-ratio.md
diff --git a/awk.md b/source/_posts/awk.md
similarity index 100%
rename from awk.md
rename to source/_posts/awk.md
diff --git a/bash.md b/source/_posts/bash.md
similarity index 100%
rename from bash.md
rename to source/_posts/bash.md
diff --git a/chmod.md b/source/_posts/chmod.md
similarity index 100%
rename from chmod.md
rename to source/_posts/chmod.md
diff --git a/cpp.md b/source/_posts/cpp.md
similarity index 100%
rename from cpp.md
rename to source/_posts/cpp.md
diff --git a/cron.md b/source/_posts/cron.md
similarity index 100%
rename from cron.md
rename to source/_posts/cron.md
diff --git a/cs.md b/source/_posts/cs.md
similarity index 100%
rename from cs.md
rename to source/_posts/cs.md
diff --git a/css.md b/source/_posts/css.md
similarity index 100%
rename from css.md
rename to source/_posts/css.md
diff --git a/dart.md b/source/_posts/dart.md
similarity index 100%
rename from dart.md
rename to source/_posts/dart.md
diff --git a/docker.md b/source/_posts/docker.md
similarity index 100%
rename from docker.md
rename to source/_posts/docker.md
diff --git a/emacs.md b/source/_posts/emacs.md
similarity index 100%
rename from emacs.md
rename to source/_posts/emacs.md
diff --git a/emmet.md b/source/_posts/emmet.md
similarity index 100%
rename from emmet.md
rename to source/_posts/emmet.md
diff --git a/emoji.md b/source/_posts/emoji.md
similarity index 100%
rename from emoji.md
rename to source/_posts/emoji.md
diff --git a/find.md b/source/_posts/find.md
similarity index 100%
rename from find.md
rename to source/_posts/find.md
diff --git a/git.md b/source/_posts/git.md
similarity index 100%
rename from git.md
rename to source/_posts/git.md
diff --git a/golang.md b/source/_posts/golang.md
similarity index 100%
rename from golang.md
rename to source/_posts/golang.md
diff --git a/graphql.md b/source/_posts/graphql.md
similarity index 100%
rename from graphql.md
rename to source/_posts/graphql.md
diff --git a/grep.md b/source/_posts/grep.md
similarity index 100%
rename from grep.md
rename to source/_posts/grep.md
diff --git a/html-char.md b/source/_posts/html-char.md
similarity index 100%
rename from html-char.md
rename to source/_posts/html-char.md
diff --git a/html.md b/source/_posts/html.md
similarity index 100%
rename from html.md
rename to source/_posts/html.md
diff --git a/http-status-code.md b/source/_posts/http-status-code.md
similarity index 100%
rename from http-status-code.md
rename to source/_posts/http-status-code.md
diff --git a/idea.md b/source/_posts/idea.md
similarity index 100%
rename from idea.md
rename to source/_posts/idea.md
diff --git a/iso-639-1.md b/source/_posts/iso-639-1.md
similarity index 100%
rename from iso-639-1.md
rename to source/_posts/iso-639-1.md
diff --git a/java.md b/source/_posts/java.md
similarity index 100%
rename from java.md
rename to source/_posts/java.md
diff --git a/javascript.md b/source/_posts/javascript.md
similarity index 100%
rename from javascript.md
rename to source/_posts/javascript.md
diff --git a/jquery.md b/source/_posts/jquery.md
similarity index 100%
rename from jquery.md
rename to source/_posts/jquery.md
diff --git a/json.md b/source/_posts/json.md
similarity index 100%
rename from json.md
rename to source/_posts/json.md
diff --git a/laravel.md b/source/_posts/laravel.md
similarity index 100%
rename from laravel.md
rename to source/_posts/laravel.md
diff --git a/lsof.md b/source/_posts/lsof.md
similarity index 100%
rename from lsof.md
rename to source/_posts/lsof.md
diff --git a/markdown.md b/source/_posts/markdown.md
similarity index 100%
rename from markdown.md
rename to source/_posts/markdown.md
diff --git a/mime.md b/source/_posts/mime.md
similarity index 100%
rename from mime.md
rename to source/_posts/mime.md
diff --git a/mitmproxy.md b/source/_posts/mitmproxy.md
similarity index 100%
rename from mitmproxy.md
rename to source/_posts/mitmproxy.md
diff --git a/mysql.md b/source/_posts/mysql.md
similarity index 100%
rename from mysql.md
rename to source/_posts/mysql.md
diff --git a/nc.md b/source/_posts/nc.md
similarity index 100%
rename from nc.md
rename to source/_posts/nc.md
diff --git a/neo4j.md b/source/_posts/neo4j.md
similarity index 100%
rename from neo4j.md
rename to source/_posts/neo4j.md
diff --git a/netstat.md b/source/_posts/netstat.md
similarity index 100%
rename from netstat.md
rename to source/_posts/netstat.md
diff --git a/note/javascript/array/cast-a-value-as-an-array.md b/source/_posts/note/javascript/array/cast-a-value-as-an-array.md
similarity index 100%
rename from note/javascript/array/cast-a-value-as-an-array.md
rename to source/_posts/note/javascript/array/cast-a-value-as-an-array.md
diff --git a/note/javascript/array/check-if-an-array-is-empty.md b/source/_posts/note/javascript/array/check-if-an-array-is-empty.md
similarity index 100%
rename from note/javascript/array/check-if-an-array-is-empty.md
rename to source/_posts/note/javascript/array/check-if-an-array-is-empty.md
diff --git a/note/javascript/array/clone-an-array.md b/source/_posts/note/javascript/array/clone-an-array.md
similarity index 100%
rename from note/javascript/array/clone-an-array.md
rename to source/_posts/note/javascript/array/clone-an-array.md
diff --git a/note/javascript/array/compare-two-arrays-regardless-of-order.md b/source/_posts/note/javascript/array/compare-two-arrays-regardless-of-order.md
similarity index 100%
rename from note/javascript/array/compare-two-arrays-regardless-of-order.md
rename to source/_posts/note/javascript/array/compare-two-arrays-regardless-of-order.md
diff --git a/note/javascript/array/compare-two-arrays.md b/source/_posts/note/javascript/array/compare-two-arrays.md
similarity index 100%
rename from note/javascript/array/compare-two-arrays.md
rename to source/_posts/note/javascript/array/compare-two-arrays.md
diff --git a/note/javascript/array/convert-an-array-of-objects-to-a-single-object.md b/source/_posts/note/javascript/array/convert-an-array-of-objects-to-a-single-object.md
similarity index 100%
rename from note/javascript/array/convert-an-array-of-objects-to-a-single-object.md
rename to source/_posts/note/javascript/array/convert-an-array-of-objects-to-a-single-object.md
diff --git a/note/javascript/array/convert-an-array-of-strings-to-numbers.md b/source/_posts/note/javascript/array/convert-an-array-of-strings-to-numbers.md
similarity index 100%
rename from note/javascript/array/convert-an-array-of-strings-to-numbers.md
rename to source/_posts/note/javascript/array/convert-an-array-of-strings-to-numbers.md
diff --git a/note/javascript/array/count-by-the-properties-of-an-array-of-objects.md b/source/_posts/note/javascript/array/count-by-the-properties-of-an-array-of-objects.md
similarity index 100%
rename from note/javascript/array/count-by-the-properties-of-an-array-of-objects.md
rename to source/_posts/note/javascript/array/count-by-the-properties-of-an-array-of-objects.md
diff --git a/note/javascript/array/count-the-occurrences-of-a-value-in-an-array.md b/source/_posts/note/javascript/array/count-the-occurrences-of-a-value-in-an-array.md
similarity index 100%
rename from note/javascript/array/count-the-occurrences-of-a-value-in-an-array.md
rename to source/_posts/note/javascript/array/count-the-occurrences-of-a-value-in-an-array.md
diff --git a/note/javascript/array/count-the-occurrences-of-array-elements.md b/source/_posts/note/javascript/array/count-the-occurrences-of-array-elements.md
similarity index 100%
rename from note/javascript/array/count-the-occurrences-of-array-elements.md
rename to source/_posts/note/javascript/array/count-the-occurrences-of-array-elements.md
diff --git a/note/javascript/array/create-an-array-of-cumulative-sum.md b/source/_posts/note/javascript/array/create-an-array-of-cumulative-sum.md
similarity index 100%
rename from note/javascript/array/create-an-array-of-cumulative-sum.md
rename to source/_posts/note/javascript/array/create-an-array-of-cumulative-sum.md
diff --git a/note/javascript/array/create-an-array-of-numbers-in-the-given-range.md b/source/_posts/note/javascript/array/create-an-array-of-numbers-in-the-given-range.md
similarity index 100%
rename from note/javascript/array/create-an-array-of-numbers-in-the-given-range.md
rename to source/_posts/note/javascript/array/create-an-array-of-numbers-in-the-given-range.md
diff --git a/note/javascript/array/create-cartesian-product.md b/source/_posts/note/javascript/array/create-cartesian-product.md
similarity index 100%
rename from note/javascript/array/create-cartesian-product.md
rename to source/_posts/note/javascript/array/create-cartesian-product.md
diff --git a/note/javascript/array/empty-an-array.md b/source/_posts/note/javascript/array/empty-an-array.md
similarity index 100%
rename from note/javascript/array/empty-an-array.md
rename to source/_posts/note/javascript/array/empty-an-array.md
diff --git a/note/javascript/array/find-the-closest-number-from-an-array.md b/source/_posts/note/javascript/array/find-the-closest-number-from-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-closest-number-from-an-array.md
rename to source/_posts/note/javascript/array/find-the-closest-number-from-an-array.md
diff --git a/note/javascript/array/find-the-index-of-the-last-matching-item-of-an-array.md b/source/_posts/note/javascript/array/find-the-index-of-the-last-matching-item-of-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-index-of-the-last-matching-item-of-an-array.md
rename to source/_posts/note/javascript/array/find-the-index-of-the-last-matching-item-of-an-array.md
diff --git a/note/javascript/array/find-the-index-of-the-maximum-item-of-an-array.md b/source/_posts/note/javascript/array/find-the-index-of-the-maximum-item-of-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-index-of-the-maximum-item-of-an-array.md
rename to source/_posts/note/javascript/array/find-the-index-of-the-maximum-item-of-an-array.md
diff --git a/note/javascript/array/find-the-index-of-the-minimum-item-of-an-array.md b/source/_posts/note/javascript/array/find-the-index-of-the-minimum-item-of-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-index-of-the-minimum-item-of-an-array.md
rename to source/_posts/note/javascript/array/find-the-index-of-the-minimum-item-of-an-array.md
diff --git a/note/javascript/array/find-the-length-of-the-longest-string-in-an-array.md b/source/_posts/note/javascript/array/find-the-length-of-the-longest-string-in-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-length-of-the-longest-string-in-an-array.md
rename to source/_posts/note/javascript/array/find-the-length-of-the-longest-string-in-an-array.md
diff --git a/note/javascript/array/find-the-maximum-item-of-an-array-by-given-key.md b/source/_posts/note/javascript/array/find-the-maximum-item-of-an-array-by-given-key.md
similarity index 100%
rename from note/javascript/array/find-the-maximum-item-of-an-array-by-given-key.md
rename to source/_posts/note/javascript/array/find-the-maximum-item-of-an-array-by-given-key.md
diff --git a/note/javascript/array/find-the-maximum-item-of-an-array.md b/source/_posts/note/javascript/array/find-the-maximum-item-of-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-maximum-item-of-an-array.md
rename to source/_posts/note/javascript/array/find-the-maximum-item-of-an-array.md
diff --git a/note/javascript/array/find-the-minimum-item-of-an-array-by-given-key.md b/source/_posts/note/javascript/array/find-the-minimum-item-of-an-array-by-given-key.md
similarity index 100%
rename from note/javascript/array/find-the-minimum-item-of-an-array-by-given-key.md
rename to source/_posts/note/javascript/array/find-the-minimum-item-of-an-array-by-given-key.md
diff --git a/note/javascript/array/find-the-minimum-item-of-an-array.md b/source/_posts/note/javascript/array/find-the-minimum-item-of-an-array.md
similarity index 100%
rename from note/javascript/array/find-the-minimum-item-of-an-array.md
rename to source/_posts/note/javascript/array/find-the-minimum-item-of-an-array.md
diff --git a/note/javascript/array/flatten-an-array.md b/source/_posts/note/javascript/array/flatten-an-array.md
similarity index 100%
rename from note/javascript/array/flatten-an-array.md
rename to source/_posts/note/javascript/array/flatten-an-array.md
diff --git a/note/javascript/array/get-all-arrays-of-consecutive-elements.md b/source/_posts/note/javascript/array/get-all-arrays-of-consecutive-elements.md
similarity index 100%
rename from note/javascript/array/get-all-arrays-of-consecutive-elements.md
rename to source/_posts/note/javascript/array/get-all-arrays-of-consecutive-elements.md
diff --git a/note/javascript/array/get-all-nth-items-of-an-array.md b/source/_posts/note/javascript/array/get-all-nth-items-of-an-array.md
similarity index 100%
rename from note/javascript/array/get-all-nth-items-of-an-array.md
rename to source/_posts/note/javascript/array/get-all-nth-items-of-an-array.md
diff --git a/note/javascript/array/get-all-subsets-of-an-array.md b/source/_posts/note/javascript/array/get-all-subsets-of-an-array.md
similarity index 100%
rename from note/javascript/array/get-all-subsets-of-an-array.md
rename to source/_posts/note/javascript/array/get-all-subsets-of-an-array.md
diff --git a/note/javascript/array/get-indices-of-a-value-in-an-array.md b/source/_posts/note/javascript/array/get-indices-of-a-value-in-an-array.md
similarity index 100%
rename from note/javascript/array/get-indices-of-a-value-in-an-array.md
rename to source/_posts/note/javascript/array/get-indices-of-a-value-in-an-array.md
diff --git a/note/javascript/array/get-the-average-of-an-array.md b/source/_posts/note/javascript/array/get-the-average-of-an-array.md
similarity index 100%
rename from note/javascript/array/get-the-average-of-an-array.md
rename to source/_posts/note/javascript/array/get-the-average-of-an-array.md
diff --git a/note/javascript/array/get-the-intersection-of-arrays.md b/source/_posts/note/javascript/array/get-the-intersection-of-arrays.md
similarity index 100%
rename from note/javascript/array/get-the-intersection-of-arrays.md
rename to source/_posts/note/javascript/array/get-the-intersection-of-arrays.md
diff --git a/note/javascript/array/get-the-rank-of-an-array-of-numbers.md b/source/_posts/note/javascript/array/get-the-rank-of-an-array-of-numbers.md
similarity index 100%
rename from note/javascript/array/get-the-rank-of-an-array-of-numbers.md
rename to source/_posts/note/javascript/array/get-the-rank-of-an-array-of-numbers.md
diff --git a/note/javascript/array/get-the-sum-of-an-array-of-numbers.md b/source/_posts/note/javascript/array/get-the-sum-of-an-array-of-numbers.md
similarity index 100%
rename from note/javascript/array/get-the-sum-of-an-array-of-numbers.md
rename to source/_posts/note/javascript/array/get-the-sum-of-an-array-of-numbers.md
diff --git a/note/javascript/array/get-the-unique-values-of-an-array.md b/source/_posts/note/javascript/array/get-the-unique-values-of-an-array.md
similarity index 100%
rename from note/javascript/array/get-the-unique-values-of-an-array.md
rename to source/_posts/note/javascript/array/get-the-unique-values-of-an-array.md
diff --git a/note/javascript/array/get-union-of-arrays.md b/source/_posts/note/javascript/array/get-union-of-arrays.md
similarity index 100%
rename from note/javascript/array/get-union-of-arrays.md
rename to source/_posts/note/javascript/array/get-union-of-arrays.md
diff --git a/note/javascript/array/group-an-array-of-objects-by-a-key.md b/source/_posts/note/javascript/array/group-an-array-of-objects-by-a-key.md
similarity index 100%
rename from note/javascript/array/group-an-array-of-objects-by-a-key.md
rename to source/_posts/note/javascript/array/group-an-array-of-objects-by-a-key.md
diff --git a/note/javascript/array/merge-two-arrays.md b/source/_posts/note/javascript/array/merge-two-arrays.md
similarity index 100%
rename from note/javascript/array/merge-two-arrays.md
rename to source/_posts/note/javascript/array/merge-two-arrays.md
diff --git a/note/javascript/array/partition-an-array-based-on-a-condition.md b/source/_posts/note/javascript/array/partition-an-array-based-on-a-condition.md
similarity index 100%
rename from note/javascript/array/partition-an-array-based-on-a-condition.md
rename to source/_posts/note/javascript/array/partition-an-array-based-on-a-condition.md
diff --git a/note/javascript/array/remove-duplicate-values-in-an-array.md b/source/_posts/note/javascript/array/remove-duplicate-values-in-an-array.md
similarity index 100%
rename from note/javascript/array/remove-duplicate-values-in-an-array.md
rename to source/_posts/note/javascript/array/remove-duplicate-values-in-an-array.md
diff --git a/note/javascript/array/remove-falsy-values-from-array.md b/source/_posts/note/javascript/array/remove-falsy-values-from-array.md
similarity index 100%
rename from note/javascript/array/remove-falsy-values-from-array.md
rename to source/_posts/note/javascript/array/remove-falsy-values-from-array.md
diff --git a/note/javascript/array/repeat-an-array.md b/source/_posts/note/javascript/array/repeat-an-array.md
similarity index 100%
rename from note/javascript/array/repeat-an-array.md
rename to source/_posts/note/javascript/array/repeat-an-array.md
diff --git a/note/javascript/array/shuffle-an-array.md b/source/_posts/note/javascript/array/shuffle-an-array.md
similarity index 100%
rename from note/javascript/array/shuffle-an-array.md
rename to source/_posts/note/javascript/array/shuffle-an-array.md
diff --git a/note/javascript/array/sort-an-array-of-items-by-given-key.md b/source/_posts/note/javascript/array/sort-an-array-of-items-by-given-key.md
similarity index 100%
rename from note/javascript/array/sort-an-array-of-items-by-given-key.md
rename to source/_posts/note/javascript/array/sort-an-array-of-items-by-given-key.md
diff --git a/note/javascript/array/sort-an-array-of-numbers.md b/source/_posts/note/javascript/array/sort-an-array-of-numbers.md
similarity index 100%
rename from note/javascript/array/sort-an-array-of-numbers.md
rename to source/_posts/note/javascript/array/sort-an-array-of-numbers.md
diff --git a/note/javascript/array/split-an-array-into-chunks.md b/source/_posts/note/javascript/array/split-an-array-into-chunks.md
similarity index 100%
rename from note/javascript/array/split-an-array-into-chunks.md
rename to source/_posts/note/javascript/array/split-an-array-into-chunks.md
diff --git a/note/javascript/array/swap-the-rows-and-columns-of-a-matrix.md b/source/_posts/note/javascript/array/swap-the-rows-and-columns-of-a-matrix.md
similarity index 100%
rename from note/javascript/array/swap-the-rows-and-columns-of-a-matrix.md
rename to source/_posts/note/javascript/array/swap-the-rows-and-columns-of-a-matrix.md
diff --git a/note/javascript/array/swap-two-array-items.md b/source/_posts/note/javascript/array/swap-two-array-items.md
similarity index 100%
rename from note/javascript/array/swap-two-array-items.md
rename to source/_posts/note/javascript/array/swap-two-array-items.md
diff --git a/note/javascript/array/unzip-an-array-of-arrays.md b/source/_posts/note/javascript/array/unzip-an-array-of-arrays.md
similarity index 100%
rename from note/javascript/array/unzip-an-array-of-arrays.md
rename to source/_posts/note/javascript/array/unzip-an-array-of-arrays.md
diff --git a/note/javascript/array/zip-multiple-arrays.md b/source/_posts/note/javascript/array/zip-multiple-arrays.md
similarity index 100%
rename from note/javascript/array/zip-multiple-arrays.md
rename to source/_posts/note/javascript/array/zip-multiple-arrays.md
diff --git a/note/javascript/date-time/add-am-pm-suffix-to-an-hour.md b/source/_posts/note/javascript/date-time/add-am-pm-suffix-to-an-hour.md
similarity index 100%
rename from note/javascript/date-time/add-am-pm-suffix-to-an-hour.md
rename to source/_posts/note/javascript/date-time/add-am-pm-suffix-to-an-hour.md
diff --git a/note/javascript/date-time/calculate-the-number-of-difference-days-between-two-dates.md b/source/_posts/note/javascript/date-time/calculate-the-number-of-difference-days-between-two-dates.md
similarity index 100%
rename from note/javascript/date-time/calculate-the-number-of-difference-days-between-two-dates.md
rename to source/_posts/note/javascript/date-time/calculate-the-number-of-difference-days-between-two-dates.md
diff --git a/note/javascript/date-time/calculate-the-number-of-months-between-two-dates.md b/source/_posts/note/javascript/date-time/calculate-the-number-of-months-between-two-dates.md
similarity index 100%
rename from note/javascript/date-time/calculate-the-number-of-months-between-two-dates.md
rename to source/_posts/note/javascript/date-time/calculate-the-number-of-months-between-two-dates.md
diff --git a/note/javascript/date-time/compare-two-dates.md b/source/_posts/note/javascript/date-time/compare-two-dates.md
similarity index 100%
rename from note/javascript/date-time/compare-two-dates.md
rename to source/_posts/note/javascript/date-time/compare-two-dates.md
diff --git a/note/javascript/date-time/convert-a-date-to-yyyy-mm-dd-format.md b/source/_posts/note/javascript/date-time/convert-a-date-to-yyyy-mm-dd-format.md
similarity index 100%
rename from note/javascript/date-time/convert-a-date-to-yyyy-mm-dd-format.md
rename to source/_posts/note/javascript/date-time/convert-a-date-to-yyyy-mm-dd-format.md
diff --git a/note/javascript/date-time/convert-seconds-to-hh-mm-ss-format.md b/source/_posts/note/javascript/date-time/convert-seconds-to-hh-mm-ss-format.md
similarity index 100%
rename from note/javascript/date-time/convert-seconds-to-hh-mm-ss-format.md
rename to source/_posts/note/javascript/date-time/convert-seconds-to-hh-mm-ss-format.md
diff --git a/note/javascript/date-time/extract-year-month-day-hour-minute-second-and-millisecond-from-a-date.md b/source/_posts/note/javascript/date-time/extract-year-month-day-hour-minute-second-and-millisecond-from-a-date.md
similarity index 100%
rename from note/javascript/date-time/extract-year-month-day-hour-minute-second-and-millisecond-from-a-date.md
rename to source/_posts/note/javascript/date-time/extract-year-month-day-hour-minute-second-and-millisecond-from-a-date.md
diff --git a/note/javascript/date-time/format-a-date-for-the-given-locale.md b/source/_posts/note/javascript/date-time/format-a-date-for-the-given-locale.md
similarity index 100%
rename from note/javascript/date-time/format-a-date-for-the-given-locale.md
rename to source/_posts/note/javascript/date-time/format-a-date-for-the-given-locale.md
diff --git a/note/javascript/date-time/get-the-current-quarter-of-a-date.md b/source/_posts/note/javascript/date-time/get-the-current-quarter-of-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-current-quarter-of-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-current-quarter-of-a-date.md
diff --git a/note/javascript/date-time/get-the-current-timestamp-in-seconds.md b/source/_posts/note/javascript/date-time/get-the-current-timestamp-in-seconds.md
similarity index 100%
rename from note/javascript/date-time/get-the-current-timestamp-in-seconds.md
rename to source/_posts/note/javascript/date-time/get-the-current-timestamp-in-seconds.md
diff --git a/note/javascript/date-time/get-the-day-of-the-year-from-a-date.md b/source/_posts/note/javascript/date-time/get-the-day-of-the-year-from-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-day-of-the-year-from-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-day-of-the-year-from-a-date.md
diff --git a/note/javascript/date-time/get-the-first-date-in-the-month-of-a-date.md b/source/_posts/note/javascript/date-time/get-the-first-date-in-the-month-of-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-first-date-in-the-month-of-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-first-date-in-the-month-of-a-date.md
diff --git a/note/javascript/date-time/get-the-last-date-in-the-month-of-a-date.md b/source/_posts/note/javascript/date-time/get-the-last-date-in-the-month-of-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-last-date-in-the-month-of-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-last-date-in-the-month-of-a-date.md
diff --git a/note/javascript/date-time/get-the-month-name-of-a-date.md b/source/_posts/note/javascript/date-time/get-the-month-name-of-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-month-name-of-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-month-name-of-a-date.md
diff --git a/note/javascript/date-time/get-the-number-of-days-in-given-month.md b/source/_posts/note/javascript/date-time/get-the-number-of-days-in-given-month.md
similarity index 100%
rename from note/javascript/date-time/get-the-number-of-days-in-given-month.md
rename to source/_posts/note/javascript/date-time/get-the-number-of-days-in-given-month.md
diff --git a/note/javascript/date-time/get-the-timezone-string.md b/source/_posts/note/javascript/date-time/get-the-timezone-string.md
similarity index 100%
rename from note/javascript/date-time/get-the-timezone-string.md
rename to source/_posts/note/javascript/date-time/get-the-timezone-string.md
diff --git a/note/javascript/date-time/get-the-tomorrow-date.md b/source/_posts/note/javascript/date-time/get-the-tomorrow-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-tomorrow-date.md
rename to source/_posts/note/javascript/date-time/get-the-tomorrow-date.md
diff --git a/note/javascript/date-time/get-the-total-number-of-days-in-a-year.md b/source/_posts/note/javascript/date-time/get-the-total-number-of-days-in-a-year.md
similarity index 100%
rename from note/javascript/date-time/get-the-total-number-of-days-in-a-year.md
rename to source/_posts/note/javascript/date-time/get-the-total-number-of-days-in-a-year.md
diff --git a/note/javascript/date-time/get-the-weekday-of-a-date.md b/source/_posts/note/javascript/date-time/get-the-weekday-of-a-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-weekday-of-a-date.md
rename to source/_posts/note/javascript/date-time/get-the-weekday-of-a-date.md
diff --git a/note/javascript/date-time/get-the-yesterday-date.md b/source/_posts/note/javascript/date-time/get-the-yesterday-date.md
similarity index 100%
rename from note/javascript/date-time/get-the-yesterday-date.md
rename to source/_posts/note/javascript/date-time/get-the-yesterday-date.md
diff --git a/note/javascript/date-time/initialize-the-current-date-but-set-time-to-midnight.md b/source/_posts/note/javascript/date-time/initialize-the-current-date-but-set-time-to-midnight.md
similarity index 100%
rename from note/javascript/date-time/initialize-the-current-date-but-set-time-to-midnight.md
rename to source/_posts/note/javascript/date-time/initialize-the-current-date-but-set-time-to-midnight.md
diff --git a/note/javascript/date-time/sort-an-array-of-dates.md b/source/_posts/note/javascript/date-time/sort-an-array-of-dates.md
similarity index 100%
rename from note/javascript/date-time/sort-an-array-of-dates.md
rename to source/_posts/note/javascript/date-time/sort-an-array-of-dates.md
diff --git a/note/javascript/dom/check-if-an-element-is-a-descendant-of-another.md b/source/_posts/note/javascript/dom/check-if-an-element-is-a-descendant-of-another.md
similarity index 100%
rename from note/javascript/dom/check-if-an-element-is-a-descendant-of-another.md
rename to source/_posts/note/javascript/dom/check-if-an-element-is-a-descendant-of-another.md
diff --git a/note/javascript/dom/check-if-an-element-is-focused.md b/source/_posts/note/javascript/dom/check-if-an-element-is-focused.md
similarity index 100%
rename from note/javascript/dom/check-if-an-element-is-focused.md
rename to source/_posts/note/javascript/dom/check-if-an-element-is-focused.md
diff --git a/note/javascript/dom/check-if-the-touch-events-are-supported.md b/source/_posts/note/javascript/dom/check-if-the-touch-events-are-supported.md
similarity index 100%
rename from note/javascript/dom/check-if-the-touch-events-are-supported.md
rename to source/_posts/note/javascript/dom/check-if-the-touch-events-are-supported.md
diff --git a/note/javascript/dom/check-if-user-scrolls-to-the-bottom-of-the-page.md b/source/_posts/note/javascript/dom/check-if-user-scrolls-to-the-bottom-of-the-page.md
similarity index 100%
rename from note/javascript/dom/check-if-user-scrolls-to-the-bottom-of-the-page.md
rename to source/_posts/note/javascript/dom/check-if-user-scrolls-to-the-bottom-of-the-page.md
diff --git a/note/javascript/dom/detect-internet-explorer-browser.md b/source/_posts/note/javascript/dom/detect-internet-explorer-browser.md
similarity index 100%
rename from note/javascript/dom/detect-internet-explorer-browser.md
rename to source/_posts/note/javascript/dom/detect-internet-explorer-browser.md
diff --git a/note/javascript/dom/detect-macos-browser.md b/source/_posts/note/javascript/dom/detect-macos-browser.md
similarity index 100%
rename from note/javascript/dom/detect-macos-browser.md
rename to source/_posts/note/javascript/dom/detect-macos-browser.md
diff --git a/note/javascript/dom/get-all-siblings-of-an-element.md b/source/_posts/note/javascript/dom/get-all-siblings-of-an-element.md
similarity index 100%
rename from note/javascript/dom/get-all-siblings-of-an-element.md
rename to source/_posts/note/javascript/dom/get-all-siblings-of-an-element.md
diff --git a/note/javascript/dom/get-the-position-of-an-element-relative-to-the-document.md b/source/_posts/note/javascript/dom/get-the-position-of-an-element-relative-to-the-document.md
similarity index 100%
rename from note/javascript/dom/get-the-position-of-an-element-relative-to-the-document.md
rename to source/_posts/note/javascript/dom/get-the-position-of-an-element-relative-to-the-document.md
diff --git a/note/javascript/dom/get-the-selected-text.md b/source/_posts/note/javascript/dom/get-the-selected-text.md
similarity index 100%
rename from note/javascript/dom/get-the-selected-text.md
rename to source/_posts/note/javascript/dom/get-the-selected-text.md
diff --git a/note/javascript/dom/go-back-to-the-previous-page.md b/source/_posts/note/javascript/dom/go-back-to-the-previous-page.md
similarity index 100%
rename from note/javascript/dom/go-back-to-the-previous-page.md
rename to source/_posts/note/javascript/dom/go-back-to-the-previous-page.md
diff --git a/note/javascript/dom/hide-an-element.md b/source/_posts/note/javascript/dom/hide-an-element.md
similarity index 100%
rename from note/javascript/dom/hide-an-element.md
rename to source/_posts/note/javascript/dom/hide-an-element.md
diff --git a/note/javascript/dom/insert-an-element-after-other-one.md b/source/_posts/note/javascript/dom/insert-an-element-after-other-one.md
similarity index 100%
rename from note/javascript/dom/insert-an-element-after-other-one.md
rename to source/_posts/note/javascript/dom/insert-an-element-after-other-one.md
diff --git a/note/javascript/dom/insert-an-element-before-other-one.md b/source/_posts/note/javascript/dom/insert-an-element-before-other-one.md
similarity index 100%
rename from note/javascript/dom/insert-an-element-before-other-one.md
rename to source/_posts/note/javascript/dom/insert-an-element-before-other-one.md
diff --git a/note/javascript/dom/insert-given-html-after-an-element.md b/source/_posts/note/javascript/dom/insert-given-html-after-an-element.md
similarity index 100%
rename from note/javascript/dom/insert-given-html-after-an-element.md
rename to source/_posts/note/javascript/dom/insert-given-html-after-an-element.md
diff --git a/note/javascript/dom/insert-given-html-before-an-element.md b/source/_posts/note/javascript/dom/insert-given-html-before-an-element.md
similarity index 100%
rename from note/javascript/dom/insert-given-html-before-an-element.md
rename to source/_posts/note/javascript/dom/insert-given-html-before-an-element.md
diff --git a/note/javascript/dom/redirect-to-another-page.md b/source/_posts/note/javascript/dom/redirect-to-another-page.md
similarity index 100%
rename from note/javascript/dom/redirect-to-another-page.md
rename to source/_posts/note/javascript/dom/redirect-to-another-page.md
diff --git a/note/javascript/dom/reload-the-current-page.md b/source/_posts/note/javascript/dom/reload-the-current-page.md
similarity index 100%
rename from note/javascript/dom/reload-the-current-page.md
rename to source/_posts/note/javascript/dom/reload-the-current-page.md
diff --git a/note/javascript/dom/replace-an-element.md b/source/_posts/note/javascript/dom/replace-an-element.md
similarity index 100%
rename from note/javascript/dom/replace-an-element.md
rename to source/_posts/note/javascript/dom/replace-an-element.md
diff --git a/note/javascript/dom/scroll-to-top-of-the-page.md b/source/_posts/note/javascript/dom/scroll-to-top-of-the-page.md
similarity index 100%
rename from note/javascript/dom/scroll-to-top-of-the-page.md
rename to source/_posts/note/javascript/dom/scroll-to-top-of-the-page.md
diff --git a/note/javascript/dom/serialize-form-data.md b/source/_posts/note/javascript/dom/serialize-form-data.md
similarity index 100%
rename from note/javascript/dom/serialize-form-data.md
rename to source/_posts/note/javascript/dom/serialize-form-data.md
diff --git a/note/javascript/dom/show-an-element.md b/source/_posts/note/javascript/dom/show-an-element.md
similarity index 100%
rename from note/javascript/dom/show-an-element.md
rename to source/_posts/note/javascript/dom/show-an-element.md
diff --git a/note/javascript/dom/strip-html-from-a-given-text.md b/source/_posts/note/javascript/dom/strip-html-from-a-given-text.md
similarity index 100%
rename from note/javascript/dom/strip-html-from-a-given-text.md
rename to source/_posts/note/javascript/dom/strip-html-from-a-given-text.md
diff --git a/note/javascript/dom/toggle-an-element.md b/source/_posts/note/javascript/dom/toggle-an-element.md
similarity index 100%
rename from note/javascript/dom/toggle-an-element.md
rename to source/_posts/note/javascript/dom/toggle-an-element.md
diff --git a/note/javascript/function/box-handler.md b/source/_posts/note/javascript/function/box-handler.md
similarity index 100%
rename from note/javascript/function/box-handler.md
rename to source/_posts/note/javascript/function/box-handler.md
diff --git a/note/javascript/function/check-if-a-value-is-a-function.md b/source/_posts/note/javascript/function/check-if-a-value-is-a-function.md
similarity index 100%
rename from note/javascript/function/check-if-a-value-is-a-function.md
rename to source/_posts/note/javascript/function/check-if-a-value-is-a-function.md
diff --git a/note/javascript/function/check-if-a-value-is-a-generator-function.md b/source/_posts/note/javascript/function/check-if-a-value-is-a-generator-function.md
similarity index 100%
rename from note/javascript/function/check-if-a-value-is-a-generator-function.md
rename to source/_posts/note/javascript/function/check-if-a-value-is-a-generator-function.md
diff --git a/note/javascript/function/check-if-a-value-is-an-async-function.md b/source/_posts/note/javascript/function/check-if-a-value-is-an-async-function.md
similarity index 100%
rename from note/javascript/function/check-if-a-value-is-an-async-function.md
rename to source/_posts/note/javascript/function/check-if-a-value-is-an-async-function.md
diff --git a/note/javascript/function/compose-functions-from-left-to-right.md b/source/_posts/note/javascript/function/compose-functions-from-left-to-right.md
similarity index 100%
rename from note/javascript/function/compose-functions-from-left-to-right.md
rename to source/_posts/note/javascript/function/compose-functions-from-left-to-right.md
diff --git a/note/javascript/function/compose-functions.md b/source/_posts/note/javascript/function/compose-functions.md
similarity index 100%
rename from note/javascript/function/compose-functions.md
rename to source/_posts/note/javascript/function/compose-functions.md
diff --git a/note/javascript/function/create-a-function-that-accepts-a-single-argument.md b/source/_posts/note/javascript/function/create-a-function-that-accepts-a-single-argument.md
similarity index 100%
rename from note/javascript/function/create-a-function-that-accepts-a-single-argument.md
rename to source/_posts/note/javascript/function/create-a-function-that-accepts-a-single-argument.md
diff --git a/note/javascript/function/create-an-empty-function.md b/source/_posts/note/javascript/function/create-an-empty-function.md
similarity index 100%
rename from note/javascript/function/create-an-empty-function.md
rename to source/_posts/note/javascript/function/create-an-empty-function.md
diff --git a/note/javascript/function/curry-a-function.md b/source/_posts/note/javascript/function/curry-a-function.md
similarity index 100%
rename from note/javascript/function/curry-a-function.md
rename to source/_posts/note/javascript/function/curry-a-function.md
diff --git a/note/javascript/function/delay-the-evaluation-of-a-function.md b/source/_posts/note/javascript/function/delay-the-evaluation-of-a-function.md
similarity index 100%
rename from note/javascript/function/delay-the-evaluation-of-a-function.md
rename to source/_posts/note/javascript/function/delay-the-evaluation-of-a-function.md
diff --git a/note/javascript/function/execute-a-function-once.md b/source/_posts/note/javascript/function/execute-a-function-once.md
similarity index 100%
rename from note/javascript/function/execute-a-function-once.md
rename to source/_posts/note/javascript/function/execute-a-function-once.md
diff --git a/note/javascript/function/flip-the-arguments-of-a-function.md b/source/_posts/note/javascript/function/flip-the-arguments-of-a-function.md
similarity index 100%
rename from note/javascript/function/flip-the-arguments-of-a-function.md
rename to source/_posts/note/javascript/function/flip-the-arguments-of-a-function.md
diff --git a/note/javascript/function/identity-function.md b/source/_posts/note/javascript/function/identity-function.md
similarity index 100%
rename from note/javascript/function/identity-function.md
rename to source/_posts/note/javascript/function/identity-function.md
diff --git a/note/javascript/function/logical-xor-operator.md b/source/_posts/note/javascript/function/logical-xor-operator.md
similarity index 100%
rename from note/javascript/function/logical-xor-operator.md
rename to source/_posts/note/javascript/function/logical-xor-operator.md
diff --git a/note/javascript/function/memoize-a-function.md b/source/_posts/note/javascript/function/memoize-a-function.md
similarity index 100%
rename from note/javascript/function/memoize-a-function.md
rename to source/_posts/note/javascript/function/memoize-a-function.md
diff --git a/note/javascript/function/partially-apply-a-function.md b/source/_posts/note/javascript/function/partially-apply-a-function.md
similarity index 100%
rename from note/javascript/function/partially-apply-a-function.md
rename to source/_posts/note/javascript/function/partially-apply-a-function.md
diff --git a/note/javascript/function/uncurry-a-function.md b/source/_posts/note/javascript/function/uncurry-a-function.md
similarity index 100%
rename from note/javascript/function/uncurry-a-function.md
rename to source/_posts/note/javascript/function/uncurry-a-function.md
diff --git a/note/javascript/math/calculate-the-angle-of-a-line-defined-by-two-points.md b/source/_posts/note/javascript/math/calculate-the-angle-of-a-line-defined-by-two-points.md
similarity index 100%
rename from note/javascript/math/calculate-the-angle-of-a-line-defined-by-two-points.md
rename to source/_posts/note/javascript/math/calculate-the-angle-of-a-line-defined-by-two-points.md
diff --git a/note/javascript/math/calculate-the-distance-between-two-points.md b/source/_posts/note/javascript/math/calculate-the-distance-between-two-points.md
similarity index 100%
rename from note/javascript/math/calculate-the-distance-between-two-points.md
rename to source/_posts/note/javascript/math/calculate-the-distance-between-two-points.md
diff --git a/note/javascript/math/calculate-the-linear-interpolation-between-two-numbers.md b/source/_posts/note/javascript/math/calculate-the-linear-interpolation-between-two-numbers.md
similarity index 100%
rename from note/javascript/math/calculate-the-linear-interpolation-between-two-numbers.md
rename to source/_posts/note/javascript/math/calculate-the-linear-interpolation-between-two-numbers.md
diff --git a/note/javascript/math/calculate-the-midpoint-between-two-points.md b/source/_posts/note/javascript/math/calculate-the-midpoint-between-two-points.md
similarity index 100%
rename from note/javascript/math/calculate-the-midpoint-between-two-points.md
rename to source/_posts/note/javascript/math/calculate-the-midpoint-between-two-points.md
diff --git a/note/javascript/math/check-if-a-point-is-inside-a-rectangle.md b/source/_posts/note/javascript/math/check-if-a-point-is-inside-a-rectangle.md
similarity index 100%
rename from note/javascript/math/check-if-a-point-is-inside-a-rectangle.md
rename to source/_posts/note/javascript/math/check-if-a-point-is-inside-a-rectangle.md
diff --git a/note/javascript/math/check-if-a-rectangle-contains-other-one.md b/source/_posts/note/javascript/math/check-if-a-rectangle-contains-other-one.md
similarity index 100%
rename from note/javascript/math/check-if-a-rectangle-contains-other-one.md
rename to source/_posts/note/javascript/math/check-if-a-rectangle-contains-other-one.md
diff --git a/note/javascript/math/check-if-a-rectangle-overlaps-other-one.md b/source/_posts/note/javascript/math/check-if-a-rectangle-overlaps-other-one.md
similarity index 100%
rename from note/javascript/math/check-if-a-rectangle-overlaps-other-one.md
rename to source/_posts/note/javascript/math/check-if-a-rectangle-overlaps-other-one.md
diff --git a/note/javascript/math/convert-degrees-to-radians.md b/source/_posts/note/javascript/math/convert-degrees-to-radians.md
similarity index 100%
rename from note/javascript/math/convert-degrees-to-radians.md
rename to source/_posts/note/javascript/math/convert-degrees-to-radians.md
diff --git a/note/javascript/math/convert-radians-to-degrees.md b/source/_posts/note/javascript/math/convert-radians-to-degrees.md
similarity index 100%
rename from note/javascript/math/convert-radians-to-degrees.md
rename to source/_posts/note/javascript/math/convert-radians-to-degrees.md
diff --git a/note/javascript/math/normalize-the-ratio-of-a-number-in-a-range.md b/source/_posts/note/javascript/math/normalize-the-ratio-of-a-number-in-a-range.md
similarity index 100%
rename from note/javascript/math/normalize-the-ratio-of-a-number-in-a-range.md
rename to source/_posts/note/javascript/math/normalize-the-ratio-of-a-number-in-a-range.md
diff --git a/note/javascript/math/round-a-number-to-the-nearest-multiple-of-a-given-value.md b/source/_posts/note/javascript/math/round-a-number-to-the-nearest-multiple-of-a-given-value.md
similarity index 100%
rename from note/javascript/math/round-a-number-to-the-nearest-multiple-of-a-given-value.md
rename to source/_posts/note/javascript/math/round-a-number-to-the-nearest-multiple-of-a-given-value.md
diff --git a/note/javascript/misc/check-if-the-code-is-running-in-node-js.md b/source/_posts/note/javascript/misc/check-if-the-code-is-running-in-node-js.md
similarity index 100%
rename from note/javascript/misc/check-if-the-code-is-running-in-node-js.md
rename to source/_posts/note/javascript/misc/check-if-the-code-is-running-in-node-js.md
diff --git a/note/javascript/misc/check-if-the-code-is-running-in-the-browser.md b/source/_posts/note/javascript/misc/check-if-the-code-is-running-in-the-browser.md
similarity index 100%
rename from note/javascript/misc/check-if-the-code-is-running-in-the-browser.md
rename to source/_posts/note/javascript/misc/check-if-the-code-is-running-in-the-browser.md
diff --git a/note/javascript/misc/clear-all-cookies.md b/source/_posts/note/javascript/misc/clear-all-cookies.md
similarity index 100%
rename from note/javascript/misc/clear-all-cookies.md
rename to source/_posts/note/javascript/misc/clear-all-cookies.md
diff --git a/note/javascript/misc/convert-3-digits-color-to-6-digits-color.md b/source/_posts/note/javascript/misc/convert-3-digits-color-to-6-digits-color.md
similarity index 100%
rename from note/javascript/misc/convert-3-digits-color-to-6-digits-color.md
rename to source/_posts/note/javascript/misc/convert-3-digits-color-to-6-digits-color.md
diff --git a/note/javascript/misc/convert-celsius-to-fahrenheit.md b/source/_posts/note/javascript/misc/convert-celsius-to-fahrenheit.md
similarity index 100%
rename from note/javascript/misc/convert-celsius-to-fahrenheit.md
rename to source/_posts/note/javascript/misc/convert-celsius-to-fahrenheit.md
diff --git a/note/javascript/misc/convert-cookie-to-object.md b/source/_posts/note/javascript/misc/convert-cookie-to-object.md
similarity index 100%
rename from note/javascript/misc/convert-cookie-to-object.md
rename to source/_posts/note/javascript/misc/convert-cookie-to-object.md
diff --git a/note/javascript/misc/convert-fahrenheit-to-celsius.md b/source/_posts/note/javascript/misc/convert-fahrenheit-to-celsius.md
similarity index 100%
rename from note/javascript/misc/convert-fahrenheit-to-celsius.md
rename to source/_posts/note/javascript/misc/convert-fahrenheit-to-celsius.md
diff --git a/note/javascript/misc/convert-hex-to-rgb.md b/source/_posts/note/javascript/misc/convert-hex-to-rgb.md
similarity index 100%
rename from note/javascript/misc/convert-hex-to-rgb.md
rename to source/_posts/note/javascript/misc/convert-hex-to-rgb.md
diff --git a/note/javascript/misc/convert-rgb-color-to-hex.md b/source/_posts/note/javascript/misc/convert-rgb-color-to-hex.md
similarity index 100%
rename from note/javascript/misc/convert-rgb-color-to-hex.md
rename to source/_posts/note/javascript/misc/convert-rgb-color-to-hex.md
diff --git a/note/javascript/misc/convert-url-parameters-to-object.md b/source/_posts/note/javascript/misc/convert-url-parameters-to-object.md
similarity index 100%
rename from note/javascript/misc/convert-url-parameters-to-object.md
rename to source/_posts/note/javascript/misc/convert-url-parameters-to-object.md
diff --git a/note/javascript/misc/decode-a-jwt-token.md b/source/_posts/note/javascript/misc/decode-a-jwt-token.md
similarity index 100%
rename from note/javascript/misc/decode-a-jwt-token.md
rename to source/_posts/note/javascript/misc/decode-a-jwt-token.md
diff --git a/note/javascript/misc/detect-dark-mode.md b/source/_posts/note/javascript/misc/detect-dark-mode.md
similarity index 100%
rename from note/javascript/misc/detect-dark-mode.md
rename to source/_posts/note/javascript/misc/detect-dark-mode.md
diff --git a/note/javascript/misc/easing-functions.md b/source/_posts/note/javascript/misc/easing-functions.md
similarity index 100%
rename from note/javascript/misc/easing-functions.md
rename to source/_posts/note/javascript/misc/easing-functions.md
diff --git a/note/javascript/misc/emulate-a-dice-throw.md b/source/_posts/note/javascript/misc/emulate-a-dice-throw.md
similarity index 100%
rename from note/javascript/misc/emulate-a-dice-throw.md
rename to source/_posts/note/javascript/misc/emulate-a-dice-throw.md
diff --git a/note/javascript/misc/encode-a-url.md b/source/_posts/note/javascript/misc/encode-a-url.md
similarity index 100%
rename from note/javascript/misc/encode-a-url.md
rename to source/_posts/note/javascript/misc/encode-a-url.md
diff --git a/note/javascript/misc/generate-an-unique-and-increment-id.md b/source/_posts/note/javascript/misc/generate-an-unique-and-increment-id.md
similarity index 100%
rename from note/javascript/misc/generate-an-unique-and-increment-id.md
rename to source/_posts/note/javascript/misc/generate-an-unique-and-increment-id.md
diff --git a/note/javascript/misc/get-the-first-defined-and-non-null-argument.md b/source/_posts/note/javascript/misc/get-the-first-defined-and-non-null-argument.md
similarity index 100%
rename from note/javascript/misc/get-the-first-defined-and-non-null-argument.md
rename to source/_posts/note/javascript/misc/get-the-first-defined-and-non-null-argument.md
diff --git a/note/javascript/misc/get-the-value-of-a-cookie.md b/source/_posts/note/javascript/misc/get-the-value-of-a-cookie.md
similarity index 100%
rename from note/javascript/misc/get-the-value-of-a-cookie.md
rename to source/_posts/note/javascript/misc/get-the-value-of-a-cookie.md
diff --git a/note/javascript/misc/get-the-value-of-a-param-from-a-url.md b/source/_posts/note/javascript/misc/get-the-value-of-a-param-from-a-url.md
similarity index 100%
rename from note/javascript/misc/get-the-value-of-a-param-from-a-url.md
rename to source/_posts/note/javascript/misc/get-the-value-of-a-param-from-a-url.md
diff --git a/note/javascript/misc/get-type-of-a-variable-in-string.md b/source/_posts/note/javascript/misc/get-type-of-a-variable-in-string.md
similarity index 100%
rename from note/javascript/misc/get-type-of-a-variable-in-string.md
rename to source/_posts/note/javascript/misc/get-type-of-a-variable-in-string.md
diff --git a/note/javascript/misc/redirect-the-page-to-https-if-it-is-in-http.md b/source/_posts/note/javascript/misc/redirect-the-page-to-https-if-it-is-in-http.md
similarity index 100%
rename from note/javascript/misc/redirect-the-page-to-https-if-it-is-in-http.md
rename to source/_posts/note/javascript/misc/redirect-the-page-to-https-if-it-is-in-http.md
diff --git a/note/javascript/misc/run-promises-in-sequence.md b/source/_posts/note/javascript/misc/run-promises-in-sequence.md
similarity index 100%
rename from note/javascript/misc/run-promises-in-sequence.md
rename to source/_posts/note/javascript/misc/run-promises-in-sequence.md
diff --git a/note/javascript/misc/swap-two-variables.md b/source/_posts/note/javascript/misc/swap-two-variables.md
similarity index 100%
rename from note/javascript/misc/swap-two-variables.md
rename to source/_posts/note/javascript/misc/swap-two-variables.md
diff --git a/note/javascript/misc/wait-for-an-amount-of-time.md b/source/_posts/note/javascript/misc/wait-for-an-amount-of-time.md
similarity index 100%
rename from note/javascript/misc/wait-for-an-amount-of-time.md
rename to source/_posts/note/javascript/misc/wait-for-an-amount-of-time.md
diff --git a/note/javascript/number/add-an-ordinal-suffix-to-a-number.md b/source/_posts/note/javascript/number/add-an-ordinal-suffix-to-a-number.md
similarity index 100%
rename from note/javascript/number/add-an-ordinal-suffix-to-a-number.md
rename to source/_posts/note/javascript/number/add-an-ordinal-suffix-to-a-number.md
diff --git a/note/javascript/number/calculate-fibonacci-numbers.md b/source/_posts/note/javascript/number/calculate-fibonacci-numbers.md
similarity index 100%
rename from note/javascript/number/calculate-fibonacci-numbers.md
rename to source/_posts/note/javascript/number/calculate-fibonacci-numbers.md
diff --git a/note/javascript/number/calculate-the-average-of-arguments.md b/source/_posts/note/javascript/number/calculate-the-average-of-arguments.md
similarity index 100%
rename from note/javascript/number/calculate-the-average-of-arguments.md
rename to source/_posts/note/javascript/number/calculate-the-average-of-arguments.md
diff --git a/note/javascript/number/calculate-the-division-of-arguments.md b/source/_posts/note/javascript/number/calculate-the-division-of-arguments.md
similarity index 100%
rename from note/javascript/number/calculate-the-division-of-arguments.md
rename to source/_posts/note/javascript/number/calculate-the-division-of-arguments.md
diff --git a/note/javascript/number/calculate-the-factorial-of-a-number.md b/source/_posts/note/javascript/number/calculate-the-factorial-of-a-number.md
similarity index 100%
rename from note/javascript/number/calculate-the-factorial-of-a-number.md
rename to source/_posts/note/javascript/number/calculate-the-factorial-of-a-number.md
diff --git a/note/javascript/number/calculate-the-mod-of-collection-index.md b/source/_posts/note/javascript/number/calculate-the-mod-of-collection-index.md
similarity index 100%
rename from note/javascript/number/calculate-the-mod-of-collection-index.md
rename to source/_posts/note/javascript/number/calculate-the-mod-of-collection-index.md
diff --git a/note/javascript/number/calculate-the-remainder-of-division-of-arguments.md b/source/_posts/note/javascript/number/calculate-the-remainder-of-division-of-arguments.md
similarity index 100%
rename from note/javascript/number/calculate-the-remainder-of-division-of-arguments.md
rename to source/_posts/note/javascript/number/calculate-the-remainder-of-division-of-arguments.md
diff --git a/note/javascript/number/calculate-the-sum-of-arguments.md b/source/_posts/note/javascript/number/calculate-the-sum-of-arguments.md
similarity index 100%
rename from note/javascript/number/calculate-the-sum-of-arguments.md
rename to source/_posts/note/javascript/number/calculate-the-sum-of-arguments.md
diff --git a/note/javascript/number/clamp-a-number-between-two-values.md b/source/_posts/note/javascript/number/clamp-a-number-between-two-values.md
similarity index 100%
rename from note/javascript/number/clamp-a-number-between-two-values.md
rename to source/_posts/note/javascript/number/clamp-a-number-between-two-values.md
diff --git a/note/javascript/number/compute-the-greatest-common-divisor-between-two-numbers.md b/source/_posts/note/javascript/number/compute-the-greatest-common-divisor-between-two-numbers.md
similarity index 100%
rename from note/javascript/number/compute-the-greatest-common-divisor-between-two-numbers.md
rename to source/_posts/note/javascript/number/compute-the-greatest-common-divisor-between-two-numbers.md
diff --git a/note/javascript/number/convert-a-number-to-equivalent-characters.md b/source/_posts/note/javascript/number/convert-a-number-to-equivalent-characters.md
similarity index 100%
rename from note/javascript/number/convert-a-number-to-equivalent-characters.md
rename to source/_posts/note/javascript/number/convert-a-number-to-equivalent-characters.md
diff --git a/note/javascript/number/convert-a-string-to-number.md b/source/_posts/note/javascript/number/convert-a-string-to-number.md
similarity index 100%
rename from note/javascript/number/convert-a-string-to-number.md
rename to source/_posts/note/javascript/number/convert-a-string-to-number.md
diff --git a/note/javascript/number/convert-decimal-to-binary-recursively.md b/source/_posts/note/javascript/number/convert-decimal-to-binary-recursively.md
similarity index 100%
rename from note/javascript/number/convert-decimal-to-binary-recursively.md
rename to source/_posts/note/javascript/number/convert-decimal-to-binary-recursively.md
diff --git a/note/javascript/number/get-the-arrays-of-digits-from-a-number.md b/source/_posts/note/javascript/number/get-the-arrays-of-digits-from-a-number.md
similarity index 100%
rename from note/javascript/number/get-the-arrays-of-digits-from-a-number.md
rename to source/_posts/note/javascript/number/get-the-arrays-of-digits-from-a-number.md
diff --git a/note/javascript/number/multiply-arguments.md b/source/_posts/note/javascript/number/multiply-arguments.md
similarity index 100%
rename from note/javascript/number/multiply-arguments.md
rename to source/_posts/note/javascript/number/multiply-arguments.md
diff --git a/note/javascript/number/prefix-an-integer-with-zeros.md b/source/_posts/note/javascript/number/prefix-an-integer-with-zeros.md
similarity index 100%
rename from note/javascript/number/prefix-an-integer-with-zeros.md
rename to source/_posts/note/javascript/number/prefix-an-integer-with-zeros.md
diff --git a/note/javascript/number/round-a-number-to-a-given-number-of-digits.md b/source/_posts/note/javascript/number/round-a-number-to-a-given-number-of-digits.md
similarity index 100%
rename from note/javascript/number/round-a-number-to-a-given-number-of-digits.md
rename to source/_posts/note/javascript/number/round-a-number-to-a-given-number-of-digits.md
diff --git a/note/javascript/number/subtract-arguments.md b/source/_posts/note/javascript/number/subtract-arguments.md
similarity index 100%
rename from note/javascript/number/subtract-arguments.md
rename to source/_posts/note/javascript/number/subtract-arguments.md
diff --git a/note/javascript/number/truncate-a-number-at-decimal.md b/source/_posts/note/javascript/number/truncate-a-number-at-decimal.md
similarity index 100%
rename from note/javascript/number/truncate-a-number-at-decimal.md
rename to source/_posts/note/javascript/number/truncate-a-number-at-decimal.md
diff --git a/note/javascript/number/truncate-a-number-to-a-given-number-of-decimal-places-without-rounding.md b/source/_posts/note/javascript/number/truncate-a-number-to-a-given-number-of-decimal-places-without-rounding.md
similarity index 100%
rename from note/javascript/number/truncate-a-number-to-a-given-number-of-decimal-places-without-rounding.md
rename to source/_posts/note/javascript/number/truncate-a-number-to-a-given-number-of-decimal-places-without-rounding.md
diff --git a/note/javascript/object/check-if-multiple-objects-are-equal.md b/source/_posts/note/javascript/object/check-if-multiple-objects-are-equal.md
similarity index 100%
rename from note/javascript/object/check-if-multiple-objects-are-equal.md
rename to source/_posts/note/javascript/object/check-if-multiple-objects-are-equal.md
diff --git a/note/javascript/object/create-an-empty-map-that-does-not-have-properties.md b/source/_posts/note/javascript/object/create-an-empty-map-that-does-not-have-properties.md
similarity index 100%
rename from note/javascript/object/create-an-empty-map-that-does-not-have-properties.md
rename to source/_posts/note/javascript/object/create-an-empty-map-that-does-not-have-properties.md
diff --git a/note/javascript/object/create-an-object-from-the-pairs-of-key-and-value.md b/source/_posts/note/javascript/object/create-an-object-from-the-pairs-of-key-and-value.md
similarity index 100%
rename from note/javascript/object/create-an-object-from-the-pairs-of-key-and-value.md
rename to source/_posts/note/javascript/object/create-an-object-from-the-pairs-of-key-and-value.md
diff --git a/note/javascript/object/extract-values-of-a-property-from-an-array-of-objects.md b/source/_posts/note/javascript/object/extract-values-of-a-property-from-an-array-of-objects.md
similarity index 100%
rename from note/javascript/object/extract-values-of-a-property-from-an-array-of-objects.md
rename to source/_posts/note/javascript/object/extract-values-of-a-property-from-an-array-of-objects.md
diff --git a/note/javascript/object/get-the-value-at-given-path-of-an-object.md b/source/_posts/note/javascript/object/get-the-value-at-given-path-of-an-object.md
similarity index 100%
rename from note/javascript/object/get-the-value-at-given-path-of-an-object.md
rename to source/_posts/note/javascript/object/get-the-value-at-given-path-of-an-object.md
diff --git a/note/javascript/object/immutably-rename-object-keys.md b/source/_posts/note/javascript/object/immutably-rename-object-keys.md
similarity index 100%
rename from note/javascript/object/immutably-rename-object-keys.md
rename to source/_posts/note/javascript/object/immutably-rename-object-keys.md
diff --git a/note/javascript/object/invert-keys-and-values-of-an-object.md b/source/_posts/note/javascript/object/invert-keys-and-values-of-an-object.md
similarity index 100%
rename from note/javascript/object/invert-keys-and-values-of-an-object.md
rename to source/_posts/note/javascript/object/invert-keys-and-values-of-an-object.md
diff --git a/note/javascript/object/omit-a-subset-of-properties-from-an-object.md b/source/_posts/note/javascript/object/omit-a-subset-of-properties-from-an-object.md
similarity index 100%
rename from note/javascript/object/omit-a-subset-of-properties-from-an-object.md
rename to source/_posts/note/javascript/object/omit-a-subset-of-properties-from-an-object.md
diff --git a/note/javascript/object/pick-a-subset-of-properties-of-an-object.md b/source/_posts/note/javascript/object/pick-a-subset-of-properties-of-an-object.md
similarity index 100%
rename from note/javascript/object/pick-a-subset-of-properties-of-an-object.md
rename to source/_posts/note/javascript/object/pick-a-subset-of-properties-of-an-object.md
diff --git a/note/javascript/object/remove-all-null-and-undefined-properties-from-an-object.md b/source/_posts/note/javascript/object/remove-all-null-and-undefined-properties-from-an-object.md
similarity index 100%
rename from note/javascript/object/remove-all-null-and-undefined-properties-from-an-object.md
rename to source/_posts/note/javascript/object/remove-all-null-and-undefined-properties-from-an-object.md
diff --git a/note/javascript/object/shallow-copy-an-object.md b/source/_posts/note/javascript/object/shallow-copy-an-object.md
similarity index 100%
rename from note/javascript/object/shallow-copy-an-object.md
rename to source/_posts/note/javascript/object/shallow-copy-an-object.md
diff --git a/note/javascript/object/sort-an-object-by-its-properties.md b/source/_posts/note/javascript/object/sort-an-object-by-its-properties.md
similarity index 100%
rename from note/javascript/object/sort-an-object-by-its-properties.md
rename to source/_posts/note/javascript/object/sort-an-object-by-its-properties.md
diff --git a/note/javascript/random/generate-a-random-boolean.md b/source/_posts/note/javascript/random/generate-a-random-boolean.md
similarity index 100%
rename from note/javascript/random/generate-a-random-boolean.md
rename to source/_posts/note/javascript/random/generate-a-random-boolean.md
diff --git a/note/javascript/random/generate-a-random-floating-point-number-in-given-range.md b/source/_posts/note/javascript/random/generate-a-random-floating-point-number-in-given-range.md
similarity index 100%
rename from note/javascript/random/generate-a-random-floating-point-number-in-given-range.md
rename to source/_posts/note/javascript/random/generate-a-random-floating-point-number-in-given-range.md
diff --git a/note/javascript/random/generate-a-random-hex-color.md b/source/_posts/note/javascript/random/generate-a-random-hex-color.md
similarity index 100%
rename from note/javascript/random/generate-a-random-hex-color.md
rename to source/_posts/note/javascript/random/generate-a-random-hex-color.md
diff --git a/note/javascript/random/generate-a-random-integer-in-given-range.md b/source/_posts/note/javascript/random/generate-a-random-integer-in-given-range.md
similarity index 100%
rename from note/javascript/random/generate-a-random-integer-in-given-range.md
rename to source/_posts/note/javascript/random/generate-a-random-integer-in-given-range.md
diff --git a/note/javascript/random/generate-a-random-ip-address.md b/source/_posts/note/javascript/random/generate-a-random-ip-address.md
similarity index 100%
rename from note/javascript/random/generate-a-random-ip-address.md
rename to source/_posts/note/javascript/random/generate-a-random-ip-address.md
diff --git a/note/javascript/random/generate-a-random-sign.md b/source/_posts/note/javascript/random/generate-a-random-sign.md
similarity index 100%
rename from note/javascript/random/generate-a-random-sign.md
rename to source/_posts/note/javascript/random/generate-a-random-sign.md
diff --git a/note/javascript/random/generate-a-random-string-from-given-characters.md b/source/_posts/note/javascript/random/generate-a-random-string-from-given-characters.md
similarity index 100%
rename from note/javascript/random/generate-a-random-string-from-given-characters.md
rename to source/_posts/note/javascript/random/generate-a-random-string-from-given-characters.md
diff --git a/note/javascript/random/generate-a-random-string-using-node-crypto-module.md b/source/_posts/note/javascript/random/generate-a-random-string-using-node-crypto-module.md
similarity index 100%
rename from note/javascript/random/generate-a-random-string-using-node-crypto-module.md
rename to source/_posts/note/javascript/random/generate-a-random-string-using-node-crypto-module.md
diff --git a/note/javascript/random/generate-a-random-string-with-given-length.md b/source/_posts/note/javascript/random/generate-a-random-string-with-given-length.md
similarity index 100%
rename from note/javascript/random/generate-a-random-string-with-given-length.md
rename to source/_posts/note/javascript/random/generate-a-random-string-with-given-length.md
diff --git a/note/javascript/random/generate-a-random-uuid.md b/source/_posts/note/javascript/random/generate-a-random-uuid.md
similarity index 100%
rename from note/javascript/random/generate-a-random-uuid.md
rename to source/_posts/note/javascript/random/generate-a-random-uuid.md
diff --git a/note/javascript/random/generate-an-array-of-random-integers-in-a-given-range.md b/source/_posts/note/javascript/random/generate-an-array-of-random-integers-in-a-given-range.md
similarity index 100%
rename from note/javascript/random/generate-an-array-of-random-integers-in-a-given-range.md
rename to source/_posts/note/javascript/random/generate-an-array-of-random-integers-in-a-given-range.md
diff --git a/note/javascript/random/get-a-random-item-and-remove-it-from-an-array.md b/source/_posts/note/javascript/random/get-a-random-item-and-remove-it-from-an-array.md
similarity index 100%
rename from note/javascript/random/get-a-random-item-and-remove-it-from-an-array.md
rename to source/_posts/note/javascript/random/get-a-random-item-and-remove-it-from-an-array.md
diff --git a/note/javascript/random/get-a-random-item-from-an-array.md b/source/_posts/note/javascript/random/get-a-random-item-from-an-array.md
similarity index 100%
rename from note/javascript/random/get-a-random-item-from-an-array.md
rename to source/_posts/note/javascript/random/get-a-random-item-from-an-array.md
diff --git a/note/javascript/random/get-random-items-of-an-array.md b/source/_posts/note/javascript/random/get-random-items-of-an-array.md
similarity index 100%
rename from note/javascript/random/get-random-items-of-an-array.md
rename to source/_posts/note/javascript/random/get-random-items-of-an-array.md
diff --git a/note/javascript/random/pick-a-random-property-of-an-object.md b/source/_posts/note/javascript/random/pick-a-random-property-of-an-object.md
similarity index 100%
rename from note/javascript/random/pick-a-random-property-of-an-object.md
rename to source/_posts/note/javascript/random/pick-a-random-property-of-an-object.md
diff --git a/note/javascript/random/pick-random-lines-from-a-text-document.md b/source/_posts/note/javascript/random/pick-random-lines-from-a-text-document.md
similarity index 100%
rename from note/javascript/random/pick-random-lines-from-a-text-document.md
rename to source/_posts/note/javascript/random/pick-random-lines-from-a-text-document.md
diff --git a/note/javascript/string/capitalize-a-string.md b/source/_posts/note/javascript/string/capitalize-a-string.md
similarity index 100%
rename from note/javascript/string/capitalize-a-string.md
rename to source/_posts/note/javascript/string/capitalize-a-string.md
diff --git a/note/javascript/string/check-if-a-path-is-relative.md b/source/_posts/note/javascript/string/check-if-a-path-is-relative.md
similarity index 100%
rename from note/javascript/string/check-if-a-path-is-relative.md
rename to source/_posts/note/javascript/string/check-if-a-path-is-relative.md
diff --git a/note/javascript/string/check-if-a-string-consists-of-a-repeated-character-sequence.md b/source/_posts/note/javascript/string/check-if-a-string-consists-of-a-repeated-character-sequence.md
similarity index 100%
rename from note/javascript/string/check-if-a-string-consists-of-a-repeated-character-sequence.md
rename to source/_posts/note/javascript/string/check-if-a-string-consists-of-a-repeated-character-sequence.md
diff --git a/note/javascript/string/check-if-a-string-is-a-palindrome.md b/source/_posts/note/javascript/string/check-if-a-string-is-a-palindrome.md
similarity index 100%
rename from note/javascript/string/check-if-a-string-is-a-palindrome.md
rename to source/_posts/note/javascript/string/check-if-a-string-is-a-palindrome.md
diff --git a/note/javascript/string/check-if-a-url-is-absolute.md b/source/_posts/note/javascript/string/check-if-a-url-is-absolute.md
similarity index 100%
rename from note/javascript/string/check-if-a-url-is-absolute.md
rename to source/_posts/note/javascript/string/check-if-a-url-is-absolute.md
diff --git a/note/javascript/string/check-if-two-strings-are-anagram.md b/source/_posts/note/javascript/string/check-if-two-strings-are-anagram.md
similarity index 100%
rename from note/javascript/string/check-if-two-strings-are-anagram.md
rename to source/_posts/note/javascript/string/check-if-two-strings-are-anagram.md
diff --git a/note/javascript/string/convert-a-letter-to-associate-emoji.md b/source/_posts/note/javascript/string/convert-a-letter-to-associate-emoji.md
similarity index 100%
rename from note/javascript/string/convert-a-letter-to-associate-emoji.md
rename to source/_posts/note/javascript/string/convert-a-letter-to-associate-emoji.md
diff --git a/note/javascript/string/convert-a-string-to-camel-case.md b/source/_posts/note/javascript/string/convert-a-string-to-camel-case.md
similarity index 100%
rename from note/javascript/string/convert-a-string-to-camel-case.md
rename to source/_posts/note/javascript/string/convert-a-string-to-camel-case.md
diff --git a/note/javascript/string/convert-a-string-to-pascal-case.md b/source/_posts/note/javascript/string/convert-a-string-to-pascal-case.md
similarity index 100%
rename from note/javascript/string/convert-a-string-to-pascal-case.md
rename to source/_posts/note/javascript/string/convert-a-string-to-pascal-case.md
diff --git a/note/javascript/string/convert-a-string-to-url-slug.md b/source/_posts/note/javascript/string/convert-a-string-to-url-slug.md
similarity index 100%
rename from note/javascript/string/convert-a-string-to-url-slug.md
rename to source/_posts/note/javascript/string/convert-a-string-to-url-slug.md
diff --git a/note/javascript/string/convert-a-windows-file-path-to-unix-path.md b/source/_posts/note/javascript/string/convert-a-windows-file-path-to-unix-path.md
similarity index 100%
rename from note/javascript/string/convert-a-windows-file-path-to-unix-path.md
rename to source/_posts/note/javascript/string/convert-a-windows-file-path-to-unix-path.md
diff --git a/note/javascript/string/convert-camel-case-to-kebab-case-and-vice-versa.md b/source/_posts/note/javascript/string/convert-camel-case-to-kebab-case-and-vice-versa.md
similarity index 100%
rename from note/javascript/string/convert-camel-case-to-kebab-case-and-vice-versa.md
rename to source/_posts/note/javascript/string/convert-camel-case-to-kebab-case-and-vice-versa.md
diff --git a/note/javascript/string/convert-snake-case-to-camel-case.md b/source/_posts/note/javascript/string/convert-snake-case-to-camel-case.md
similarity index 100%
rename from note/javascript/string/convert-snake-case-to-camel-case.md
rename to source/_posts/note/javascript/string/convert-snake-case-to-camel-case.md
diff --git a/note/javascript/string/convert-the-name-of-an-excel-column-to-number.md b/source/_posts/note/javascript/string/convert-the-name-of-an-excel-column-to-number.md
similarity index 100%
rename from note/javascript/string/convert-the-name-of-an-excel-column-to-number.md
rename to source/_posts/note/javascript/string/convert-the-name-of-an-excel-column-to-number.md
diff --git a/note/javascript/string/count-the-number-of-words-in-a-string.md b/source/_posts/note/javascript/string/count-the-number-of-words-in-a-string.md
similarity index 100%
rename from note/javascript/string/count-the-number-of-words-in-a-string.md
rename to source/_posts/note/javascript/string/count-the-number-of-words-in-a-string.md
diff --git a/note/javascript/string/count-the-occurrences-of-a-character-in-a-string.md b/source/_posts/note/javascript/string/count-the-occurrences-of-a-character-in-a-string.md
similarity index 100%
rename from note/javascript/string/count-the-occurrences-of-a-character-in-a-string.md
rename to source/_posts/note/javascript/string/count-the-occurrences-of-a-character-in-a-string.md
diff --git a/note/javascript/string/decapitalize-a-string.md b/source/_posts/note/javascript/string/decapitalize-a-string.md
similarity index 100%
rename from note/javascript/string/decapitalize-a-string.md
rename to source/_posts/note/javascript/string/decapitalize-a-string.md
diff --git a/note/javascript/string/escape-html-special-characters.md b/source/_posts/note/javascript/string/escape-html-special-characters.md
similarity index 100%
rename from note/javascript/string/escape-html-special-characters.md
rename to source/_posts/note/javascript/string/escape-html-special-characters.md
diff --git a/note/javascript/string/generate-a-hash-of-a-string.md b/source/_posts/note/javascript/string/generate-a-hash-of-a-string.md
similarity index 100%
rename from note/javascript/string/generate-a-hash-of-a-string.md
rename to source/_posts/note/javascript/string/generate-a-hash-of-a-string.md
diff --git a/note/javascript/string/get-the-base-url-without-any-parameters.md b/source/_posts/note/javascript/string/get-the-base-url-without-any-parameters.md
similarity index 100%
rename from note/javascript/string/get-the-base-url-without-any-parameters.md
rename to source/_posts/note/javascript/string/get-the-base-url-without-any-parameters.md
diff --git a/note/javascript/string/get-the-file-extension-from-a-file-name.md b/source/_posts/note/javascript/string/get-the-file-extension-from-a-file-name.md
similarity index 100%
rename from note/javascript/string/get-the-file-extension-from-a-file-name.md
rename to source/_posts/note/javascript/string/get-the-file-extension-from-a-file-name.md
diff --git a/note/javascript/string/get-the-file-name-from-a-url.md b/source/_posts/note/javascript/string/get-the-file-name-from-a-url.md
similarity index 100%
rename from note/javascript/string/get-the-file-name-from-a-url.md
rename to source/_posts/note/javascript/string/get-the-file-name-from-a-url.md
diff --git a/note/javascript/string/get-the-length-of-a-string-in-bytes.md b/source/_posts/note/javascript/string/get-the-length-of-a-string-in-bytes.md
similarity index 100%
rename from note/javascript/string/get-the-length-of-a-string-in-bytes.md
rename to source/_posts/note/javascript/string/get-the-length-of-a-string-in-bytes.md
diff --git a/note/javascript/string/get-the-number-of-a-character-in-a-string.md b/source/_posts/note/javascript/string/get-the-number-of-a-character-in-a-string.md
similarity index 100%
rename from note/javascript/string/get-the-number-of-a-character-in-a-string.md
rename to source/_posts/note/javascript/string/get-the-number-of-a-character-in-a-string.md
diff --git a/note/javascript/string/make-the-first-character-of-a-string-lowercase.md b/source/_posts/note/javascript/string/make-the-first-character-of-a-string-lowercase.md
similarity index 100%
rename from note/javascript/string/make-the-first-character-of-a-string-lowercase.md
rename to source/_posts/note/javascript/string/make-the-first-character-of-a-string-lowercase.md
diff --git a/note/javascript/string/normalize-file-path-slashes.md b/source/_posts/note/javascript/string/normalize-file-path-slashes.md
similarity index 100%
rename from note/javascript/string/normalize-file-path-slashes.md
rename to source/_posts/note/javascript/string/normalize-file-path-slashes.md
diff --git a/note/javascript/string/prepend-a-line-number-to-each-line-of-a-text-document.md b/source/_posts/note/javascript/string/prepend-a-line-number-to-each-line-of-a-text-document.md
similarity index 100%
rename from note/javascript/string/prepend-a-line-number-to-each-line-of-a-text-document.md
rename to source/_posts/note/javascript/string/prepend-a-line-number-to-each-line-of-a-text-document.md
diff --git a/note/javascript/string/remove-duplicate-lines-of-a-text-document.md b/source/_posts/note/javascript/string/remove-duplicate-lines-of-a-text-document.md
similarity index 100%
rename from note/javascript/string/remove-duplicate-lines-of-a-text-document.md
rename to source/_posts/note/javascript/string/remove-duplicate-lines-of-a-text-document.md
diff --git a/note/javascript/string/remove-empty-lines-of-a-text-document.md b/source/_posts/note/javascript/string/remove-empty-lines-of-a-text-document.md
similarity index 100%
rename from note/javascript/string/remove-empty-lines-of-a-text-document.md
rename to source/_posts/note/javascript/string/remove-empty-lines-of-a-text-document.md
diff --git a/note/javascript/string/remove-spaces-from-a-string.md b/source/_posts/note/javascript/string/remove-spaces-from-a-string.md
similarity index 100%
rename from note/javascript/string/remove-spaces-from-a-string.md
rename to source/_posts/note/javascript/string/remove-spaces-from-a-string.md
diff --git a/note/javascript/string/repeat-a-string.md b/source/_posts/note/javascript/string/repeat-a-string.md
similarity index 100%
rename from note/javascript/string/repeat-a-string.md
rename to source/_posts/note/javascript/string/repeat-a-string.md
diff --git a/note/javascript/string/replace-all-line-breaks-with-br-elements.md b/source/_posts/note/javascript/string/replace-all-line-breaks-with-br-elements.md
similarity index 100%
rename from note/javascript/string/replace-all-line-breaks-with-br-elements.md
rename to source/_posts/note/javascript/string/replace-all-line-breaks-with-br-elements.md
diff --git a/note/javascript/string/replace-all-tab-characters-with-spaces.md b/source/_posts/note/javascript/string/replace-all-tab-characters-with-spaces.md
similarity index 100%
rename from note/javascript/string/replace-all-tab-characters-with-spaces.md
rename to source/_posts/note/javascript/string/replace-all-tab-characters-with-spaces.md
diff --git a/note/javascript/string/replace-multiple-spaces-with-a-single-space.md b/source/_posts/note/javascript/string/replace-multiple-spaces-with-a-single-space.md
similarity index 100%
rename from note/javascript/string/replace-multiple-spaces-with-a-single-space.md
rename to source/_posts/note/javascript/string/replace-multiple-spaces-with-a-single-space.md
diff --git a/note/javascript/string/replace-the-first-given-number-of-characters-of-a-string-with-another-character.md b/source/_posts/note/javascript/string/replace-the-first-given-number-of-characters-of-a-string-with-another-character.md
similarity index 100%
rename from note/javascript/string/replace-the-first-given-number-of-characters-of-a-string-with-another-character.md
rename to source/_posts/note/javascript/string/replace-the-first-given-number-of-characters-of-a-string-with-another-character.md
diff --git a/note/javascript/string/reverse-a-string.md b/source/_posts/note/javascript/string/reverse-a-string.md
similarity index 100%
rename from note/javascript/string/reverse-a-string.md
rename to source/_posts/note/javascript/string/reverse-a-string.md
diff --git a/note/javascript/string/reverse-the-order-of-lines-of-a-text.md b/source/_posts/note/javascript/string/reverse-the-order-of-lines-of-a-text.md
similarity index 100%
rename from note/javascript/string/reverse-the-order-of-lines-of-a-text.md
rename to source/_posts/note/javascript/string/reverse-the-order-of-lines-of-a-text.md
diff --git a/note/javascript/string/sort-lines-of-a-text-document-in-the-alphabetical-order.md b/source/_posts/note/javascript/string/sort-lines-of-a-text-document-in-the-alphabetical-order.md
similarity index 100%
rename from note/javascript/string/sort-lines-of-a-text-document-in-the-alphabetical-order.md
rename to source/_posts/note/javascript/string/sort-lines-of-a-text-document-in-the-alphabetical-order.md
diff --git a/note/javascript/string/sort-the-characters-of-a-string-in-the-alphabetical-order.md b/source/_posts/note/javascript/string/sort-the-characters-of-a-string-in-the-alphabetical-order.md
similarity index 100%
rename from note/javascript/string/sort-the-characters-of-a-string-in-the-alphabetical-order.md
rename to source/_posts/note/javascript/string/sort-the-characters-of-a-string-in-the-alphabetical-order.md
diff --git a/note/javascript/string/strip-ansi-codes-from-a-string.md b/source/_posts/note/javascript/string/strip-ansi-codes-from-a-string.md
similarity index 100%
rename from note/javascript/string/strip-ansi-codes-from-a-string.md
rename to source/_posts/note/javascript/string/strip-ansi-codes-from-a-string.md
diff --git a/note/javascript/string/swap-case-of-characters-in-a-string.md b/source/_posts/note/javascript/string/swap-case-of-characters-in-a-string.md
similarity index 100%
rename from note/javascript/string/swap-case-of-characters-in-a-string.md
rename to source/_posts/note/javascript/string/swap-case-of-characters-in-a-string.md
diff --git a/note/javascript/string/trim-slashes-at-the-beginning-and-the-end-of-a-string.md b/source/_posts/note/javascript/string/trim-slashes-at-the-beginning-and-the-end-of-a-string.md
similarity index 100%
rename from note/javascript/string/trim-slashes-at-the-beginning-and-the-end-of-a-string.md
rename to source/_posts/note/javascript/string/trim-slashes-at-the-beginning-and-the-end-of-a-string.md
diff --git a/note/javascript/string/trim-some-character.md b/source/_posts/note/javascript/string/trim-some-character.md
similarity index 100%
rename from note/javascript/string/trim-some-character.md
rename to source/_posts/note/javascript/string/trim-some-character.md
diff --git a/note/javascript/string/trim-the-file-extension-from-a-file-name.md b/source/_posts/note/javascript/string/trim-the-file-extension-from-a-file-name.md
similarity index 100%
rename from note/javascript/string/trim-the-file-extension-from-a-file-name.md
rename to source/_posts/note/javascript/string/trim-the-file-extension-from-a-file-name.md
diff --git a/note/javascript/string/truncate-a-string-at-full-words.md b/source/_posts/note/javascript/string/truncate-a-string-at-full-words.md
similarity index 100%
rename from note/javascript/string/truncate-a-string-at-full-words.md
rename to source/_posts/note/javascript/string/truncate-a-string-at-full-words.md
diff --git a/note/javascript/string/unescape-html-special-characters.md b/source/_posts/note/javascript/string/unescape-html-special-characters.md
similarity index 100%
rename from note/javascript/string/unescape-html-special-characters.md
rename to source/_posts/note/javascript/string/unescape-html-special-characters.md
diff --git a/note/javascript/string/uppercase-the-first-character-of-each-word-in-a-string.md b/source/_posts/note/javascript/string/uppercase-the-first-character-of-each-word-in-a-string.md
similarity index 100%
rename from note/javascript/string/uppercase-the-first-character-of-each-word-in-a-string.md
rename to source/_posts/note/javascript/string/uppercase-the-first-character-of-each-word-in-a-string.md
diff --git a/note/javascript/validator/check-if-a-date-is-a-weekday.md b/source/_posts/note/javascript/validator/check-if-a-date-is-a-weekday.md
similarity index 100%
rename from note/javascript/validator/check-if-a-date-is-a-weekday.md
rename to source/_posts/note/javascript/validator/check-if-a-date-is-a-weekday.md
diff --git a/note/javascript/validator/check-if-a-date-is-a-weekend.md b/source/_posts/note/javascript/validator/check-if-a-date-is-a-weekend.md
similarity index 100%
rename from note/javascript/validator/check-if-a-date-is-a-weekend.md
rename to source/_posts/note/javascript/validator/check-if-a-date-is-a-weekend.md
diff --git a/note/javascript/validator/check-if-a-date-is-between-two-dates.md b/source/_posts/note/javascript/validator/check-if-a-date-is-between-two-dates.md
similarity index 100%
rename from note/javascript/validator/check-if-a-date-is-between-two-dates.md
rename to source/_posts/note/javascript/validator/check-if-a-date-is-between-two-dates.md
diff --git a/note/javascript/validator/check-if-a-date-is-today.md b/source/_posts/note/javascript/validator/check-if-a-date-is-today.md
similarity index 100%
rename from note/javascript/validator/check-if-a-date-is-today.md
rename to source/_posts/note/javascript/validator/check-if-a-date-is-today.md
diff --git a/note/javascript/validator/check-if-a-date-occurs-in-the-current-year.md b/source/_posts/note/javascript/validator/check-if-a-date-occurs-in-the-current-year.md
similarity index 100%
rename from note/javascript/validator/check-if-a-date-occurs-in-the-current-year.md
rename to source/_posts/note/javascript/validator/check-if-a-date-occurs-in-the-current-year.md
diff --git a/note/javascript/validator/check-if-a-flat-array-has-duplicate-values.md b/source/_posts/note/javascript/validator/check-if-a-flat-array-has-duplicate-values.md
similarity index 100%
rename from note/javascript/validator/check-if-a-flat-array-has-duplicate-values.md
rename to source/_posts/note/javascript/validator/check-if-a-flat-array-has-duplicate-values.md
diff --git a/note/javascript/validator/check-if-a-given-integer-is-a-prime-number.md b/source/_posts/note/javascript/validator/check-if-a-given-integer-is-a-prime-number.md
similarity index 100%
rename from note/javascript/validator/check-if-a-given-integer-is-a-prime-number.md
rename to source/_posts/note/javascript/validator/check-if-a-given-integer-is-a-prime-number.md
diff --git a/note/javascript/validator/check-if-a-number-is-a-power-of-2.md b/source/_posts/note/javascript/validator/check-if-a-number-is-a-power-of-2.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-a-power-of-2.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-a-power-of-2.md
diff --git a/note/javascript/validator/check-if-a-number-is-even.md b/source/_posts/note/javascript/validator/check-if-a-number-is-even.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-even.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-even.md
diff --git a/note/javascript/validator/check-if-a-number-is-in-a-given-range.md b/source/_posts/note/javascript/validator/check-if-a-number-is-in-a-given-range.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-in-a-given-range.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-in-a-given-range.md
diff --git a/note/javascript/validator/check-if-a-number-is-negative.md b/source/_posts/note/javascript/validator/check-if-a-number-is-negative.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-negative.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-negative.md
diff --git a/note/javascript/validator/check-if-a-number-is-odd.md b/source/_posts/note/javascript/validator/check-if-a-number-is-odd.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-odd.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-odd.md
diff --git a/note/javascript/validator/check-if-a-number-is-positive.md b/source/_posts/note/javascript/validator/check-if-a-number-is-positive.md
similarity index 100%
rename from note/javascript/validator/check-if-a-number-is-positive.md
rename to source/_posts/note/javascript/validator/check-if-a-number-is-positive.md
diff --git a/note/javascript/validator/check-if-a-string-contains-lower-case-characters.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-lower-case-characters.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-lower-case-characters.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-lower-case-characters.md
diff --git a/note/javascript/validator/check-if-a-string-contains-only-ascii-characters.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-only-ascii-characters.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-only-ascii-characters.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-only-ascii-characters.md
diff --git a/note/javascript/validator/check-if-a-string-contains-only-digits.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-only-digits.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-only-digits.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-only-digits.md
diff --git a/note/javascript/validator/check-if-a-string-contains-only-letters-and-numbers.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-only-letters-and-numbers.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-only-letters-and-numbers.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-only-letters-and-numbers.md
diff --git a/note/javascript/validator/check-if-a-string-contains-only-letters.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-only-letters.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-only-letters.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-only-letters.md
diff --git a/note/javascript/validator/check-if-a-string-contains-upper-case-characters.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-upper-case-characters.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-upper-case-characters.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-upper-case-characters.md
diff --git a/note/javascript/validator/check-if-a-string-contains-whitespace.md b/source/_posts/note/javascript/validator/check-if-a-string-contains-whitespace.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-contains-whitespace.md
rename to source/_posts/note/javascript/validator/check-if-a-string-contains-whitespace.md
diff --git a/note/javascript/validator/check-if-a-string-is-a-hexadecimal-color.md b/source/_posts/note/javascript/validator/check-if-a-string-is-a-hexadecimal-color.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-a-hexadecimal-color.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-a-hexadecimal-color.md
diff --git a/note/javascript/validator/check-if-a-string-is-a-hexadecimal-number.md b/source/_posts/note/javascript/validator/check-if-a-string-is-a-hexadecimal-number.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-a-hexadecimal-number.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-a-hexadecimal-number.md
diff --git a/note/javascript/validator/check-if-a-string-is-a-mongo-db-object-id.md b/source/_posts/note/javascript/validator/check-if-a-string-is-a-mongo-db-object-id.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-a-mongo-db-object-id.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-a-mongo-db-object-id.md
diff --git a/note/javascript/validator/check-if-a-string-is-an-octal-number.md b/source/_posts/note/javascript/validator/check-if-a-string-is-an-octal-number.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-an-octal-number.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-an-octal-number.md
diff --git a/note/javascript/validator/check-if-a-string-is-lower-case.md b/source/_posts/note/javascript/validator/check-if-a-string-is-lower-case.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-lower-case.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-lower-case.md
diff --git a/note/javascript/validator/check-if-a-string-is-upper-case.md b/source/_posts/note/javascript/validator/check-if-a-string-is-upper-case.md
similarity index 100%
rename from note/javascript/validator/check-if-a-string-is-upper-case.md
rename to source/_posts/note/javascript/validator/check-if-a-string-is-upper-case.md
diff --git a/note/javascript/validator/check-if-a-value-is-a-business-identifier-code.md b/source/_posts/note/javascript/validator/check-if-a-value-is-a-business-identifier-code.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-a-business-identifier-code.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-a-business-identifier-code.md
diff --git a/note/javascript/validator/check-if-a-value-is-a-number.md b/source/_posts/note/javascript/validator/check-if-a-value-is-a-number.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-a-number.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-a-number.md
diff --git a/note/javascript/validator/check-if-a-value-is-a-plain-object.md b/source/_posts/note/javascript/validator/check-if-a-value-is-a-plain-object.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-a-plain-object.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-a-plain-object.md
diff --git a/note/javascript/validator/check-if-a-value-is-a-regular-expression.md b/source/_posts/note/javascript/validator/check-if-a-value-is-a-regular-expression.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-a-regular-expression.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-a-regular-expression.md
diff --git a/note/javascript/validator/check-if-a-value-is-a-string.md b/source/_posts/note/javascript/validator/check-if-a-value-is-a-string.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-a-string.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-a-string.md
diff --git a/note/javascript/validator/check-if-a-value-is-an-object.md b/source/_posts/note/javascript/validator/check-if-a-value-is-an-object.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-an-object.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-an-object.md
diff --git a/note/javascript/validator/check-if-a-value-is-base32-encoded.md b/source/_posts/note/javascript/validator/check-if-a-value-is-base32-encoded.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-base32-encoded.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-base32-encoded.md
diff --git a/note/javascript/validator/check-if-a-value-is-base58-encoded.md b/source/_posts/note/javascript/validator/check-if-a-value-is-base58-encoded.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-base58-encoded.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-base58-encoded.md
diff --git a/note/javascript/validator/check-if-a-value-is-base64-encoded.md b/source/_posts/note/javascript/validator/check-if-a-value-is-base64-encoded.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-base64-encoded.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-base64-encoded.md
diff --git a/note/javascript/validator/check-if-a-value-is-nil.md b/source/_posts/note/javascript/validator/check-if-a-value-is-nil.md
similarity index 100%
rename from note/javascript/validator/check-if-a-value-is-nil.md
rename to source/_posts/note/javascript/validator/check-if-a-value-is-nil.md
diff --git a/note/javascript/validator/check-if-a-year-is-leap-year.md b/source/_posts/note/javascript/validator/check-if-a-year-is-leap-year.md
similarity index 100%
rename from note/javascript/validator/check-if-a-year-is-leap-year.md
rename to source/_posts/note/javascript/validator/check-if-a-year-is-leap-year.md
diff --git a/note/javascript/validator/check-if-all-array-elements-are-equal-to-a-given-value.md b/source/_posts/note/javascript/validator/check-if-all-array-elements-are-equal-to-a-given-value.md
similarity index 100%
rename from note/javascript/validator/check-if-all-array-elements-are-equal-to-a-given-value.md
rename to source/_posts/note/javascript/validator/check-if-all-array-elements-are-equal-to-a-given-value.md
diff --git a/note/javascript/validator/check-if-all-items-in-an-array-are-equal.md b/source/_posts/note/javascript/validator/check-if-all-items-in-an-array-are-equal.md
similarity index 100%
rename from note/javascript/validator/check-if-all-items-in-an-array-are-equal.md
rename to source/_posts/note/javascript/validator/check-if-all-items-in-an-array-are-equal.md
diff --git a/note/javascript/validator/check-if-an-array-contains-a-value-matching-some-criterias.md b/source/_posts/note/javascript/validator/check-if-an-array-contains-a-value-matching-some-criterias.md
similarity index 100%
rename from note/javascript/validator/check-if-an-array-contains-a-value-matching-some-criterias.md
rename to source/_posts/note/javascript/validator/check-if-an-array-contains-a-value-matching-some-criterias.md
diff --git a/note/javascript/validator/check-if-an-array-is-not-empty.md b/source/_posts/note/javascript/validator/check-if-an-array-is-not-empty.md
similarity index 100%
rename from note/javascript/validator/check-if-an-array-is-not-empty.md
rename to source/_posts/note/javascript/validator/check-if-an-array-is-not-empty.md
diff --git a/note/javascript/validator/check-if-an-array-is-subset-of-other-array.md b/source/_posts/note/javascript/validator/check-if-an-array-is-subset-of-other-array.md
similarity index 100%
rename from note/javascript/validator/check-if-an-array-is-subset-of-other-array.md
rename to source/_posts/note/javascript/validator/check-if-an-array-is-subset-of-other-array.md
diff --git a/note/javascript/validator/check-if-an-object-is-a-promise.md b/source/_posts/note/javascript/validator/check-if-an-object-is-a-promise.md
similarity index 100%
rename from note/javascript/validator/check-if-an-object-is-a-promise.md
rename to source/_posts/note/javascript/validator/check-if-an-object-is-a-promise.md
diff --git a/note/javascript/validator/check-if-an-object-is-an-array.md b/source/_posts/note/javascript/validator/check-if-an-object-is-an-array.md
similarity index 100%
rename from note/javascript/validator/check-if-an-object-is-an-array.md
rename to source/_posts/note/javascript/validator/check-if-an-object-is-an-array.md
diff --git a/note/javascript/validator/check-if-an-object-is-empty.md b/source/_posts/note/javascript/validator/check-if-an-object-is-empty.md
similarity index 100%
rename from note/javascript/validator/check-if-an-object-is-empty.md
rename to source/_posts/note/javascript/validator/check-if-an-object-is-empty.md
diff --git a/note/javascript/validator/validate-a-gregorian-date.md b/source/_posts/note/javascript/validator/validate-a-gregorian-date.md
similarity index 100%
rename from note/javascript/validator/validate-a-gregorian-date.md
rename to source/_posts/note/javascript/validator/validate-a-gregorian-date.md
diff --git a/numpy.md b/source/_posts/numpy.md
similarity index 100%
rename from numpy.md
rename to source/_posts/numpy.md
diff --git a/php.md b/source/_posts/php.md
similarity index 100%
rename from php.md
rename to source/_posts/php.md
diff --git a/postgres.md b/source/_posts/postgres.md
similarity index 100%
rename from postgres.md
rename to source/_posts/postgres.md
diff --git a/python.md b/source/_posts/python.md
similarity index 100%
rename from python.md
rename to source/_posts/python.md
diff --git a/quickref.md b/source/_posts/quickref.md
similarity index 100%
rename from quickref.md
rename to source/_posts/quickref.md
diff --git a/redis.md b/source/_posts/redis.md
similarity index 100%
rename from redis.md
rename to source/_posts/redis.md
diff --git a/regex.md b/source/_posts/regex.md
similarity index 100%
rename from regex.md
rename to source/_posts/regex.md
diff --git a/resolutions.md b/source/_posts/resolutions.md
similarity index 100%
rename from resolutions.md
rename to source/_posts/resolutions.md
diff --git a/rust.md b/source/_posts/rust.md
similarity index 94%
rename from rust.md
rename to source/_posts/rust.md
index a1c6ba1..7975836 100644
--- a/rust.md
+++ b/source/_posts/rust.md
@@ -1,821 +1,821 @@
----
-title: Rust
-date: 2022-01-01 11:51:44
-icon: icon-rust
-background: bg-black
-tags:
-categories:
- - Programming
-intro: |
- The Rust quick reference cheat sheet that aims at providing help on writing basic syntax and methods.
----
-
-
-Getting Started {.cols-3}
----------------
-
-### Hello_World.rs
-
-```rust
-fn main() {
- println!("Hello, World!");
-}
-```
-#### Compiling and Running
-```shell
-$ rustc Hello_World.rs
-$ ./Hello_World
-Hello, World!
-```
-
-### Primitive types
-
-| | |
-|---------------------------|----------------------------------|
-| `bool` | Boolean (`true` _/_ `false`) |
-| `char` | character |
-| `f32`, `f64` | 32-bits, 64-bits floats |
-| `i64`, `i32`, `i16`, `i8` | signed 16- ... integers |
-| `u64`, `u32`, `u16`, `u8` | unsigned 16-bits, ... integers |
-| `isize` | pointer-sized signed integers |
-| `usize` | pointer-sized unsigned integers |
-
-See: [Rust Types](#rust-types)
-
-
-### Formatting {.row-span-2}
-
-```rust {.wrap}
-// Single Placeholder
-println!("{}", 1);
-
-// Multiple Placeholder
-println!("{} {}", 1, 3);
-
-// Positional Arguments
-println!("{0} is {1} {2}, also {0} is a {3} programming language", "Rust", "cool", "language", "safe");
-
-// Named Arguments
-println!("{country} is a diverse nation with unity.", country = "India");
-
-// Placeholder traits :b for binary, :0x is for hex and :o is octal
-println!("Let us print 76 is binary which is {:b} , and hex equivalent is {:0x} and octal equivalent is {:o}", 76, 76, 76);
-
-// Debug Trait
-println!("Print whatever we want to here using debug trait {:?}", (76, 'A', 90));
-
-// New Format Strings in 1.58
-let x = "world";
-println!("Hello {x}!");
-```
-
-
-### Printing Styles
-
-```rust
-// Prints the output
-print!("Hello World\n");
-
-// Appends a new line after printing
-println!("Appending a new line");
-
-// Prints as an error
-eprint!("This is an error\n");
-
-// Prints as an error with new line
-eprintln!("This is an error with new line");
-```
-
-
-### Variables
-
-```rust
-// Initializing and declaring a variable
-let some_variable = "This_is_a_variable";
-
-// Making a variable mutable
-let mut mutable_variable = "Mutable";
-
-// Assigning multiple variables
-let (name, age) = ("ElementalX", 20);
-
-// (Global) constant
-const SCREAMING_SNAKE_CASE:i64 = 9;
-```
-
-
-
-### Comments
-
-```rust
-// Line Comments
-/*.............Block Comments */
-/// Outer doc comments
-//! Inner doc comments
-```
-See: [Comment](https://doc.rust-lang.org/reference/comments.html)
-
-
-
-### Functions
-
-```rust
-fn test(){
- println!("This is a function!");
-}
-
-fn main(){
- test();
-}
-```
-See: [Functions](#rust-functions)
-
-
-
-
-Rust Types {.cols-3}
---------------
-
-
-### Integer
-
-```rust
-let mut a: u32 = 8;
-let b: u64 = 877;
-let c: i64 = 8999;
-let d = -90;
-```
-
-
-### Floating-Point
-
-```rust
-let mut sixty_bit_float: f64 = 89.90;
-let thirty_two_bit_float: f32 = 7.90;
-let just_a_float = 69.69;
-```
-
-
-### Boolean
-
-```rust {.wrap}
-let true_val: bool = true;
-let false_val: bool = false;
-let just_a_bool = true;
-let is_true = 8 < 5; // => false
-```
-
-
-### Character
-
-```rust
-let first_letter_of_alphabet = 'a';
-let explicit_char: char = 'F';
-let implicit_char = '8';
-let emoji = "\u{1f600}"; // => 😀
-```
-
-
-### String Literal
-
-```rust {.wrap}
-let community_name = "AXIAL";
-let no_of_members: &str = "ten";
-
-println!("The name of the community is {community_name} and it has {no_of_members} members");
-```
-See: [Strings](#rust-strings)
-
-
-### Arrays
-
-```rust
-┌─────┬─────┬─────┬─────┬─────┬─────┐
-| 92 | 97 | 98 | 99 | 98 | 94 |
-└─────┴─────┴─────┴─────┴─────┴─────┘
- 0 1 2 3 4 5
-```
-----
-
-```rust
-let array: [i64; 6] = [92,97,98,99,98,94];
-```
-
-
-
-### Multi-Dimensional Array {.row-span-2}
-
-```rust
- j0 j1 j2 j3 j4 j5
- ┌────┬────┬────┬────┬────┬────┐
-i0 | 1 | 2 | 3 | 4 | 5 | 6 |
- ├────┼────┼────┼────┼────┼────┤
-i1 | 6 | 5 | 4 | 3 | 2 | 1 |
- └────┴────┴────┴────┴────┴────┘
-```
-----
-
-```rust
-let array: [[i64; 6] ;2] = [
- [1,2,3,4,5,6],
- [6,5,4,3,2,1]];
-```
-
-### Mutable Array
-
-```rust
-let mut array: [i32 ; 3] = [2,6,10];
-
-array[1] = 4;
-array[2] = 6;
-```
-Use the `mut` keyword to make it mutable.
-
-
-
-### Slices
-
-```rust
-let mut array: [ i64; 4] = [1,2,3,4];
-let mut slices: &[i64] = &array[0..3] // Lower range is inclusive and upper range is exclusive
-
-println!("The elements of the slices are : {slices:?}");
-```
-
-
-### Vectors
-
-```rust
-let some_vector = vec![1,2,3,4,5];
-```
-A vector is declared using the `vec!` macro.
-
-
-### Tuples
-
-```rust
-let tuple = (1, 'A' , "Cool", 78, true);
-```
-
-
-
-Rust Strings {.cols-3}
---------------
-
-### String Literal
-
-```rust
-let cs:&str = "cheat sheet";
-
-// => Share cheat sheet for developers
-println!("Share {cs} for developers");
-```
-
-
-### String Object
-
-```rust
-// Creating an empty string object
-let my_string = String::new;
-
-// Converting to a string object
-let S_string = a_string.to_string()
-
-// Creating an initialized string object
-let lang = String::from("Rust");
-println!("First language is {lang}");
- ```
-
-### .capacity()
-
- ```rust
-let rand = String::from("Random String");
-rand.capacity() // => 13
-```
-Calculates the capacity of the string in bytes.
-
-
-### .contains()
-
-```rust
-let name = String::from("ElementalX");
-name.contains("Element") // => true
-```
-Checks if the substring is contained inside the original string or not.
-
-
-### Pushing a single character
-
-```rust
-let mut half_text = String::from("Hal");
-half_text.push('f'); // => Half
-```
-
-
-### Pushing an entire String
-
-```rust
-let mut hi = String::from("Hey there...");
-hi.push_str("How are you doing??");
-
-// => Hey there...How are you doing??
-println!("{hi}");
-```
-
-
-
-Rust Operators {.cols-3}
------------
-
-
-### Comparison Operators
-
-| | |
-|----------|----------------------------------|
-| `e == f` | `e` is equal to `f` |
-| `e != f` | `e` is NOT equal to `f` |
-| `e < f` | `e` is less than `f` |
-| `e > f` | `e` is greater `f` |
-| `e <= f` | `e` is less than or equal to `f` |
-| `e >= f` | `e` is greater or equal to `f` |
-
----------
-
-```rust
-let (e, f) = (1, 100);
-
-let greater = f > e; // => true
-let less = f < e; // => false
-let greater_equal = f >= e; // => true
-let less_equal = e <= f; // => true
-let equal_to = e == f; // => false
-let not_equal_to = e != f; // => true
-```
-
-
-### Arithmetic Operators
-
-| | |
-|----------|--------------------------------------------|
-| `a + b` | `a` is added to `b` |
-| `a - b` | `b` is subtracted from `a` |
-| `a / b` | `a` is divided by `b` |
-| `a % b` | Gets remainder of `a` by dividing with `b` |
-| `a * b` | `a` is multiplied with `b` |
-
-------
-
-```rust {.wrap}
-let (a, b) = (4, 5);
-
-let sum: i32 = a + b; // => 9
-let subtractions: i32 = a - b; // => -1
-let multiplication: i32 = a * b; // => 20
-let division: i32 = a / b; // => 0
-let modulus: i32 = a % b; // => 4
-```
-
-
-
-
-### Bitwise Operators
-
-| Operator | Description |
-|----------|-------------------------|
-| `g & h` | Binary AND |
-| `g | h` | Binary OR |
-| `g ^ h` | Binary XOR |
-| `g ~ h` | Binary one's complement |
-| `g << h` | Binary shift left |
-| `g >> h` | Binary shift right |
-
------
-
-```rust {.wrap}
-let (g, h) = (0x1, 0x2);
-
-let bitwise_and = g & h; // => 0
-let bitwise_or = g | h; // => 3
-let bitwise_xor = g ^ h; // => 3
-let right_shift = g >> 2; // => 0
-let left_shift = h << 4; // => 32
-```
-
-
-
-### Logical Operators
-
-| Example | Meaning |
-|----------------|------------------------|
-| `c && d` | Both are true _(AND)_ |
-| `c || d` | Either is true _(OR)_ |
-| `!c` | `c` is false _(NOT)_ |
-
-------
-
-```rust
-let (c, d) = (true, false);
-
-let and = c && d; // => false
-let or = c || d; // => true
-let not = !c; // => false
-```
-
-
-### Compound Assignment Operator
-
-```rust
-let mut k = 9;
-let mut l = k;
-```
-
-----
-
-| Operator | Description |
-|-----------|-----------------------------------------|
-| `k += l` | Add a value and assign, then k=9 |
-| `k -= l` | Substrate a value and assign, then k=18 |
-| `k /= l` | Divide a value and assign, then k=9 |
-| `k *= l` | Multiply a value and assign, then k=81 |
-| `k |= l` | Bitwise OR and assign, then k=89 |
-
-
-
-
-
-Rust Flow Control {.cols-3}
---------------
-
-### If Expression
-
-```rust
-let case1: i32 = 81;
-let case2: i32 = 82;
-
-if case1 < case2 {
- println!("case1 is greater than case2");
-}
-```
-
-### If...Else Expression
-
-```rust
-let case3 = 8;
-let case4 = 9;
-
-if case3 >= case4 {
- println!("case3 is better than case4");
-} else {
- println!("case4 is greater than case3");
-}
-```
-
-
-
-### If...Else...if...Else Expression
-
-```rust
-let foo = 12;
-let bar = 13;
-
-if foo == bar {
- println!("foo is equal to bar");
-} else if foo < bar {
- println!("foo less than bar");
-} else if foo != bar {
- println!("foo is not equal to bar");
-} else {
- println!("Nothing");
-}
-```
-
-
-### If...Let Expression {.row-span-3}
-
-```rust
-let mut arr1:[i64 ; 3] = [1,2,3];
-if let[1,2,_] = arr1{
- println!("Works with array");
-}
-
-let mut arr2:[&str; 2] = ["one", "two"];
-if let["Apple", _] = arr2{
- println!("Works with str array too");
-}
-```
-----
-```rust
-let tuple_1 = ("India", 7, 90, 90.432);
-if let(_, 7, 9, 78.99) = tuple_1{
- println!("Works with tuples too");
-}
-
-let tuple_2 = ( 9, 7, 89, 12, "Okay");
-if let(9, 7,89, 12, blank) = tuple_2 {
- println!("Everything {blank} mate?");
-}
-
-let tuple_3 = (89, 90, "Yes");
-if let(9, 89, "Yes") = tuple_3{
- println!("Pattern did match");
-}
-else {
- println!("Pattern did not match");
-}
-```
-
-### Match Expression {.row-span-3}
-
-```rust
-let day_of_week = 2;
- match day_of_week {
- 1 => {
- println!("Its Monday my dudes");
- },
- 2 => {
- println!("It's Tuesday my dudes");
- },
- 3 => {
- println!("It's Wednesday my dudes");
- },
- 4 => {
- println!("It's Thursday my dudes");
- },
- 5 => {
- println!("It's Friday my dudes");
- },
- 6 => {
- println!("It's Saturday my dudes");
- },
- 7 => {
- println!("It's Sunday my dudes");
- },
- _ => {
- println!("Default!")
- }
- };
-}
-```
-
-
-### Nested...If Expression
-
-```rust
-let nested_conditions = 89;
-if nested_conditions == 89 {
- let just_a_value = 98;
- if just_a_value >= 97 {
- println!("Greater than 97");
- }
-}
-```
-
-
-### For Loop
-
-```rust
-for mut i in 0..15 {
- i-=1;
- println!("The value of i is : {i}");
-}
-```
-
-
-
-### While Loop
-
-```rust
-let mut check = 0;
-while check < 11{
- println!("Check is : {check}");
- check+=1;
- println!("After incrementing: {check}");
-
- if check == 10{
- break; // stop while
- }
-}
-```
-
-
-### Loop keyword
-
-```rust
-loop {
- println!("hello world forever!");
-}
-```
-The infinite loop indicated.
-
-### Break Statement
-
-```rust
-let mut i = 1;
-loop {
- println!("i is {i}");
- if i > 100 {
- break;
- }
- i *= 2;
-}
-```
-
-
-### Continue Statement
-
-```rust
-for (v, c) in (0..10+1).enumerate(){
- println!("The {c} number loop");
- if v == 9{
- println!("Here we go continue?");
- continue;
- }
- println!{"The value of v is : {v}"};
-}
-```
-
-
-
-Rust Functions {.cols-3}
---------------
-
-
-### Basic function
-
-```rust
-
-fn print_message(){
- println!("Hello, QuickRef.ME!");
-}
-
-fn main(){
- //Invoking a function in Rust.
- print_message();
-}
-```
-
-### Pass by Value
-
-```rust
-fn main()
-{
- let x:u32 = 10;
- let y:u32 = 20;
-
- // => 200
- println!("Calc: {}", cal_rect(x, y));
-}
-fn cal_rect(x:u32, y:u32) -> u32
-{
- x * y
-}
-```
-
-### Pass by Reference
-
-```rust
-fn main(){
- let mut by_ref = 3; // => 3
- power_of_three(&mut by_ref);
- println!("{by_ref}"); // => 9
-}
-
-fn power_of_three(by_ref: &mut i32){
- // de-referencing is important
- *by_ref = *by_ref * *by_ref;
- println!("{by_ref}"); // => 9
-}
-```
-
-
-
-### Returns
-
-```rust {.wrap}
-fn main(){
- let (mut radius, mut pi) = (3.0, 3.14);
- let(area, _perimeter) = calculate (
- &mut radius,
- &mut pi
- );
- println!("The area and the perimeter of the circle are: {area} & {_perimeter}");
-}
-
-fn calculate(radius : &mut f64, pi: &mut f64) -> (f64, f64){
- let perimeter = 2.0 * *pi * *radius;
- let area = *pi * *radius * *radius;
- return (area, perimeter);
-}
-```
-
-### Arrays as Arguments
-
-```rust
-fn main(){
- let mut array: [i32 ; 5] = [1,2,3,4,6];
- print_arrays(array);
- println!("The elements: {array:?}");
-}
-
-fn print_arrays(mut array:[i32; 5]) {
- array[0] = 89;
- array[1] = 90;
- array[2] = 91;
- array[3] = 92;
- array[4] = 93;
- println!("The elements: {array:?}");
-}
-```
-
-### Returning Arrays
-
-```rust
-
-fn main(){
- let mut arr:[i32; 5] = [2,4,6,8,10];
- multiply(arr);
- println!("The array is : {:?}", multiply(arr));
-}
-
-fn multiply (mut arr: [i32 ; 5]) -> [i32 ; 5]{
- arr[2] = 90;
- for mut i in 0..5 {
- arr[i] = arr[i] * arr[2];
- }
- return arr;
-}
-```
-
-
-
-
-Misc {.cols-3}
---------------
-
-
-### Type Casting
-
-```rust
-let a_int = 90; // int
-// int to float
-let mut type_cast = (a_int as f64);
-```
-------
-```rust
-let orginal: char = 'I';
-// char to int => 73
-let type_casted: i64 = orginal as i64;
-```
-
-To perform type-casting in Rust one must use the `as` keyword.
-
-
-
-
-### Borrowing
-
-```rust
-let mut foo = 4;
-let mut borrowed_foo = &foo;
-println!("{borrowed_foo}");
-```
-------
-```rust
-let mut bar = 3;
-let mut mutable_borrowed_bar = &mut bar;
-println!("{mutable_borrowed_bar}");
-```
-
-Here borrowed value borrows the value from value one using `&` operator.
-
-
-
-### De-referencing
-
-```rust
-let mut borrow = 10;
-let deref = &mut borrow;
-
-println!("{}", *deref);
-```
-
-De-referencing in rust can be done using the `*` operator
-
-
-### Variable Scope
-```rust
-{
- // The scope limited to this braces
- let a_number = 1;
-}
-println!("{a_number}");
-```
-This will produce error as the scope of the variable `a_number` ends at the braces
-
-
-Also see
---------
-
-- [The Rust Document](https://doc.rust-lang.org/book/ch00-00-introduction.html) _(doc.rust-lang.org)_
-- [The Rust Reference](https://doc.rust-lang.org/reference/introduction.html) _(doc.rust-lang.org)_
-- [Rust Cheatsheet](https://phaiax.github.io/rust-cheatsheet/) _(phaiax.github.io)_
+---
+title: Rust
+date: 2022-01-01 11:51:44
+icon: icon-rust
+background: bg-black
+tags:
+categories:
+ - Programming
+intro: |
+ The Rust quick reference cheat sheet that aims at providing help on writing basic syntax and methods.
+---
+
+
+Getting Started {.cols-3}
+---------------
+
+### Hello_World.rs
+
+```rust
+fn main() {
+ println!("Hello, World!");
+}
+```
+#### Compiling and Running
+```shell
+$ rustc Hello_World.rs
+$ ./Hello_World
+Hello, World!
+```
+
+### Primitive types
+
+| | |
+|---------------------------|----------------------------------|
+| `bool` | Boolean (`true` _/_ `false`) |
+| `char` | character |
+| `f32`, `f64` | 32-bits, 64-bits floats |
+| `i64`, `i32`, `i16`, `i8` | signed 16- ... integers |
+| `u64`, `u32`, `u16`, `u8` | unsigned 16-bits, ... integers |
+| `isize` | pointer-sized signed integers |
+| `usize` | pointer-sized unsigned integers |
+
+See: [Rust Types](#rust-types)
+
+
+### Formatting {.row-span-2}
+
+```rust {.wrap}
+// Single Placeholder
+println!("{}", 1);
+
+// Multiple Placeholder
+println!("{} {}", 1, 3);
+
+// Positional Arguments
+println!("{0} is {1} {2}, also {0} is a {3} programming language", "Rust", "cool", "language", "safe");
+
+// Named Arguments
+println!("{country} is a diverse nation with unity.", country = "India");
+
+// Placeholder traits :b for binary, :0x is for hex and :o is octal
+println!("Let us print 76 is binary which is {:b} , and hex equivalent is {:0x} and octal equivalent is {:o}", 76, 76, 76);
+
+// Debug Trait
+println!("Print whatever we want to here using debug trait {:?}", (76, 'A', 90));
+
+// New Format Strings in 1.58
+let x = "world";
+println!("Hello {x}!");
+```
+
+
+### Printing Styles
+
+```rust
+// Prints the output
+print!("Hello World\n");
+
+// Appends a new line after printing
+println!("Appending a new line");
+
+// Prints as an error
+eprint!("This is an error\n");
+
+// Prints as an error with new line
+eprintln!("This is an error with new line");
+```
+
+
+### Variables
+
+```rust
+// Initializing and declaring a variable
+let some_variable = "This_is_a_variable";
+
+// Making a variable mutable
+let mut mutable_variable = "Mutable";
+
+// Assigning multiple variables
+let (name, age) = ("ElementalX", 20);
+
+// (Global) constant
+const SCREAMING_SNAKE_CASE:i64 = 9;
+```
+
+
+
+### Comments
+
+```rust
+// Line Comments
+/*.............Block Comments */
+/// Outer doc comments
+//! Inner doc comments
+```
+See: [Comment](https://doc.rust-lang.org/reference/comments.html)
+
+
+
+### Functions
+
+```rust
+fn test(){
+ println!("This is a function!");
+}
+
+fn main(){
+ test();
+}
+```
+See: [Functions](#rust-functions)
+
+
+
+
+Rust Types {.cols-3}
+--------------
+
+
+### Integer
+
+```rust
+let mut a: u32 = 8;
+let b: u64 = 877;
+let c: i64 = 8999;
+let d = -90;
+```
+
+
+### Floating-Point
+
+```rust
+let mut sixty_bit_float: f64 = 89.90;
+let thirty_two_bit_float: f32 = 7.90;
+let just_a_float = 69.69;
+```
+
+
+### Boolean
+
+```rust {.wrap}
+let true_val: bool = true;
+let false_val: bool = false;
+let just_a_bool = true;
+let is_true = 8 < 5; // => false
+```
+
+
+### Character
+
+```rust
+let first_letter_of_alphabet = 'a';
+let explicit_char: char = 'F';
+let implicit_char = '8';
+let emoji = "\u{1f600}"; // => 😀
+```
+
+
+### String Literal
+
+```rust {.wrap}
+let community_name = "AXIAL";
+let no_of_members: &str = "ten";
+
+println!("The name of the community is {community_name} and it has {no_of_members} members");
+```
+See: [Strings](#rust-strings)
+
+
+### Arrays
+
+```rust
+┌─────┬─────┬─────┬─────┬─────┬─────┐
+| 92 | 97 | 98 | 99 | 98 | 94 |
+└─────┴─────┴─────┴─────┴─────┴─────┘
+ 0 1 2 3 4 5
+```
+----
+
+```rust
+let array: [i64; 6] = [92,97,98,99,98,94];
+```
+
+
+
+### Multi-Dimensional Array {.row-span-2}
+
+```rust
+ j0 j1 j2 j3 j4 j5
+ ┌────┬────┬────┬────┬────┬────┐
+i0 | 1 | 2 | 3 | 4 | 5 | 6 |
+ ├────┼────┼────┼────┼────┼────┤
+i1 | 6 | 5 | 4 | 3 | 2 | 1 |
+ └────┴────┴────┴────┴────┴────┘
+```
+----
+
+```rust
+let array: [[i64; 6] ;2] = [
+ [1,2,3,4,5,6],
+ [6,5,4,3,2,1]];
+```
+
+### Mutable Array
+
+```rust
+let mut array: [i32 ; 3] = [2,6,10];
+
+array[1] = 4;
+array[2] = 6;
+```
+Use the `mut` keyword to make it mutable.
+
+
+
+### Slices
+
+```rust
+let mut array: [ i64; 4] = [1,2,3,4];
+let mut slices: &[i64] = &array[0..3] // Lower range is inclusive and upper range is exclusive
+
+println!("The elements of the slices are : {slices:?}");
+```
+
+
+### Vectors
+
+```rust
+let some_vector = vec![1,2,3,4,5];
+```
+A vector is declared using the `vec!` macro.
+
+
+### Tuples
+
+```rust
+let tuple = (1, 'A' , "Cool", 78, true);
+```
+
+
+
+Rust Strings {.cols-3}
+--------------
+
+### String Literal
+
+```rust
+let cs:&str = "cheat sheet";
+
+// => Share cheat sheet for developers
+println!("Share {cs} for developers");
+```
+
+
+### String Object
+
+```rust
+// Creating an empty string object
+let my_string = String::new;
+
+// Converting to a string object
+let S_string = a_string.to_string()
+
+// Creating an initialized string object
+let lang = String::from("Rust");
+println!("First language is {lang}");
+ ```
+
+### .capacity()
+
+ ```rust
+let rand = String::from("Random String");
+rand.capacity() // => 13
+```
+Calculates the capacity of the string in bytes.
+
+
+### .contains()
+
+```rust
+let name = String::from("ElementalX");
+name.contains("Element") // => true
+```
+Checks if the substring is contained inside the original string or not.
+
+
+### Pushing a single character
+
+```rust
+let mut half_text = String::from("Hal");
+half_text.push('f'); // => Half
+```
+
+
+### Pushing an entire String
+
+```rust
+let mut hi = String::from("Hey there...");
+hi.push_str("How are you doing??");
+
+// => Hey there...How are you doing??
+println!("{hi}");
+```
+
+
+
+Rust Operators {.cols-3}
+-----------
+
+
+### Comparison Operators
+
+| | |
+|----------|----------------------------------|
+| `e == f` | `e` is equal to `f` |
+| `e != f` | `e` is NOT equal to `f` |
+| `e < f` | `e` is less than `f` |
+| `e > f` | `e` is greater `f` |
+| `e <= f` | `e` is less than or equal to `f` |
+| `e >= f` | `e` is greater or equal to `f` |
+
+---------
+
+```rust
+let (e, f) = (1, 100);
+
+let greater = f > e; // => true
+let less = f < e; // => false
+let greater_equal = f >= e; // => true
+let less_equal = e <= f; // => true
+let equal_to = e == f; // => false
+let not_equal_to = e != f; // => true
+```
+
+
+### Arithmetic Operators
+
+| | |
+|----------|--------------------------------------------|
+| `a + b` | `a` is added to `b` |
+| `a - b` | `b` is subtracted from `a` |
+| `a / b` | `a` is divided by `b` |
+| `a % b` | Gets remainder of `a` by dividing with `b` |
+| `a * b` | `a` is multiplied with `b` |
+
+------
+
+```rust {.wrap}
+let (a, b) = (4, 5);
+
+let sum: i32 = a + b; // => 9
+let subtractions: i32 = a - b; // => -1
+let multiplication: i32 = a * b; // => 20
+let division: i32 = a / b; // => 0
+let modulus: i32 = a % b; // => 4
+```
+
+
+
+
+### Bitwise Operators
+
+| Operator | Description |
+|----------|-------------------------|
+| `g & h` | Binary AND |
+| `g | h` | Binary OR |
+| `g ^ h` | Binary XOR |
+| `g ~ h` | Binary one's complement |
+| `g << h` | Binary shift left |
+| `g >> h` | Binary shift right |
+
+-----
+
+```rust {.wrap}
+let (g, h) = (0x1, 0x2);
+
+let bitwise_and = g & h; // => 0
+let bitwise_or = g | h; // => 3
+let bitwise_xor = g ^ h; // => 3
+let right_shift = g >> 2; // => 0
+let left_shift = h << 4; // => 32
+```
+
+
+
+### Logical Operators
+
+| Example | Meaning |
+|----------------|------------------------|
+| `c && d` | Both are true _(AND)_ |
+| `c || d` | Either is true _(OR)_ |
+| `!c` | `c` is false _(NOT)_ |
+
+------
+
+```rust
+let (c, d) = (true, false);
+
+let and = c && d; // => false
+let or = c || d; // => true
+let not = !c; // => false
+```
+
+
+### Compound Assignment Operator
+
+```rust
+let mut k = 9;
+let mut l = k;
+```
+
+----
+
+| Operator | Description |
+|-----------|-----------------------------------------|
+| `k += l` | Add a value and assign, then k=9 |
+| `k -= l` | Substrate a value and assign, then k=18 |
+| `k /= l` | Divide a value and assign, then k=9 |
+| `k *= l` | Multiply a value and assign, then k=81 |
+| `k |= l` | Bitwise OR and assign, then k=89 |
+
+
+
+
+
+Rust Flow Control {.cols-3}
+--------------
+
+### If Expression
+
+```rust
+let case1: i32 = 81;
+let case2: i32 = 82;
+
+if case1 < case2 {
+ println!("case1 is greater than case2");
+}
+```
+
+### If...Else Expression
+
+```rust
+let case3 = 8;
+let case4 = 9;
+
+if case3 >= case4 {
+ println!("case3 is better than case4");
+} else {
+ println!("case4 is greater than case3");
+}
+```
+
+
+
+### If...Else...if...Else Expression
+
+```rust
+let foo = 12;
+let bar = 13;
+
+if foo == bar {
+ println!("foo is equal to bar");
+} else if foo < bar {
+ println!("foo less than bar");
+} else if foo != bar {
+ println!("foo is not equal to bar");
+} else {
+ println!("Nothing");
+}
+```
+
+
+### If...Let Expression {.row-span-3}
+
+```rust
+let mut arr1:[i64 ; 3] = [1,2,3];
+if let[1,2,_] = arr1{
+ println!("Works with array");
+}
+
+let mut arr2:[&str; 2] = ["one", "two"];
+if let["Apple", _] = arr2{
+ println!("Works with str array too");
+}
+```
+----
+```rust
+let tuple_1 = ("India", 7, 90, 90.432);
+if let(_, 7, 9, 78.99) = tuple_1{
+ println!("Works with tuples too");
+}
+
+let tuple_2 = ( 9, 7, 89, 12, "Okay");
+if let(9, 7,89, 12, blank) = tuple_2 {
+ println!("Everything {blank} mate?");
+}
+
+let tuple_3 = (89, 90, "Yes");
+if let(9, 89, "Yes") = tuple_3{
+ println!("Pattern did match");
+}
+else {
+ println!("Pattern did not match");
+}
+```
+
+### Match Expression {.row-span-3}
+
+```rust
+let day_of_week = 2;
+ match day_of_week {
+ 1 => {
+ println!("Its Monday my dudes");
+ },
+ 2 => {
+ println!("It's Tuesday my dudes");
+ },
+ 3 => {
+ println!("It's Wednesday my dudes");
+ },
+ 4 => {
+ println!("It's Thursday my dudes");
+ },
+ 5 => {
+ println!("It's Friday my dudes");
+ },
+ 6 => {
+ println!("It's Saturday my dudes");
+ },
+ 7 => {
+ println!("It's Sunday my dudes");
+ },
+ _ => {
+ println!("Default!")
+ }
+ };
+}
+```
+
+
+### Nested...If Expression
+
+```rust
+let nested_conditions = 89;
+if nested_conditions == 89 {
+ let just_a_value = 98;
+ if just_a_value >= 97 {
+ println!("Greater than 97");
+ }
+}
+```
+
+
+### For Loop
+
+```rust
+for mut i in 0..15 {
+ i-=1;
+ println!("The value of i is : {i}");
+}
+```
+
+
+
+### While Loop
+
+```rust
+let mut check = 0;
+while check < 11{
+ println!("Check is : {check}");
+ check+=1;
+ println!("After incrementing: {check}");
+
+ if check == 10{
+ break; // stop while
+ }
+}
+```
+
+
+### Loop keyword
+
+```rust
+loop {
+ println!("hello world forever!");
+}
+```
+The infinite loop indicated.
+
+### Break Statement
+
+```rust
+let mut i = 1;
+loop {
+ println!("i is {i}");
+ if i > 100 {
+ break;
+ }
+ i *= 2;
+}
+```
+
+
+### Continue Statement
+
+```rust
+for (v, c) in (0..10+1).enumerate(){
+ println!("The {c} number loop");
+ if v == 9{
+ println!("Here we go continue?");
+ continue;
+ }
+ println!{"The value of v is : {v}"};
+}
+```
+
+
+
+Rust Functions {.cols-3}
+--------------
+
+
+### Basic function
+
+```rust
+
+fn print_message(){
+ println!("Hello, QuickRef.ME!");
+}
+
+fn main(){
+ //Invoking a function in Rust.
+ print_message();
+}
+```
+
+### Pass by Value
+
+```rust
+fn main()
+{
+ let x:u32 = 10;
+ let y:u32 = 20;
+
+ // => 200
+ println!("Calc: {}", cal_rect(x, y));
+}
+fn cal_rect(x:u32, y:u32) -> u32
+{
+ x * y
+}
+```
+
+### Pass by Reference
+
+```rust
+fn main(){
+ let mut by_ref = 3; // => 3
+ power_of_three(&mut by_ref);
+ println!("{by_ref}"); // => 9
+}
+
+fn power_of_three(by_ref: &mut i32){
+ // de-referencing is important
+ *by_ref = *by_ref * *by_ref;
+ println!("{by_ref}"); // => 9
+}
+```
+
+
+
+### Returns
+
+```rust {.wrap}
+fn main(){
+ let (mut radius, mut pi) = (3.0, 3.14);
+ let(area, _perimeter) = calculate (
+ &mut radius,
+ &mut pi
+ );
+ println!("The area and the perimeter of the circle are: {area} & {_perimeter}");
+}
+
+fn calculate(radius : &mut f64, pi: &mut f64) -> (f64, f64){
+ let perimeter = 2.0 * *pi * *radius;
+ let area = *pi * *radius * *radius;
+ return (area, perimeter);
+}
+```
+
+### Arrays as Arguments
+
+```rust
+fn main(){
+ let mut array: [i32 ; 5] = [1,2,3,4,6];
+ print_arrays(array);
+ println!("The elements: {array:?}");
+}
+
+fn print_arrays(mut array:[i32; 5]) {
+ array[0] = 89;
+ array[1] = 90;
+ array[2] = 91;
+ array[3] = 92;
+ array[4] = 93;
+ println!("The elements: {array:?}");
+}
+```
+
+### Returning Arrays
+
+```rust
+
+fn main(){
+ let mut arr:[i32; 5] = [2,4,6,8,10];
+ multiply(arr);
+ println!("The array is : {:?}", multiply(arr));
+}
+
+fn multiply (mut arr: [i32 ; 5]) -> [i32 ; 5]{
+ arr[2] = 90;
+ for mut i in 0..5 {
+ arr[i] = arr[i] * arr[2];
+ }
+ return arr;
+}
+```
+
+
+
+
+Misc {.cols-3}
+--------------
+
+
+### Type Casting
+
+```rust
+let a_int = 90; // int
+// int to float
+let mut type_cast = (a_int as f64);
+```
+------
+```rust
+let orginal: char = 'I';
+// char to int => 73
+let type_casted: i64 = orginal as i64;
+```
+
+To perform type-casting in Rust one must use the `as` keyword.
+
+
+
+
+### Borrowing
+
+```rust
+let mut foo = 4;
+let mut borrowed_foo = &foo;
+println!("{borrowed_foo}");
+```
+------
+```rust
+let mut bar = 3;
+let mut mutable_borrowed_bar = &mut bar;
+println!("{mutable_borrowed_bar}");
+```
+
+Here borrowed value borrows the value from value one using `&` operator.
+
+
+
+### De-referencing
+
+```rust
+let mut borrow = 10;
+let deref = &mut borrow;
+
+println!("{}", *deref);
+```
+
+De-referencing in rust can be done using the `*` operator
+
+
+### Variable Scope
+```rust
+{
+ // The scope limited to this braces
+ let a_number = 1;
+}
+println!("{a_number}");
+```
+This will produce error as the scope of the variable `a_number` ends at the braces
+
+
+Also see
+--------
+
+- [The Rust Document](https://doc.rust-lang.org/book/ch00-00-introduction.html) _(doc.rust-lang.org)_
+- [The Rust Reference](https://doc.rust-lang.org/reference/introduction.html) _(doc.rust-lang.org)_
+- [Rust Cheatsheet](https://phaiax.github.io/rust-cheatsheet/) _(phaiax.github.io)_
diff --git a/sass.md b/source/_posts/sass.md
similarity index 100%
rename from sass.md
rename to source/_posts/sass.md
diff --git a/screen.md b/source/_posts/screen.md
similarity index 100%
rename from screen.md
rename to source/_posts/screen.md
diff --git a/sed.md b/source/_posts/sed.md
similarity index 100%
rename from sed.md
rename to source/_posts/sed.md
diff --git a/ssh.md b/source/_posts/ssh.md
similarity index 100%
rename from ssh.md
rename to source/_posts/ssh.md
diff --git a/tmux.md b/source/_posts/tmux.md
similarity index 100%
rename from tmux.md
rename to source/_posts/tmux.md
diff --git a/toml.md b/source/_posts/toml.md
similarity index 100%
rename from toml.md
rename to source/_posts/toml.md
diff --git a/vim.md b/source/_posts/vim.md
similarity index 100%
rename from vim.md
rename to source/_posts/vim.md
diff --git a/vscode.md b/source/_posts/vscode.md
similarity index 100%
rename from vscode.md
rename to source/_posts/vscode.md
diff --git a/webstorm.md b/source/_posts/webstorm.md
similarity index 100%
rename from webstorm.md
rename to source/_posts/webstorm.md
diff --git a/xpath.md b/source/_posts/xpath.md
similarity index 100%
rename from xpath.md
rename to source/_posts/xpath.md
diff --git a/yaml.md b/source/_posts/yaml.md
similarity index 100%
rename from yaml.md
rename to source/_posts/yaml.md
diff --git a/source/about/index.md b/source/about/index.md
new file mode 100644
index 0000000..97a21cb
--- /dev/null
+++ b/source/about/index.md
@@ -0,0 +1,6 @@
+---
+title: About
+date: 2020-03-26 20:45:53
+---
+
+Coming soon~
diff --git a/source/assets/image/awk-preview.png b/source/assets/image/awk-preview.png
new file mode 100644
index 0000000..f2a2aa2
Binary files /dev/null and b/source/assets/image/awk-preview.png differ
diff --git a/source/assets/image/bash-preview.png b/source/assets/image/bash-preview.png
new file mode 100644
index 0000000..a137342
Binary files /dev/null and b/source/assets/image/bash-preview.png differ
diff --git a/source/assets/image/chmod-preview.png b/source/assets/image/chmod-preview.png
new file mode 100644
index 0000000..27f3561
Binary files /dev/null and b/source/assets/image/chmod-preview.png differ
diff --git a/source/assets/image/cpp-preview.png b/source/assets/image/cpp-preview.png
new file mode 100644
index 0000000..c5fcfe2
Binary files /dev/null and b/source/assets/image/cpp-preview.png differ
diff --git a/source/assets/image/cron-preview.png b/source/assets/image/cron-preview.png
new file mode 100644
index 0000000..330eb10
Binary files /dev/null and b/source/assets/image/cron-preview.png differ
diff --git a/source/assets/image/css-preview.png b/source/assets/image/css-preview.png
new file mode 100644
index 0000000..31a098e
Binary files /dev/null and b/source/assets/image/css-preview.png differ
diff --git a/source/assets/image/dart-preview.png b/source/assets/image/dart-preview.png
new file mode 100644
index 0000000..35684ce
Binary files /dev/null and b/source/assets/image/dart-preview.png differ
diff --git a/source/assets/image/docker-preview.png b/source/assets/image/docker-preview.png
new file mode 100644
index 0000000..15ddbc4
Binary files /dev/null and b/source/assets/image/docker-preview.png differ
diff --git a/source/assets/image/emacs-preview.png b/source/assets/image/emacs-preview.png
new file mode 100644
index 0000000..fa086f3
Binary files /dev/null and b/source/assets/image/emacs-preview.png differ
diff --git a/source/assets/image/emmet-preview.png b/source/assets/image/emmet-preview.png
new file mode 100644
index 0000000..8b1917b
Binary files /dev/null and b/source/assets/image/emmet-preview.png differ
diff --git a/source/assets/image/emoji-preview.png b/source/assets/image/emoji-preview.png
new file mode 100644
index 0000000..635581b
Binary files /dev/null and b/source/assets/image/emoji-preview.png differ
diff --git a/source/assets/image/find-preview.png b/source/assets/image/find-preview.png
new file mode 100644
index 0000000..b2c0689
Binary files /dev/null and b/source/assets/image/find-preview.png differ
diff --git a/source/assets/image/git-preview.png b/source/assets/image/git-preview.png
new file mode 100644
index 0000000..465b5cc
Binary files /dev/null and b/source/assets/image/git-preview.png differ
diff --git a/source/assets/image/golang-preview.png b/source/assets/image/golang-preview.png
new file mode 100644
index 0000000..cc3e0a2
Binary files /dev/null and b/source/assets/image/golang-preview.png differ
diff --git a/source/assets/image/graphql-preview.png b/source/assets/image/graphql-preview.png
new file mode 100644
index 0000000..9ccf71e
Binary files /dev/null and b/source/assets/image/graphql-preview.png differ
diff --git a/source/assets/image/grep-preview.png b/source/assets/image/grep-preview.png
new file mode 100644
index 0000000..5c27bba
Binary files /dev/null and b/source/assets/image/grep-preview.png differ
diff --git a/source/assets/image/html-preview.png b/source/assets/image/html-preview.png
new file mode 100644
index 0000000..f101b0e
Binary files /dev/null and b/source/assets/image/html-preview.png differ
diff --git a/source/assets/image/http-status-code-preview.png b/source/assets/image/http-status-code-preview.png
new file mode 100644
index 0000000..9454272
Binary files /dev/null and b/source/assets/image/http-status-code-preview.png differ
diff --git a/source/assets/image/idea-preview.png b/source/assets/image/idea-preview.png
new file mode 100644
index 0000000..471fe84
Binary files /dev/null and b/source/assets/image/idea-preview.png differ
diff --git a/source/assets/image/java-preview.png b/source/assets/image/java-preview.png
new file mode 100644
index 0000000..9f1ebd5
Binary files /dev/null and b/source/assets/image/java-preview.png differ
diff --git a/source/assets/image/javascript-preview.png b/source/assets/image/javascript-preview.png
new file mode 100644
index 0000000..e1e6e61
Binary files /dev/null and b/source/assets/image/javascript-preview.png differ
diff --git a/source/assets/image/jquery-preview.png b/source/assets/image/jquery-preview.png
new file mode 100644
index 0000000..927201b
Binary files /dev/null and b/source/assets/image/jquery-preview.png differ
diff --git a/source/assets/image/json-preview.png b/source/assets/image/json-preview.png
new file mode 100644
index 0000000..e957a78
Binary files /dev/null and b/source/assets/image/json-preview.png differ
diff --git a/source/assets/image/laravel-preview.png b/source/assets/image/laravel-preview.png
new file mode 100644
index 0000000..722f3b5
Binary files /dev/null and b/source/assets/image/laravel-preview.png differ
diff --git a/source/assets/image/lsof-preview.png b/source/assets/image/lsof-preview.png
new file mode 100644
index 0000000..1e58e2c
Binary files /dev/null and b/source/assets/image/lsof-preview.png differ
diff --git a/source/assets/image/markdown-preview.png b/source/assets/image/markdown-preview.png
new file mode 100644
index 0000000..79520eb
Binary files /dev/null and b/source/assets/image/markdown-preview.png differ
diff --git a/source/assets/image/mime-preview.png b/source/assets/image/mime-preview.png
new file mode 100644
index 0000000..1502d02
Binary files /dev/null and b/source/assets/image/mime-preview.png differ
diff --git a/source/assets/image/mitmproxy-preview.png b/source/assets/image/mitmproxy-preview.png
new file mode 100644
index 0000000..0a8e100
Binary files /dev/null and b/source/assets/image/mitmproxy-preview.png differ
diff --git a/source/assets/image/mysql-preview.png b/source/assets/image/mysql-preview.png
new file mode 100644
index 0000000..362668b
Binary files /dev/null and b/source/assets/image/mysql-preview.png differ
diff --git a/source/assets/image/nc-preview.png b/source/assets/image/nc-preview.png
new file mode 100644
index 0000000..42c5e22
Binary files /dev/null and b/source/assets/image/nc-preview.png differ
diff --git a/source/assets/image/neo4j-preview.png b/source/assets/image/neo4j-preview.png
new file mode 100644
index 0000000..bde55ac
Binary files /dev/null and b/source/assets/image/neo4j-preview.png differ
diff --git a/source/assets/image/netstat-preview.png b/source/assets/image/netstat-preview.png
new file mode 100644
index 0000000..42c5e22
Binary files /dev/null and b/source/assets/image/netstat-preview.png differ
diff --git a/source/assets/image/numpy-preview.png b/source/assets/image/numpy-preview.png
new file mode 100644
index 0000000..cbb03a6
Binary files /dev/null and b/source/assets/image/numpy-preview.png differ
diff --git a/source/assets/image/php-preview.png b/source/assets/image/php-preview.png
new file mode 100644
index 0000000..b4a1ee2
Binary files /dev/null and b/source/assets/image/php-preview.png differ
diff --git a/source/assets/image/postgres-preview.png b/source/assets/image/postgres-preview.png
new file mode 100644
index 0000000..3452e44
Binary files /dev/null and b/source/assets/image/postgres-preview.png differ
diff --git a/source/assets/image/preview.png b/source/assets/image/preview.png
new file mode 100755
index 0000000..1220011
Binary files /dev/null and b/source/assets/image/preview.png differ
diff --git a/source/assets/image/python-preview.png b/source/assets/image/python-preview.png
new file mode 100644
index 0000000..f23f3e7
Binary files /dev/null and b/source/assets/image/python-preview.png differ
diff --git a/source/assets/image/quickref-preview.png b/source/assets/image/quickref-preview.png
new file mode 100644
index 0000000..734fde4
Binary files /dev/null and b/source/assets/image/quickref-preview.png differ
diff --git a/source/assets/image/redis-preview.png b/source/assets/image/redis-preview.png
new file mode 100644
index 0000000..b5c1675
Binary files /dev/null and b/source/assets/image/redis-preview.png differ
diff --git a/source/assets/image/regex-preview.png b/source/assets/image/regex-preview.png
new file mode 100644
index 0000000..deaba49
Binary files /dev/null and b/source/assets/image/regex-preview.png differ
diff --git a/source/assets/image/resolutions-preview.png b/source/assets/image/resolutions-preview.png
new file mode 100644
index 0000000..9253cef
Binary files /dev/null and b/source/assets/image/resolutions-preview.png differ
diff --git a/source/assets/image/sass-preview.png b/source/assets/image/sass-preview.png
new file mode 100644
index 0000000..3d58f34
Binary files /dev/null and b/source/assets/image/sass-preview.png differ
diff --git a/source/assets/image/screen-preview.png b/source/assets/image/screen-preview.png
new file mode 100644
index 0000000..7548ab2
Binary files /dev/null and b/source/assets/image/screen-preview.png differ
diff --git a/source/assets/image/sed-preview.png b/source/assets/image/sed-preview.png
new file mode 100644
index 0000000..2f39cd9
Binary files /dev/null and b/source/assets/image/sed-preview.png differ
diff --git a/source/assets/image/ssh-preview.png b/source/assets/image/ssh-preview.png
new file mode 100644
index 0000000..b71fcb8
Binary files /dev/null and b/source/assets/image/ssh-preview.png differ
diff --git a/source/assets/image/tmux-preview.png b/source/assets/image/tmux-preview.png
new file mode 100644
index 0000000..6f38282
Binary files /dev/null and b/source/assets/image/tmux-preview.png differ
diff --git a/source/assets/image/toml-preview.png b/source/assets/image/toml-preview.png
new file mode 100644
index 0000000..a4db1a9
Binary files /dev/null and b/source/assets/image/toml-preview.png differ
diff --git a/source/assets/image/vim-preview.png b/source/assets/image/vim-preview.png
new file mode 100644
index 0000000..ddab650
Binary files /dev/null and b/source/assets/image/vim-preview.png differ
diff --git a/source/assets/image/webstorm-preview.png b/source/assets/image/webstorm-preview.png
new file mode 100644
index 0000000..df7f422
Binary files /dev/null and b/source/assets/image/webstorm-preview.png differ
diff --git a/source/assets/image/xpath-preview.png b/source/assets/image/xpath-preview.png
new file mode 100644
index 0000000..a0191d5
Binary files /dev/null and b/source/assets/image/xpath-preview.png differ
diff --git a/source/assets/image/yaml-preview.png b/source/assets/image/yaml-preview.png
new file mode 100644
index 0000000..407ad7b
Binary files /dev/null and b/source/assets/image/yaml-preview.png differ
diff --git a/source/assets/page/oops.htm b/source/assets/page/oops.htm
new file mode 100644
index 0000000..b5307fb
--- /dev/null
+++ b/source/assets/page/oops.htm
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
| + | User | +Group | +Other | +
|---|---|---|---|
| Read | ++ | + | + |
| Write | ++ | + | + |
| Execute | ++ | + | + |
<%- title %>
++ Here are some cheatsheets and quick references contributed by open source angels. +
+<%= post.title %>
++ The above list does not see what you want? Are you looking for some cheatsheets or references, or you + have + some snippet cheatsheets to share, it's a best chance to do it! +
+ +<%= post.title %> + Cheatsheet +
+Quick Reference
++ + <%= __('prev', page.prev.title) %> + +
+<% } %> + +<% if (page.next) { %> ++ + <%= __('next', page.next.title) %> + +
+<% } %> diff --git a/themes/coo/layout/_partial/post/recent.ejs b/themes/coo/layout/_partial/post/recent.ejs new file mode 100644 index 0000000..94bf2fb --- /dev/null +++ b/themes/coo/layout/_partial/post/recent.ejs @@ -0,0 +1,6 @@ +##description##
+Sponsored by ##company##
+