Use this knowledge at your own risk.
youtube-dl will allow you to download entire youtube playlists and store them as MP3s. This will also allow you to download individual MP3s.
| import requests | |
| import pandas as pd | |
| import os, sys | |
| token = "" | |
| try: | |
| token = os.environ['FB_TOKEN'] | |
| except: | |
| print "Set FB_TOKEN variable" | |
| sys.exit(-1) |
| import tweepy | |
| import csv | |
| import pandas as pd | |
| ####input your credentials here | |
| consumer_key = '' | |
| consumer_secret = '' | |
| access_token = '' | |
| access_token_secret = '' | |
| auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
| # -*- coding: utf-8 -*- | |
| import csv | |
| import time | |
| import re | |
| import codecs, cStringIO | |
| from argparse import ArgumentParser | |
| import tweepy |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| class RandomStringGenerator | |
| def without_numbers(length) | |
| random_string(length, alphabet) | |
| end | |
| def with_numbers(length) | |
| random_string(length, alphabet + numbers) | |
| end | |
| private |
| ''' quick example showing how to attach a pdf to multipart messages | |
| and then send them from SES via boto | |
| ''' | |
| from email.mime.text import MIMEText | |
| from email.mime.application import MIMEApplication | |
| from email.mime.multipart import MIMEMultipart | |
| import boto |
| class Group | |
| module Error | |
| class Standard < StandardError; end | |
| class AlreadyAMember < Standard; end | |
| class NotPermittedToJoin < Standard; end | |
| end | |
| def join user | |
| raise Error::NotPermittedToJoin unless self.permitted?(user) | |
| raise Error::AlreadyAMember if self.member?(user) |
| {"nodes":[{"name":"Myriel","group":1},{"name":"Napoleon","group":1},{"name":"Mlle.Baptistine","group":1},{"name":"Mme.Magloire","group":1},{"name":"CountessdeLo","group":1},{"name":"Geborand","group":1},{"name":"Champtercier","group":1},{"name":"Cravatte","group":1},{"name":"Count","group":1},{"name":"OldMan","group":1},{"name":"Labarre","group":2},{"name":"Valjean","group":2},{"name":"Marguerite","group":3},{"name":"Mme.deR","group":2},{"name":"Isabeau","group":2},{"name":"Gervais","group":2},{"name":"Tholomyes","group":3},{"name":"Listolier","group":3},{"name":"Fameuil","group":3},{"name":"Blacheville","group":3},{"name":"Favourite","group":3},{"name":"Dahlia","group":3},{"name":"Zephine","group":3},{"name":"Fantine","group":3},{"name":"Mme.Thenardier","group":4},{"name":"Thenardier","group":4},{"name":"Cosette","group":5},{"name":"Javert","group":4},{"name":"Fauchelevent","group":0},{"name":"Bamatabois","group":2},{"name":"Perpetue","group":3},{"name":"Simplice","group":2},{"name":"Scaufflaire","group":2}, |
| <!DOCTYPE html> | |
| <html > | |
| <head> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| </head> | |
| <body> | |
| <div class="example_div"></div> | |
| <script type="text/javascript"> | |
| var tooltip = d3.select("body") | |
| .append("div") |