Skip to content

Instantly share code, notes, and snippets.

View sulyi's full-sized avatar

Ákos Sülyi sulyi

  • Miskolc, Hungary
View GitHub Profile
from itertools import product
from yt_dlp import YoutubeDL
print('Legacy:')
for no_color in (True, False):
ydl = YoutubeDL({'no_color': no_color})
print(f'no_color={no_color}')
print('got: ', {k: ydl.params.get(k) for k in ('no_color', 'color_mode')})
print('_allow_colors:', ydl._allow_colors, sep='\n')
@sulyi
sulyi / .gitignore
Last active June 2, 2022 17:12
Test print out of yt-dlp/yt-dlp#3504
*.patch
@sulyi
sulyi / ECMAScript_5.1.ebnf
Last active March 9, 2022 10:53
ECMAScript_5.1 grammar
Program ::= SourceElements?
SourceElements ::= SourceElement | SourceElements SourceElement
SourceElement ::= Statement | FunctionDeclaration
FunctionDeclaration ::= 'function' Identifier '(' FormalParameterList? ')' '{' FunctionBody '}'
FormalParameterList ::= Identifier | FormalParameterList ',' Identifier
FunctionBody ::= SourceElements?
Statement ::= Block | VariableStatement | EmptyStatement | ExpressionStatement | IfStatement | IterationStatement | ContinueStatement | BreakStatement |