As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Greatest common divisor of 1 or more numbers. | |
| from functools import reduce | |
| def gcd(*numbers): | |
| """ | |
| Return the greatest common divisor of 1 or more integers | |
| Examples | |
| -------- |
| @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
| @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
| @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
| @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
| @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
| @media (min-width:1281px) { /* hi-res laptops and desktops */ } |
| # Installation | |
| brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
| # Easy Peasy | |
| ffmpeg -i video.mp4 video.webm |
| #!/usr/bin/env bash | |
| # This file contains environment variables required to run Spark. Copy it as | |
| # spark-env.sh and edit that to configure Spark for your site. | |
| # | |
| # The following variables can be set in this file: | |
| # - SPARK_LOCAL_IP, to set the IP address Spark binds to on this node | |
| # - MESOS_NATIVE_LIBRARY, to point to your libmesos.so if you use Mesos | |
| # - SPARK_JAVA_OPTS, to set node-specific JVM options for Spark. Note that | |
| # we recommend setting app-wide options in the application's driver program. |
| #!/usr/bin/env bash | |
| # This file contains environment variables required to run Spark. Copy it as | |
| # spark-env.sh and edit that to configure Spark for your site. | |
| # | |
| # The following variables can be set in this file: | |
| # - SPARK_LOCAL_IP, to set the IP address Spark binds to on this node | |
| # - MESOS_NATIVE_LIBRARY, to point to your libmesos.so if you use Mesos | |
| # - SPARK_JAVA_OPTS, to set node-specific JVM options for Spark. Note that | |
| # we recommend setting app-wide options in the application's driver program. |