Skip to content

Instantly share code, notes, and snippets.

View hughdbrown's full-sized avatar

Hugh Brown hughdbrown

View GitHub Profile
@hughdbrown
hughdbrown / email-gen.py
Last active November 26, 2021 17:17
Given a first name and last name and domain, generate probable permutations for email address
#!/usr/bin/env python3
import click
@click.command()
@click.option('--first')
@click.option('--last')
@click.option('--domain')
@click.option('--middle', default=None)
def main(first, last, domain, middle):
@hughdbrown
hughdbrown / github-pages-react.txt
Last active June 16, 2020 14:31
Github pages with react resource
# Github pages
https://pages.github.com/
https://help.github.com/en/github/working-with-github-pages/setting-up-a-github-pages-site-with-jekyll
https://help.github.com/en/github/working-with-github-pages/about-github-pages
http://jmcglone.com/guides/github-pages/
https://www.npmjs.com/package/gh-pages
https://dev.to/yuribenjamin/how-to-deploy-react-app-in-github-pages-2a1f
https://medium.com/the-andela-way/how-to-deploy-your-react-application-to-github-pages-in-less-than-5-minutes-8c5f665a2d2a
https://github.com/gitname/react-gh-pages
@hughdbrown
hughdbrown / system-design-interview-notes.txt
Created June 16, 2020 14:26
System design interview notes
System design interview framework
Sam Gavis-Hughson
1. Understand the details of the system
2. Simple high-level architecture
3. Optimize
4. ....
1. What is your interviewer asking?
@hughdbrown
hughdbrown / employment-resources.txt
Created June 16, 2020 14:25
Top employment practice/learning resources
Building and deploying web/react apps
https://mherman.org/
https://testdriven.io/
14 Patterns to Ace Any Coding Interview Question | Hacker Noon
https://hackernoon.com/14-patterns-to-ace-any-coding-interview-question-c5bb3357f6ed
Free Amazon AWS Tutorial - AWS Essentials (2019)
https://www.udemy.com/course/linux-academy-aws-essentials-2019/
@hughdbrown
hughdbrown / tf-idf-sample.py
Created June 16, 2020 14:24
TF-IDF sample code
from math import log
from collections import Counter
class TFIDF(object):
def __init__(self, corpus):
self.corpus = corpus
self.ndocs = len(corpus)
self.documents = [Counter(doc.split()) for doc in corpus]
self.words = sum(sum(doc.values()) for doc in self.documents)
@hughdbrown
hughdbrown / tabular-data-link.txt
Created June 16, 2020 14:23
Jason McGhee on tabular data with neural networks
@hughdbrown
hughdbrown / websockets-sample.py
Created June 16, 2020 14:21
websockets sample code
import asyncio
import json
import websockets
async def subscribe_to_exchange():
async with websockets.connect('wss://ws-feed.gdax.com') as websocket:
subscribe = {
"type": "subscribe",
"product_ids": ["BTC-USD"],
"channels": ["full"]
# Websockets
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
# Michael Herman
https://mherman.org/
https://testdriven.io/
# Asyncio in python
https://www.integralist.co.uk/posts/python-asyncio/
@hughdbrown
hughdbrown / recommended-coursera.txt
Last active June 16, 2020 14:38
Recommended coursera courses