ffmpeg.exe -i '.\How to colour and blend Stylized Grass in UE4 [Read Description for updates!].mkv' -i .\6fed14c6159a41b29e31a811a871e495.mp3 -filter_complex "[0:a]volume=0.1[A];[1:a]volume=1.0[B];[A][B]amerge=inputs=2[c]" -map 0:v -map "[c]" -c:v copy -ac 2 Test.mkv
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
void main() { | |
List<int> charCodes = const [97, 98, 99, 100]; | |
print(String.fromCharCodes(charCodes)); | |
} |
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
void main() { | |
print('1. Start main'); | |
Future.delayed( | |
const Duration(seconds: 1), | |
() => print('3. => Timeout Future #1'), | |
); | |
Future.delayed( | |
const Duration(seconds: 2), |
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
// ==UserScript== | |
// @name Fix flutter.dev Night theme | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Enables night theme for documentation site api.flutter.dev | |
// @author Andrew S | |
// @match https://api.flutter.dev/* | |
// @grant none | |
// ==/UserScript== |
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
package ru.funnyhourse.troinichok.ws.messages; | |
public abstract class Event { | |
public Event() {} | |
} |
Задумался как-то раз я об автоматизации развертывания своего проекта. gitlab.com любезно предоставляет для этого все инструменты, и я конечно решил воспользоваться, разобравшись и написав небольшой сценарий деплоя. В статье я делюсь своим опытом с сообществом.
- Настроить VPS: отключить root, вход по паролю, поставить dockerd, настроить ufw
- Сгенерировать сертификаты для сервера и клиента https://docs.docker.com/engine/security/https/#create-a-ca-server-and-client-keys-with-openssl Включить управление dockerd через tcp сокет: убрать опцию -H fd:// из конфига докера.
- Прописать пути до сертификатов в docker.json
- Прописать в переменные gitlab в настройках CI/CD с содержимым сертификатов. Написать скрипт .gitlab-ci.yml для деплоя.
"IF(
(IN(online_store_type, #{'client'.to_crc32}) AND
INTEGER(#{region_sort_attr_sql_statement('regional_packet', options.fetch(:region_id))}) <>
#{Apress::Packets::Packet::PACKET_EMPTY}, 2),
(IN(online_store_type, #{'semionline'.to_crc32}) AND
INTEGER(#{region_sort_attr_sql_statement('regional_packet', options.fetch(:region_id))}) <>
#{Apress::Packets::Packet::PACKET_EMPTY}, 1),
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
@ stm32f103 has 0x5000 (20K) SRAM | |
@ SRAM is starting from 0x20000000 | |
@ so stack is eq 0x20000000 + 0x5000 = 0x20005000 | |
@ flash starts from 0x08000000 | |
.syntax unified | |
.thumb | |
.cpu cortex-m3 | |
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
data Nat = Zero | Suc Nat | |
fromNat :: Nat -> Integer | |
fromNat Zero = 0 | |
fromNat (Suc n) = fromNat n + 1 | |
add :: Nat -> Nat -> Nat | |
add Zero Zero = Zero | |
add Zero n = n | |
add n Zero = n |
NewerOlder