Add it to the body
<body hx-ext="hx-astro-view-transition">
An example
Add it to the body
<body hx-ext="hx-astro-view-transition">
An example
#### | |
# ZSH function to auto-switch to correct Node version | |
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
# | |
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
# | |
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
# | |
# - Works correctly if your .nvmrc file contains something relaxed/generic, | |
# like "4" or "v12.0" or "stable". |
ul.tabs-nav.nav.navbar-nav.navbar-left { | |
margin: 0px; | |
padding: 0px; | |
list-style: none; | |
} | |
li.tab { | |
display: inline-block; | |
padding: 10px; | |
margin-right: 5px; |
# Only listen on http; disable ajp and https | |
web: java -jar jenkins.war --httpPort=$PORT --ajp13Port=-1 --httpsPort=-1 |
Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)
api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});
GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
function getUserDetail(username) { | |
if (userCache[username]) { | |
return Promise.resolve(userCache[username]); | |
} | |
// Use the fetch API to get the information | |
return fetch('users/' + username + '.json') | |
.then(function(result) { | |
userCache[username] = result; | |
return result; |
/* This is a FluidApp userscript for Google Inbox for Mac. | |
Includes options for total badge count and unread badge count. | |
1) You need the paid version of FluidApp (http://fluidapp.com/) | |
2) Point Fluid to https://inbox.google.com (I recommend the icon from here: https://medium.com/@chrismessina/create-an-icon-for-google-inbox-in-your-dock-ed269312e3bc) | |
3) Set the user-agent to Chrome | |
4) Go to window -> userscript and add click the plus sign under the first table (on the left). Name the item 'Inbox'. | |
5) In the second table (on the right) click the plus and type in "*inbox.google.com*". | |
6) Paste the contents of this document into the script area below that. | |
7) Configure badge count (for total or unread only) in the code below. |