This file contains 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
#!/bin/bash | |
# ffmpeg installed via: brew install ffmpeg --enable-libx264 --enable-libfaac --enable-libass --with-faac --with-ass --with-tools | |
# ln -s /Applications/mkv2mp4.sh /usr/bin/mkv2mp4 | |
MKV=$1 | |
echo "MKV: $MKV" | |
MP4=`echo $MKV | sed 's/\.mkv/\.mp4/'` | |
echo "MP4: $MP4" | |
CMD="ffmpeg -y -i $MKV -vcodec copy -acodec libfaac -tune film $MP4" | |
echo "Executing: $CMD" |
This file contains 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
class OneOffThreadPool(threading.Thread): | |
def __init__(self, max_concurrent_threads=10): | |
threading.Thread.__init__(self) | |
self.threads = [] | |
self.threads_running = [] | |
self.thread_count = 0 | |
self.max_concurrent_threads = max_concurrent_threads | |
self.log = logging.getLogger(name="OneOffThreadPool") | |
self.log.setLevel(logging.INFO) |
This file contains 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
<!-- variable (usually a property of the current view model --> | |
<div data-bind="visible: shouldShowMessage">...</div> | |
<!-- comparison and conditional --> | |
The item is <span data-bind="text: price() > 50 ? 'expensive' : 'cheap'"></span>. | |
<!-- function call and comparison --> | |
<button data-bind="enable: parseAreaCode(cellphoneNumber()) != '555'">...</button> | |
<!-- function expression --> |
This file contains 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
<!-- variable (usually a property of the current view model --> | |
<div data-bind="visible: shouldShowMessage">...</div> | |
<!-- comparison and conditional --> | |
The item is <span data-bind="text: price() > 50 ? 'expensive' : 'cheap'"></span>. | |
<!-- function call and comparison --> | |
<button data-bind="enable: parseAreaCode(cellphoneNumber()) != '555'">...</button> | |
<!-- function expression --> |
This file contains 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
<!-- variable (usually a property of the current view model --> | |
<div data-bind="visible: shouldShowMessage">...</div> | |
<!-- comparison and conditional --> | |
The item is <span data-bind="text: price() > 50 ? 'expensive' : 'cheap'"></span>. | |
<!-- function call and comparison --> | |
<button data-bind="enable: parseAreaCode(cellphoneNumber()) != '555'">...</button> | |
<!-- function expression --> |
This file contains 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
<!-- variable (usually a property of the current view model --> | |
<div data-bind="visible: shouldShowMessage">...</div> | |
<!-- comparison and conditional --> | |
The item is <span data-bind="text: price() > 50 ? 'expensive' : 'cheap'"></span>. | |
<!-- function call and comparison --> | |
<button data-bind="enable: parseAreaCode(cellphoneNumber()) != '555'">...</button> | |
<!-- function expression --> |
This file contains 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
<!-- variable (usually a property of the current view model --> | |
<div data-bind="visible: shouldShowMessage">...</div> | |
<!-- comparison and conditional --> | |
The item is <span data-bind="text: price() > 50 ? 'expensive' : 'cheap'"></span>. | |
<!-- function call and comparison --> | |
<button data-bind="enable: parseAreaCode(cellphoneNumber()) != '555'">...</button> | |
<!-- function expression --> |
NewerOlder