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
; Websocketclient by Netzvamp | |
; Version: 2016/01/08 | |
DeclareModule WebsocketClient | |
Declare OpenWebsocketConnection(URL.s) | |
Declare SendTextFrame(connection, message.s) | |
Declare ReceiveFrame(connection, *MsgBuffer) | |
Declare SetSSLProxy(ProxyServer.s = "", ProxyPort.l = 8182) | |
Enumeration |
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
IsDevTools ! #True |
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
// Try the following, which opens a File Explorer window on the computer running Node.js: | |
require('child_process').exec('start "" "c:\\test"'); |
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
/** | |
* Простой шаблонизатор строк | |
*/ | |
const formatString = (template, params = {}) => { | |
const names = Object.keys(params); | |
const vals = Object.values(params); | |
return new Function(...names, `return \`${template}\`;`)(...vals); | |
}; |
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
# импортируем модули для работы с windows оберткой | |
import win32api, win32con, win32gui | |
import time, win32com.client | |
#функция клика в определенном месте | |
def click(x,y): | |
# сначала выставляем позицию | |
win32api.SetCursorPos((x,y)) | |
time.sleep(0.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
#! /usr/bin/env python3 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
import sys | |
COLOR = "\033[1;32m" | |
RESET_COLOR = "\033[00m" | |
class S(BaseHTTPRequestHandler): | |
def _set_response(self): |
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
/* чтобы размыть под layer CSS (например, для модалок) */ | |
backdrop-filter: blur(7px); |
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
padding: min(85%, 9.75em) 0; |
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
Conditionally adding entries inside Array and object literals | |
http://2ality.com/2017/04/conditional-literal-entries.html |
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
https://stackoverflow.com/questions/5651654/ffmpeg-how-to-split-video-efficiently - VIDEO SPLIT | |
time ffmpeg -v quiet -y -i input.ts -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 -sn test1.mkv | |
time ffmpeg -v quiet -y -i input.ts -vcodec copy -acodec copy -ss 00:30:00 -t 01:00:00 -sn test2.mkv |