Install xvfb
apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
Some tips at: xvfb init script for Ubuntu
Install xvfb
apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
Some tips at: xvfb init script for Ubuntu
/** | |
* Negate sideways velocity on an object being acted upon by a Phaser physics engine. | |
* The primary use for this is to simulate vehicle movement by negating "drift" when the vehicle turns. | |
* @param {Phaser.Sprite} sprite The sprite whose sideways velocity you want to negate | |
*/ | |
function stopSidewaysVelocity(sprite) { | |
// Recycle the same object to conserve memory | |
if(!stopSidewaysVelocity.sideways) { | |
stopSidewaysVelocity.sideways = {}; | |
} |
These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
//--------------------------------------------------------------------- | |
// Name: HelloSDL2.cpp | |
// Author: EAML | |
// Date: 2021-05-16 | |
// | |
// Description: | |
// A minimal PoC for producing a native SDL2 Windows app that can | |
// be ran from either Windows Explorer or from Powershell console. | |
// It's designed to use minimal command line, compiler options, | |
// and dependencies... It will display a gray window for 2 sec's. |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
2020/5/31追記:
自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。
このドキュメントを完成させるために、今後以下のような更新を予定しています。
2021/1/22追記:
Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.
See the credits and also special thanks in below.
Last updated: April 2024
Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22
).
Depending on the age and/or popularity of the video, not all formats will be available.