Kritaでやりたいこと、できたことのメモ。 ブログとかに書くための下書き。
- レイヤーの表示、非表示をショートカットで切り替えたい
- レイヤーのツリーを全部閉じたい
- 範囲選択してコピーしても、ひとつのレイヤーしかコピーされない
- Ctrl + C だと単一レイヤーのコピー。Ctrl + Shift + C で「統合部分をコピー」になる
- 一部のレイヤーだけ抽出して、最小範囲で png に切り出し
- 画面右下の「レイヤー」で、必要なレイヤーだけを表示状態にする
- 範囲選択する
| git config --global alias.g 'log --graph --branches --pretty=format:"%d [%h] \"%s\""' | |
| git config --global alias.co checkout | |
| git config --global alias.st status |
Kritaでやりたいこと、できたことのメモ。 ブログとかに書くための下書き。
| FROM ubuntu:xenial | |
| RUN apt-get -y update | |
| RUN apt-get -y install curl clang libicu-dev python-dev | |
| RUN apt-get -y install libxml2 | |
| RUN curl https://swift.org/builds/swift-3.0-preview-1/ubuntu1510/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu15.10.tar.gz > /tmp/swift.tar.gz | |
| RUN cd /opt && tar xzvf /tmp/swift.tar.gz | |
| RUN apt-get -y install vim git |
$ ffmpeg -i source.mp4 -vf fps=fps=15,scale=480:-1 -b:v 450k -b:a 50k out.mp4
-vf scale: https://ffmpeg.org/ffmpeg-filters.html#scaleカメラを使えるようにする:
フルスクリーンモードにするため:
日本語フォントを追加する:
| # patch angular-cli@1.0.0-rc.0 to use pug. | |
| # see "Revisions" for older angular-cli. | |
| # usage: patch -p0 < angular-cli-pug.patch | |
| # npm install --save-dev apply-loader pug-loader | |
| # source: https://github.com/angular/angular-cli/issues/1886#issuecomment-280923201 | |
| --- node_modules/@angular/cli/models/webpack-configs/common.js.orig 2017-02-25 16:30:09.000000000 +0900 | |
| +++ node_modules/@angular/cli/models/webpack-configs/common.js 2017-03-02 13:21:10.000000000 +0900 | |
| @@ -72,6 +72,7 @@ function getCommonConfig(wco) { | |
| { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader', exclude: [nodeModules] }, |
| const http = require('http') | |
| const spawn = require('child_process').spawn | |
| http.get('http://localhost:4040/api/tunnels', res => { | |
| let rawData = '' | |
| res.on('data', chunk => { rawData += chunk; }) | |
| res.on('end', () => { | |
| JSON.parse(rawData).tunnels | |
| .filter(t => t.proto === 'https') | |
| .forEach(t => { spawn('open', [t.public_url]) }) |
| #!/usr/bin/env bash | |
| # fresh-chrome | |
| # | |
| # Use this script on OS X to launch a new instance of Google Chrome | |
| # with its own empty cache, cookies, and user configuration. | |
| # | |
| # The first time you run this script, it will launch a new Google | |
| # Chrome instance with a permanent user-data directory, which you can | |
| # customize below. Perform any initial setup you want to keep on every |
Edge や IE での動作確認のため Microsoft からダウンロードした VirtualBox の VM をいい感じにセットアップするためのメモ。
| var express = require('express'); | |
| var router = express.Router(); | |
| const AA = `| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | |