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
| #popular { | |
| float:left; | |
| clear: both; | |
| margin: 0 0 30px; | |
| background: #fff; | |
| width: 100%; | |
| max-width:100%; | |
| -moz-border-radius: 6px; | |
| -webkit-border-radius: 6px; | |
| border-radius: 6px; |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <meta name="description" content="Service status"> | |
| <meta name="robots" content="index, follow"> | |
| <title>Status</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> |
| #!/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 <( |
| <?php | |
| date_default_timezone_set('America/Los_Angeles'); | |
| session_start(); | |
| include("ratelimiter.php"); | |
| // in this sample, we are using the originating IP, but you can modify to use API keys, or tokens or what-have-you. | |
| $rateLimiter = new RateLimiter($_SERVER["REMOTE_ADDR"]); | |
| $limit = 100; // number of connections to limit user to per $minutes | |
| $minutes = 1; // number of $minutes to check for. |