-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| Install Homebrew OS X package manager: | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| Install ffmpeg with x265 support: | |
| brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265 | |
| Convert video to x265: | |
| ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4 | |
| Uninstall ffmpeg: |
| #include <SoftwareSerial.h> | |
| SoftwareSerial mySerial(2, 3); // pins connect номера дискретных входов-выходов контроллера в качестве RX, TX | |
| int ch = 0; | |
| String val = ""; | |
| #define MASTER "+3XXXXXXXXXX" // phone number / укажите телефон хозяина | |
| void setup() |
| <?php | |
| if (isset($_POST['postcode'])) { | |
| $regions = array( | |
| 'm' => 'manchester', | |
| 'n' => 'london', | |
| 's' => 'london', | |
| 'b' => 'birmingham', | |
| 'br' => 'kent', | |
| 'ct' => 'kent', |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!