One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import io.dropwizard.Application; | |
| import io.dropwizard.Configuration; | |
| import io.dropwizard.client.JerseyClientBuilder; | |
| import io.dropwizard.setup.Environment; | |
| import io.dropwizard.testing.junit.DropwizardAppRule; | |
| import org.assertj.core.data.MapEntry; | |
| import org.eclipse.jetty.servlets.CrossOriginFilter; | |
| import org.junit.ClassRule; | |
| import org.junit.Test; |
These rules are adopted from the AngularJS commit conventions.
Upgrading to Lion or Yosemite and WebStorm 9, I noticed key repeat was
turned off for the IdeaVim plugin h j k l keys.
defaults write -g ApplePressAndHoldEnabled -bool false in a terminal will enable
key repeat for every app. This can alternatively be found in the accessibility
settings in OS X' preferences.
| Since 2013 a video format much better than H.264 is widely available, namely H.265 (better in that it compresses more for the same quality, or gives higher quality for the same size). To use it, replace the libx264 codec with libx265, and push the compression lever further by increasing the CRF value — add, say, 4 or 6, since a reasonable range for H.265 may be 24 to 30. Note that lower CRF values correspond to higher bitrates, and hence produce higher quality videos. | |
| ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4 | |
| To see this technique applied using the older H.264 format, see this answer, quoted below for convenience: | |
| Calculate the bitrate you need by dividing your target size (in bits) by the video length (in seconds). For example for a target size of 1 GB (one gigabyte, which is 8 gigabits) and 10 000 seconds of video (2 h 46 min 40 s), use a bitrate of 800 000 bit/s (800 kbit/s): | |
| ffmpeg -i input.mp4 -b 800k output.mp4 |
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = "Obsidian-Vault"; | |
| /* Optional folder name such as "Clippings/" */ |
pnpm dlx @antfu/eslint-config@latest
将新生成的 eslint.config.(mjs|ts|js)中的内容替换为 eslint.config.mjs 文件中的内容
在 Web 上应用字体是一项基本技术,同时也是一门艺术。对于英文字体来说可选择的范围实在是太广泛了,合理的使用它们将会为你的网站增色不少。关于英文字体的使用和搭配技巧,在这里不做赘述,只推荐一套非常好的视频:Fundamentals of Design by CodeSchool
而真正的挑战在于中文字体,由于中文字体组成的特殊性导致其体积过于庞大,除了操作系统内置的字体之外,我们很难在网站上应用其他的字体。在可选性很差的前提之下,如何正确的使用中文字体呢?
首先,以下的字体声明都是很糟糕的,切忌使用:
font-family: "宋体";