Skip to content

Instantly share code, notes, and snippets.

View cwsaylor's full-sized avatar

Chris Saylor cwsaylor

View GitHub Profile
@yash201040
yash201040 / polygon-api.py
Last active January 15, 2024 19:23
Get Nasdaq100 stocks trade data for trailing 2 years from polygon.io
from bs4 import BeautifulSoup
from datetime import timedelta
import pandas as pd
import pandas_market_calendars as mcal
import requests
import time
# ----------------------------------------------
# Scrape NASDAQ 100 stock ticker names from wiki
# ----------------------------------------------
@javebratt
javebratt / master-firestore.md
Last active November 23, 2017 16:29
Short note for the people who pre-ordered Master Firestore

Master Firestore

Hey, thank you for pre-ordering my book, your support helps me create more free content for the people that can't afford my paid courses :)

I wanted to write a short note on how this pre-order is going to work.

I already have the app built, it's a collaborative shopping app (I know it sounds weird, but give me a sec to explain)

It showcases:

@chrismccoy
chrismccoy / gitcheats.txt
Last active April 20, 2024 08:50
git cheats
# alias to edit commit messages without using rebase interactive
# example: git reword commithash message
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f"
# edit all commit messages
git rebase -i --root
# clone all your repos with gh cli tool
gh repo list --json name -q '.[].name' | xargs -n1 gh repo clone
@anantpatil
anantpatil / tmux.conf
Created April 16, 2012 09:03
My tmux configuration
# Settings courtesy internet
# Bind C-a (Ctrl+a) to default action on tmux
set-option -g prefix C-a
unbind C-b
# Command sequence for nested tmux when running tmux inside another tmux, you
# need to send command to inner tmux
bind-key a send-prefix
@dhh
dhh / gist:1014971
Created June 8, 2011 18:09
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end