This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/dcast/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="refined" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[django-html]": { | |
"editor.defaultFormatter": "monosans.djlint" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "monosans.djlint" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
import dash_html_components as html | |
import dash_bootstrap_components as dbc | |
external_stylesheets = [dbc.themes.BOOTSTRAP, "assets/style.css"] | |
def card(name, desc, value, color): | |
"""KPI Card Component""" | |
return dbc.Col( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
1. Setup a Twitter Developer account and create new App, get its consumer key and consumer secret and replace them below | |
2. Replace TWEETS_DB, QUERY, and LANGUAGE values | |
3. Install required packages: `pip install tweepy schedule` | |
4. Run process using `python tweets_to_db.py` | |
""" | |
import tweepy | |
import sqlite3 | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import boto3 | |
import gspread | |
import jinja2 | |
from oauth2client.service_account import ServiceAccountCredentials | |
AWS_PROFILE = "INSERT-AWS-PROFILE-HERE" | |
BUCKET = "INSERT-BUCKET-NAME-HERE" | |
WORKBOOK = "INSERT-WORKBOOK-NAME-HERE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
<title>My Pokemon Stats</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aiohttp | |
import asyncio | |
import os | |
from aiohttp import ClientSession | |
GOOGLE_BOOKS_URL = "https://www.googleapis.com/books/v1/volumes?q=isbn:" | |
LIST_ISBN = [ | |
'9780002005883', |