Skip to content

Commit

Permalink
Mass update tip titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Oct 20, 2023
1 parent 425d9c4 commit 78a7d83
Show file tree
Hide file tree
Showing 57 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion content/snippets/articles/s/bash-alias-dollar-sign.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: A bash alias for copying commands from the web"
title: A bash alias for copying commands from the web
shortTitle: Bash alias for copying from the web
type: tip
language: git
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/css/s/clamp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Use clamp() in CSS for responsive typography"
title: Use clamp() in CSS for responsive typography
shortTitle: CSS clamp()
type: tip
language: css
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/css/s/easing-variables.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: CSS easing variables"
shortTitle: CSS easing variables
title: CSS easing variables
type: tip
language: css
tags: [animation]
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/css/s/nested-border-radius.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: Perfect nested border radius in CSS"
shortTitle: Perfect nested border radius in CSS
title: Perfect nested border radius in CSS
type: tip
language: css
tags: [visual]
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/css/s/perfect-transition-duration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: The perfect duration for CSS transitions"
title: The perfect duration for CSS transitions
shortTitle: CSS transition duration
type: tip
language: css
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/css/s/select-any-link.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Select any link with CSS"
title: Select any link with CSS
shortTitle: "CSS :any-link pseudo-class"
type: tip
language: css
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/css/s/style-default-links.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Style links without a class"
title: Style links without a class
shortTitle: Style default links
type: tip
language: css
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/git/s/automatic-push-upstream.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Automate Git upstream branch creation"
title: Automate Git upstream branch creation
shortTitle: Automate upstream branch creation
type: tip
language: git
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/git/s/branches-containing-commit.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Find branches containing a specific Git commit"
title: Find branches containing a specific Git commit
shortTitle: Find branches containing commit
type: tip
language: git
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/git/s/commit-different-date.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: Create a commit with a different date"
shortTitle: Create a commit with a different date
title: Create a commit with a different date
type: tip
language: git
tags: [commit]
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/git/s/github-co-authors.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: How to add multiple authors to a commit"
title: How to add multiple authors to a commit
shortTitle: Add multiple authors to a commit
type: tip
language: git
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/html/s/custom-file-download-names.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: Customize the names of downloadable files"
shortTitle: Customize the names of downloadable files
title: Customize the names of downloadable files
type: tip
language: html
tags: [link]
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/html/s/lazy-loading-images.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Lazy load images in HTML"
title: Lazy load images in HTML
shortTitle: Image lazy loading
type: tip
language: html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Adding autocomplete to a password field"
title: Add autocomplete to an HTML password field
shortTitle: Password field autocomplete
type: tip
language: html
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/html/s/prefetching-resources.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Prefetching resources in the browser"
title: Prefetching resources in the browser
shortTitle: Resource prefetching
type: tip
language: html
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/html/s/reversed-list.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Create a descending list of numbered items"
title: Create a descending list of numbered items in HTML
shortTitle: Descending list
type: tip
language: html
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/abort-fetch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Abort a fetch request in JavaScript"
title: Abort a fetch request in JavaScript
shortTitle: Abort a fetch request
type: story
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/array-min-max.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Min and max value in a JavaScript array"
title: Min and max value in a JavaScript array
shortTitle: Min and max value of an array
type: tip
language: javascript
Expand Down
3 changes: 2 additions & 1 deletion content/snippets/js/s/array-sorting-shorthand.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Tip: JavaScript array sorting shorthand"
title: JavaScript array sorting shorthand
shortTitle: Array sorting shorthand
type: tip
language: javascript
tags: [array]
author: chalarangelo
cover: apples
excerpt: Learn how to quickly write code to sort JavaScript arrays with this handy one-liner.
dateModified: 2021-06-12
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/cannot-extend-proxy-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: You can't extend the Proxy object"
title: You can't extend JavaScript's Proxy object
shortTitle: Extending the Proxy object
type: tip
language: javascript
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Compare strings regardless of case and accent"
title: Compare strings regardless of case and accent
shortTitle: Case and accent-insensitive string comparison
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/decimal-to-hex.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Convert decimal number to hexadecimal"
title: Convert decimal number to hexadecimal
shortTitle: Decimal to hexadecimal
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/dynamic-properties-are-slow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Optimize dynamically added object properties"
title: Optimize dynamically added object properties
shortTitle: Dynamically added property optimization
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/edit-url-params.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Edit URL Parameters in JavaScript"
title: Edit URL Parameters in JavaScript
shortTitle: Edit URL Parameters
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/element-from-point.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Element at a specific point on the page"
title: Element at a specific point on the page
shortTitle: Element at specific coordinates
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/eslint-refactor-for-in.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Refactoring your for...in loops to avoid ESLint warnings"
title: Refactoring your for...in loops to avoid ESLint warnings
shortTitle: Refactoring for...in loops to avoid ESLint warnings
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/first-last-n-elements.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Get the first or last n elements in a JavaScript array"
title: Get the first or last n elements in a JavaScript array
shortTitle: First or last n elements of an array
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/for-each-right.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Iterate over a JavaScript array from right to left"
title: Iterate over a JavaScript array from right to left
shortTitle: Iterate over array in reverse
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/for-loop-early-break.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Use JavaScript for loops if you need to break out early"
title: Use JavaScript for loops if you need to break out early
shortTitle: For loops for early breaking
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/index-for-of-loop.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Get the index of an array item in a JavaScript for...of loop"
title: Get the index of an array item in a JavaScript for...of loop
shortTitle: Array index in for...of loops
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/json-stringify-pick-keys.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Serialize specific properties from a JSON object"
title: Serialize specific properties from a JSON object
shortTitle: Selective property serialization
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/last-element-of-array.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Get the last element of a JavaScript array"
title: Get the last element of a JavaScript array
shortTitle: Last element of array
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/make-iterable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Make any JavaScript value iterable"
title: Make any JavaScript value iterable
shortTitle: Make any value iterable
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/n-min-max-elements-in-array.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Find the n min or max elements in a JavaScript array"
title: Find the n min or max elements in a JavaScript array
shortTitle: N min or max elements of an array
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/nodejs-chrome-debugging.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Debugging Node.js using Chrome Developer Tools"
title: Debugging Node.js using Chrome Developer Tools
shortTitle: Debug Node.js with Chrome Developer Tools
type: tip
language: javascript
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Improve scroll listener performance"
title: Improve JavaScript scroll listener performance
shortTitle: Improve scroll listener performance
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/pretty-print-json.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Pretty-print a JSON object with JavaScript"
title: Pretty-print a JSON object with JavaScript
shortTitle: Pretty-print JSON
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/prevent-string-being-escaped.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Prevent a string from being escaped in JavaScript"
title: Prevent a string from being escaped in JavaScript
shortTitle: Prevent string escaping
type: tip
language: javascript
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/js/s/promise-then-catch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: The order of then and catch matters"
shortTitle: The order of then and catch matters
title: The order of then and catch matters
type: tip
language: javascript
tags: [function,promise]
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/query-selector-shorthand.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Create your own query selector shorthand"
title: Create your own query selector shorthand in vanilla JavaScript
shortTitle: Query selector shorthand
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/remove-array-duplicates.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Remove duplicates from a JavaScript array"
title: Remove duplicates from a JavaScript array
shortTitle: Remove duplicates from an array
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/select-focused-dom-element.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Select the focused DOM element"
title: Select the focused DOM element with JavaScript
shortTitle: Focused DOM element
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/store-dom-items.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Minimize DOM access"
title: Minimize DOM access in JavaScript
shortTitle: Minimize DOM access
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/string-to-boolean.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Convert a string to a boolean"
title: Convert a string to a boolean
shortTitle: String to boolean
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/swap-two-variables.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: How to swap two variables in JavaScript"
title: How to swap two variables in JavaScript
shortTitle: Swap two variables
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/typecheck-array.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: Typechecking arrays with Array.isArray()"
title: Typechecking arrays with Array.isArray()
shortTitle: Array typechecking
type: tip
language: javascript
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/js/s/value-as-number.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tip: You can get the value of an input element as a number"
title: You can get the value of an input element as a number
shortTitle: Input element value as number
type: tip
language: javascript
Expand Down
3 changes: 1 addition & 2 deletions content/snippets/js/s/void-links.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Tip: Avoid \"javascript:void(0)\" for empty links"
shortTitle: Avoid "javascript:void(0)" for empty links
title: Avoid "javascript:void(0)" for empty links
type: tip
language: javascript
tags: [browser,accessibility]
Expand Down
3 changes: 2 additions & 1 deletion content/snippets/python/s/bare-except.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Tip: Avoid using bare except in Python"
title: Avoid using bare except in Python
shortTitle: Bare except best practices
type: tip
language: python
tags: [error]
author: chalarangelo
cover: dark-cloud
excerpt: It's generally not a good idea to use bare `except` clause in Python, but do you know why?
dateModified: 2022-02-20
Expand Down
3 changes: 2 additions & 1 deletion content/snippets/python/s/dict-getkey-vs-dictkey.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Tip: You should use dict.get(key) instead of dict[key]"
title: You should use dict.get(key) instead of dict[key]
shortTitle: dict.get(key) vs dict[key]
type: tip
language: python
tags: [dictionary]
author: chalarangelo
cover: compass-2
excerpt: Learn the difference between two common ways to access values in Python dictionaries and level up your code today.
dateModified: 2021-06-12
Expand Down
3 changes: 2 additions & 1 deletion content/snippets/python/s/fstrings-str-format.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Tip: 2 ways to format a string in Python"
title: 2 ways to format a string in Python
shortTitle: String formatting
type: tip
language: python
tags: [string]
author: chalarangelo
cover: feathers
excerpt: Learn two ways to format a string in Python with this quick tip.
dateModified: 2021-06-12
Expand Down
3 changes: 2 additions & 1 deletion content/snippets/python/s/mutable-default-arguments.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Tip: Watch out for mutable default arguments in Python"
title: Watch out for mutable default arguments in Python
shortTitle: Mutable default arguments
type: tip
language: python
tags: [function]
author: chalarangelo
cover: goat-wooden-cottage
excerpt: Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.
dateModified: 2022-02-27
Expand Down
Loading

0 comments on commit 78a7d83

Please sign in to comment.