** Step 1 **
Install ffmpeg with the vidstab plugin.
- OSX: Install via Homebrew -
brew install ffmpeg --with-libvidstab - Linux: download binaries here (vidstab included)
- Windows: download binaries here (vidstab included)
| class Drink: Codable { | |
| var name: String | |
| var color: String? | |
| private enum CodingKeys: String, CodingKey { | |
| case name, color | |
| } | |
| required init(from decoder: Decoder) throws { | |
| let values = try decoder.container(keyedBy: CodingKeys.self) |
** Step 1 **
Install ffmpeg with the vidstab plugin.
brew install ffmpeg --with-libvidstab| /* | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * For more information, please refer to <https://unlicense.org> | |
| */ | |
| //Regular text | |
| #define BLK "\e[0;30m" | |
| #define RED "\e[0;31m" | |
| #define GRN "\e[0;32m" |
| /*# 1- Identify the UART interface, GPIO pins and Alternate Function #########*/ | |
| /* For example: | |
| * B-L475E-IOT01A: | |
| * PB6 ------> USART1_TX | |
| * PB7 ------> USART1_RX | |
| * | |
| * NUCLEO-L476RG: | |
| * PA2 ------> USART2_TX | |
| * PA3 ------> USART2_RX | |
| * |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # 一个简单的 Socks5 代理服务器 , 只有 server 端 , 而且代码比较乱 | |
| # 不是很稳定 , 而且使用多线程并不是 select 模型 | |
| # Author : WangYihang <wangyihanger@gmail.com> | |
| import socket | |
| import threading | |
| import sys |
| <?php | |
| error_reporting(E_ALL); | |
| ini_set('max_execution_time',0); | |
| # http://www.vipsocks24.com/ | |
| $list="107.10.35.178:42427 | |
| 108.20.152.202:1415 | |
| 110.142.196.145:43134 | |
| 115.118.195.23:1080 | |
| 115.252.100.245:1080 | |
| 115.252.143.165:1080 |
| repeat | |
| if application "Spotify" is running then | |
| tell application "Spotify" | |
| set seenTrack to "" | |
| repeat while player state is playing | |
| if player state is playing then | |
| set theAlbum to album of the current track | |
| set theTrack to name of the current track | |
| set theArtist to artist of the current track | |
| set trackLength to duration of current track |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| # fetch the changes from the remote | |
| git fetch origin | |
| # show commit logs of changes | |
| git log master..origin/master | |
| # show diffs of changes | |
| git diff master..origin/master | |
| # apply the changes by merge.. |
| sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` | |
| # or... | |
| sudo killall coreaudiod |