This file contains hidden or 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
#!/usr/bin/bash | |
# select-session.sh - Interactive tmux session selector with FZF | |
# | |
# USAGE: | |
# ./select-session.sh | |
# | |
# DESCRIPTION: | |
# This script provides an interactive session selector for tmux using FZF. | |
# It searches for projects in ~/git and existing session files in ~/.tmux/sessions, | |
# then allows you to select one to either create a new session or attach to existing. |
This file contains hidden or 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
# Requires `xclip` be installed. | |
function clip | |
cat "$argv" | xclip -selection clipboard | |
end |
This file contains hidden or 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
package main | |
import ( | |
"html/template" | |
"log" | |
"net/http" | |
"os" | |
) | |
const ( |
This file contains hidden or 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 is a basic setup for a fastify Node.js app that has one main route `myroute` and | |
* could have any number of subroutes. It uses the handlebars template engine but that can | |
* be replace with whatever you want. | |
* | |
* file structure for templates in `src/` folder | |
* views/ | |
* layouts/ | |
* main.html | |
* pages/ |
This file contains hidden or 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
<!-- | |
Play around with the various widths/heights/colors to get your desired style. The colors are set to | |
match up so if you change the left side, make sure to change the other instances where the color is | |
`black`. Same with right and `red`. The border-width for the slanted-divider should also be half of | |
the separator height. | |
--> | |
<style> | |
.separator { | |
width: 100%; |
This file contains hidden or 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
// My preferred animation duration for these is 1 second. | |
@keyframes slideUp { | |
0%: { | |
transform: translateY(10%); | |
opacity: 0%; | |
} | |
50%: { | |
transform: translateY(0%); | |
} |
This file contains hidden or 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
# Uses this commenting plugin: https://github.com/terrortylor/nvim-comment | |
# To use a different one or not at all just edit/delete the <cmd>CommentToggle<CR> section | |
# from the snippet. | |
# In Lua | |
vim.api.nvim_set_keymap('n', '<leader>t', 'OTODO<Esc><cmd>CommentToggle<CR>j', {noremap = true}) | |
# In vimscript | |
:nnoremap <leader>t OTODO<Esc>:CommentToggle<CR> j |