(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| # encoding: utf-8 | |
| # Be sure to restart your server when you modify this file. | |
| # Add new inflection rules using the following format | |
| # (all these examples are active by default): | |
| # ActiveSupport::Inflector.inflections do |inflect| | |
| # inflect.plural /^(ox)$/i, '\1en' | |
| # inflect.singular /^(ox)en/i, '\1' | |
| # inflect.irregular 'person', 'people' | |
| # inflect.uncountable %w( fish sheep ) |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| type z | |
| type 'a s | |
| (* Sadly enough, without kind restrictions, this still allows nonsense types like *) | |
| type nonsense = int s | |
| (* GHC 7.6 supports this (lifting types to kinds & kind constraints) ;-) *) | |
| type (_, _) llist = | |
| | Nil : (z, 'a) llist | |
| | Cons : ('a * ('l, 'a) llist) -> ('l s, 'a) llist |
| // There are four main design concerns here: | |
| // * The API should abstract only DOM manipulations | |
| // — law of Do Just One Thing. | |
| // * The API should not allow plugins modifying jQuery, | |
| // these should be distinct modules/objects | |
| // — law of Modularity. | |
| // * The API should not use the DOM as a data model, | |
| // because this makes all operations inherently slow | |
| // — law of Orthogonality. | |
| // * The API should be simple, consistent and easy to use |
| /** | |
| * Converts an image to a dataURL | |
| * @param {String} src The src of the image | |
| * @param {Function} callback | |
| * @param {String} outputFormat [outputFormat='image/png'] | |
| * @url https://gist.github.com/HaNdTriX/7704632/ | |
| * @docs https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement#Methods | |
| * @author HaNdTriX | |
| * @example | |
| * |
| test.isFalse(v, msg) | |
| test.isTrue(v, msg) | |
| test.equal(actual, expected, message, not) | |
| test.length(obj, len) | |
| test.include(s, v) | |
| test.isNaN(v, msg) | |
| test.isUndefined(v, msg) | |
| test.isNotNull | |
| test.isNull | |
| test.throws(func) |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf values can go from 4 to 63. Lower values mean better quality.-b:v is the maximum allowed bitrate. Higher means better quality.