Skip to content

Instantly share code, notes, and snippets.

View silentsokolov's full-sized avatar
:electron:
Self-improvement is self-destruction

Dmitriy Sokolov silentsokolov

:electron:
Self-improvement is self-destruction
View GitHub Profile

Keybase proof

I hereby claim:

  • I am silentsokolov on github.
  • I am silentsokolov (https://keybase.io/silentsokolov) on keybase.
  • I have a public key ASCycoiBDSyfTckIfn8ncCk7q225zKJuiU8_bkSFoaHZlwo

To claim this, I am signing this object:

@silentsokolov
silentsokolov / Go.sublime-settings
Last active August 21, 2019 12:13
The Public Sublime Text 3 Settings for Python/Golang developers
{
"tab_size": 4,
"translate_tabs_to_spaces": false,
}
@silentsokolov
silentsokolov / keybase.md
Created September 18, 2017 09:00
keybase.md

Keybase proof

I hereby claim:

  • I am silentsokolov on github.
  • I am silentsokolov (https://keybase.io/silentsokolov) on keybase.
  • I have a public key ASA5Ya4ceug4JYwwMf31unXmhghSCwc15DFJFbq1ez2UwAo

To claim this, I am signing this object:

@silentsokolov
silentsokolov / get_youtube_id.py
Last active November 9, 2023 22:16
Python: get youtube id
# Get youtube id
#http://youtu.be/5Y6HSHwhVlY
#http://www.youtube.com/embed/5Y6HSHwhVlY?rel=0
#http://www.youtube.com/watch?v=ZFqlHhCNBOI
regex = re.compile(r'(https?://)?(www\.)?(youtube|youtu|youtube-nocookie)\.(com|be)/(watch\?v=|embed/|v/|.+\?v=)?(?P<id>[A-Za-z0-9\-=_]{11})')
match = regex.match(self.youtube_url)