https://regex101.com/r/1AI0bu/3
(\+?6)?\ ?0\ ?\d{1,2}\-?\s?\d{3,4}\s?\d{3,4}
Without 080 prefix: https://regex101.com/r/1DlJgu/3
@import "https://rawgit.com/AlexFlipnote/Discord_MaterialTheme/master/theme.css"; | |
/* For Discord_MaterialTheme, replace the default red no-border indicator to white black border circle. */ | |
.guilds-wrapper .guilds .guild.selected.unread:before, | |
.guilds-wrapper .guilds .guild.selected:before, | |
.guilds-wrapper .guilds .guild.unread:before { | |
background: #eaeaea; | |
box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, .15); | |
border: 1px solid #212121; | |
height: 11px; |
TIP: If you want to find the exact Pokedex number, surround one space between the number in Ctrl+F, e.g. " 1 " gives you exactly 1 result. | |
------------------------------------------------------------ | |
| | | | | |
| Key | Name | Region | | |
| | | | | |
|----------------------------------------------------------| | |
| | | | | |
| 1 | Bulbasaur | Kanto | | |
| | | | |
import youtube_dl | |
ydl = youtube_dl.YoutubeDL({ | |
'format': 'bestvideo+bestaudio', | |
"nocheckcertificate": True, | |
"keepvideo": True | |
}) | |
with open("songs.txt", 'r') as q: | |
ydl.download(q.readlines()) |
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
class DotDict(dict): | |
""" A dictionary whose attributes are accessible by dot notation. | |
This is a variation on the classic `Bunch` recipe (which is more limited | |
and doesn't give you all of dict's methods). It is just like a dictionary, | |
but its attributes are accessible by dot notation in addition to regular | |
`dict['attribute']` notation. It also has all of dict's methods. | |
.. doctest:: |
https://regex101.com/r/1AI0bu/3
(\+?6)?\ ?0\ ?\d{1,2}\-?\s?\d{3,4}\s?\d{3,4}
Without 080 prefix: https://regex101.com/r/1DlJgu/3
### Keybase proof | |
I hereby claim: | |
* I am ngbeslhang on github. | |
* I am ngbeslhang (https://keybase.io/ngbeslhang) on keybase. | |
* I have a public key ASBevUCC8AlHQ3u-T8B_vVJTlb-Q3UYVtRoLnuFo5cV4TQo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
# MADE AND TESTED ONLY FOR YOUTUBE PLAYLISTS | |
# Requires youtube-dl option `--write-info-json` to work | |
# For this to work, you need to put this script into the directory (folder) of the videos and JSON files | |
import os | |
import json | |
# Separate JSON metadata files and media files | |
for path, dirname, filenames in os.walk(os.getcwd()): | |
json_filenames = [name for name in filenames if name.endswith('.info.json')] | |
media_filenames = [name for name in filenames if not name.endswith('.info.json')] |
#!/usr/bin/env python3 | |
import time | |
# REMEMBER TO CHANGE THE VARIABLES BELOW BEFORE YOU RUN THE SCRIPT | |
_URL = 'http://localhost/tmp/derp.html' | |
_NUMBER = 1000 | |
def test_urllib2(): |