This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+oem_2", | |
"command": "workbench.action.terminal.focusNext" | |
}, | |
{ | |
"key": "ctrl+shift+oem_8", | |
"command": "workbench.action.terminal.new" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The defaults section is where the solarized theme settings are done. | |
// originally found the source - https://thecustomizewindows.com/2020/08/windows-terminal-with-solarized-dark-oh-my-zsh-theme/ | |
// This file was initially generated by Windows Terminal 1.0.1401.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hugo deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout blog repo with theme submodules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( ) | |
( ) | |
( ) | |
( ) | |
) ) | |
( ( /\ | |
(_) / \ /\ | |
________[_]________ /\/ \/ \ | |
/\ /\ ______ \ / /\/\ /\/\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hnp() { | |
post_name=$1 | |
if [[ -z $post_name ]] || [[ ${#post_name} -lt 5 ]]; then | |
echo "ERROR: Please provide a name for your post! Names must be at least 5 characters long." | |
echo "Usage: hnp this-is-my-post" | |
return 1 | |
fi | |
hugo new "post/"`date +"%Y-%m-%d"`"-$post_name.md" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- with site.Params.homeInfoParams }} | |
<article class="first-entry home-info"> | |
<div class="profile_inner"> | |
{{- if .imageUrl -}} | |
{{- $img := "" }} | |
{{- if not (urls.Parse .imageUrl).IsAbs }} | |
{{- $img = resources.Get .imageUrl }} | |
{{- end }} | |
{{- if $img }} | |
{{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add this snippet to your version of the fastsearch.js | |
// I copied the Hugo-PaperMod's fastsearch.js to my local assets/js/ | |
// then added the following code to trigger search after a 600ms delay | |
// I also listen to the input event | |
function debounce(fn, delay = 600){ | |
let timeoutId; | |
// fn could be invoked with more than one argument | |
return function(...arg){ | |
if (timeoutId) { | |
clearTimeout(timeoutId); |