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
| module Main where | |
| import Prelude | |
| import Effect (Effect) | |
| import Vanilla.Dom.Document (body) | |
| import Vanilla.Dom.Element (setStyle) | |
| main :: Effect Unit | |
| main = |
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
| {-# LANGUAGE DataKinds, DeriveGeneric, PolyKinds, TypeFamilies, TypeOperators #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE NamedFieldPuns #-} | |
| {-# LANGUAGE RecordWildCards #-} | |
| {-# LANGUAGE LambdaCase #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| module Main where | |
| import Data.ByteString.Lazy (ByteString) |
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
| "use strict"; | |
| exports.consoleLog = function(arr) { | |
| return function() { | |
| console.log.apply(null, arr); | |
| } | |
| } | |
| exports.anySnoc = function(arr) { | |
| return function(x) { |
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
| #!/usr/bin/env python3 | |
| import datetime | |
| import json | |
| import os | |
| import shutil | |
| import subprocess | |
| import sys | |
| from typing import List, Dict |
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
| #!/usr/bin/env stack | |
| {- stack --resolver=lts-16.16 script | |
| --package diagrams-lib --package diagrams-svg | |
| -} | |
| module Main where | |
| import Data.List (tails) | |
| import Diagrams.Backend.SVG (renderSVG, B) | |
| import Diagrams.Prelude |
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
| #!/usr/bin/env stack | |
| -- stack --resolver=lts-16.16 script --package diagrams-lib --package diagrams-rasterific --package vector --package unordered-containers --package aeson --package bytestring | |
| {-# LANGUAGE NamedFieldPuns #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Control.Arrow ((&&&)) | |
| import Control.Monad (forM_) | |
| import Data.HashMap.Strict ((!)) | |
| import Data.List (tails) |
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
| #!/usr/bin/env python3 | |
| import asyncio | |
| from asyncio import get_event_loop, start_server, StreamReader, StreamWriter, open_connection, gather | |
| import sys | |
| remote_host = "192.168.56.1" | |
| remote_port= 5576 | |
| async def pipe(tag: str, reader: StreamReader, writer: StreamWriter) -> None: | |
| while not reader.at_eof(): |
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
| cmake_minimum_required(VERSION 3.17) | |
| project(yamsex) | |
| set(CMAKE_CXX_STANDARD 17) | |
| include_directories(${PROJECT_NAME} | |
| ${CMAKE_CURRENT_SOURCE_DIR}/../yasm/ | |
| ) | |
| add_executable(${PROJECT_NAME} | |
| main.cpp |
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
| ffmpeg \ | |
| # input video file | |
| -i Пылающий_2018_BDRip.avi \ | |
| # input subtitle file | |
| -i 'Пылающий_2018_BDRip_rus focs.srt' \ | |
| # input another subtitle file | |
| -i 'Пылающий_2018_BDRip_rus r5.srt' \ | |
| # use all streams from first file | |
| -map 0 \ | |
| # ..but don't use stream index 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
| diff --git a/TESTS.md b/TESTS.md | |
| index 287e65a..3a23c15 100644 | |
| --- a/TESTS.md | |
| +++ b/TESTS.md | |
| @@ -93,16 +93,8 @@ import qualified MegaModule as M ((>>>), MonadBaseControl, void, MaybeT(..), joi | |
| ```haskell expect | |
| import qualified MegaModule as M | |
| - ( Either | |
| - , Maybe(Just, Nothing) |