Skip to content

Instantly share code, notes, and snippets.

View twelvedogs's full-sized avatar
💭
Clogged with dogs

twelvedogs

💭
Clogged with dogs
  • Benders
View GitHub Profile
@twelvedogs
twelvedogs / dl.py
Last active February 6, 2025 20:06
def do_download(url, addedBy):
isPlaylist = url.find('&list=')
if(isPlaylist > -1):
url = url[0:isPlaylist]
# TODO: need to catch malformed url
# TODO: check if folder exists probably
ydl = youtube_dl.YoutubeDL({'outtmpl': os.path.join(cfg.download_path, '%(title)s - %(id)s.%(ext)s'),
'format': 'bestvideo+bestaudio/best',
'getfilename': True,
@twelvedogs
twelvedogs / keeptest.html
Last active September 13, 2017 04:34
google keep test
<html>
<head>
</head>
<body>
<style>
.container {
-webkit-column-count: auto;
-moz-column-count: auto;
column-count: auto;