Skip to content

Instantly share code, notes, and snippets.

@callahanrts
callahanrts / espn-api-list.md
Created December 26, 2022 18:32 — forked from nntrn/espn-api-list.md
list of nfl api endpoints from espn

List of NFL API Endpoints

View updated list here

This page is limited to NFL endpoints but can be refashioned for other sports leagues (i.e. /sports/football/leagues/nfl/ => /sports/baseball/leagues/mlb/)


Getting started

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Your page title</title>
<meta name="description" content="Your page description">
</head>
<body>
<!-- Put Embed Code Here -->
</body>
@callahanrts
callahanrts / surfing_keys.js
Last active October 30, 2018 16:37
Surfing Keys
map('P', 'cc');
map('gi', 'i');
map('F', 'gf');
map('gf', 'w');
map('`', '\'');
// save default key `t` to temp key `>_t`
map('>_t', 't');
// create a new key `t` for default key `on`
map('t', 'on');
// create a new key `o` for saved temp key `>_t`
@callahanrts
callahanrts / ssl_puma.sh
Last active March 5, 2017 21:29 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
#!/bin/env ruby
# lazy hack from Robert Klemme
module Memory
# sizes are guessed, I was too lazy to look
# them up and then they are also platform
# dependent
REF_SIZE = 4 # ?
OBJ_OVERHEAD = 4 # ?
@callahanrts
callahanrts / github.vim
Last active November 25, 2021 09:14
Vim command to open a browser tab at the selected line of any git project.
function! ShowOnGithub()
let u = system("echo ${${${$(git --git-dir=.git config --get remote.origin.url)#[email protected]:}%.git}#https://github.com/} | xargs echo -n")
silent exec "!open "."https://github.com/".u."/blob/master/".@%.'\#L'.line(".")
endfunction
command! -nargs=0 ShowOnGithub call ShowOnGithub()
nnoremap <Leader>gh :ShowOnGithub<CR>
@callahanrts
callahanrts / cvim_css
Last active December 14, 2017 08:50
cVim CSS
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar {
font-family: "Lucida Console", Monaco, monospace;
font-size: 11pt !important;
-webkit-font-smoothing: antialiased !important;
}
#cVim-link-container {
position: absolute;
pointer-events: none;
width: 100%; left: 0;
@callahanrts
callahanrts / cvim_configuration
Last active August 29, 2015 14:07
Vim configuration for cvim
" Settings
set nosmoothscroll
set noautofocus
let mapleader = " "
let barposition = "bottom"
let scrollstep = 70
let searchlimit = 50
let blacklists = ["https://mail.google.com/*"]
" let autofocus = false
let hintcharacters = "uiopjklmn"
@callahanrts
callahanrts / slack_chat_server
Created June 18, 2014 16:51
The server that is created to accept notifications from the chrome extension
@app = express();
@app.use(bodyParser())
@app.all '/*', (req, res, next) ->
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
next();
server = @app.listen 51932, () ->
console.log('Listening on port %d', server.address().port);