| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| <template> | |
| <div> | |
| nuxt.js + nuxt-composition-api + typescript + @nuxt/content to work with meta generated by $content in setup, | |
| and have it generate the appropriate tags at generation time! | |
| <journal-post v-if="journal" :post="journal" /> | |
| </div> | |
| </template> | |
| <script lang="ts"> | |
| import { |
| # .ebextensions/shoryuken.config | |
| # Based on the conversation in https://github.com/phstc/shoryuken/issues/48 | |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_shoryuken": | |
| mode: "000777" | |
| content: | | |
| APP_DEPLOY_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir) | |
| LOG_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_log_dir) | |
| PID_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_pid_dir) |
著者: 青い鴉(ぶるくろ)さん @bluecrow2
これは結城浩さんの運用されていた YukiWiki に当時 Coffee 様 (青い鴉(ぶるくろ)さん)がかかれていた文章です。 ただ 2018 年 3 月 7 日に YukiWiki が運用停止したため消えてしまいました。その記事のバックアップです。
今は 404 ですが、もともとの記事の URL は http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 になります。
昔、自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。
| :root { | |
| --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
| --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
| --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
| --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
| --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); |
| // For Android < 3.0 | |
| @SuppressWarnings("unused") | |
| public void openFileChooser(ValueCallback<Uri> uploadMsg) { | |
| mUploadMessage = uploadMsg; | |
| Intent i = new Intent(Intent.ACTION_GET_CONTENT); | |
| i.addCategory(Intent.CATEGORY_OPENABLE); | |
| i.setType("*/*"); | |
| startActivityForResult(Intent.createChooser(i, getString(R.string.select_file)), REQUEST_SELECT_FILE_LEGACY); |
| { | |
| "hosting": { | |
| "public": "public", | |
| "rewrites": [ | |
| { | |
| "source": "**", | |
| "function": "app" | |
| } | |
| ], | |
| "redirects": [{ |
| #!/bin/bash | |
| if [[ "$1" != "" ]]; then | |
| S3BUCKETNAME="$1" | |
| else | |
| echo ERROR: Failed to supply S3 bucket name | |
| exit 1 | |
| fi | |
| aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| import Vue from 'vue'; | |
| import VueLodash from './vue-lodash.js'; | |
| Vue.use(VueLodash); | |
| // On components, you'll now have access to | |
| this._.filter(); |