ffmpeg -ss 00:00:08 -to 00:00:21 -i input.mp4 -c copy output.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataset_path = "/path/to/Spark-The-Definitive-Guide/data/" | |
myRange = spark.range(1000).toDF("number") | |
divisBy2 = myRange.where("number % 2 = 0") | |
divisBy2.count() | |
flightData2015 = spark.read.option("inferSchema","true").option("header","true").csv(dataset_path + "flight-data/csv/2015-summary.csv") |
A tree outlining the modules (or site layout) for Data Science Guide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^a w | |
New -s <session> Create ^a c | |
Attach a -t <session> Rename ^a , <name> | |
Rename rename-session -t <old> <new> Last ^a l (lower-L) | |
Kill kill-session -t <session> Close ^a & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ledPin = 10; // LED connected to digital pin 9 | |
int maxValue = 255; | |
int minValue = 0; | |
int increment = 5; | |
void setup() { | |
// nothing happens in setup | |
} | |
void loop() { | |
// fade in from min to max in increments of 5 points: |
All POSIX operating systems have 3 streams: stdin, stdout, and stderr. stdin is the input, which can accept the stdout or stderr. stdout is the primary output, which is redirected with >, >>, or |. stderr is the error output, which is handled separately so that any exceptions do not get passed to a command or written to a file that it might break; normally, this is sent to a log of some kind, or dumped directly, even when the stdout is redirected. To redirect both to the same place, use:
command > out.txt 2>&1