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
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="lambda-mod" | |
source $ZSH/oh-my-zsh.sh | |
VISUAL="nvim" | |
plugins=(git git-extras) | |
# Path Management | |
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" | |
# Aliases for utilities |
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
export PATH="$PATH:$HOME/.npm-packages/bin" | |
export PATH="$PATH:$HOME/.local/bin" | |
export PATH="$PATH:$HOME/.gem/ruby/2.4.0/bin" |
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
#!/usr/bin/python | |
import sys | |
import os | |
import argparse | |
import re | |
import requests | |
from subprocess import call | |
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
async function add3(x) { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve(x + 3); | |
}, 2000); | |
}); | |
} | |
async function t3() { | |
let x; |
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
from splinter import Browser | |
from bs4 import BeautifulSoup | |
import tomd | |
from html_sanitizer import Sanitizer | |
# pip install tomd splinter html-sanitizer beautifulsoup4 | |
browser = Browser( | |
'chrome', user_agent="Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)") |
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
from itertools import count, product | |
from string import digits, ascii_lowercase, ascii_uppercase | |
from sys import stdout | |
import argparse | |
combinations = ascii_lowercase | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--digits", "-d", help="include numbers", action="store_true") | |
parser.add_argument("--upper", "-u", help="include uppercase letters", action="store_true") | |
args = parser.parse_args() |
- In The Wee Small Hours - Frank Sinatra (1955)
- Ellington at Newport _56 - Duke Ellington (1956)
- Elvis Presley - Elvis Presley (1956)
- Songs For Swingin' Lovers - Frank Sinatra (1956)
- Birth of the Cool - Miles Davis (1956)
- Tragic Songs Of Life - The Louvin Brothers (1956)
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
from datetime import datetime | |
from collections import namedtuple | |
def normalize_date(ct, m = '00', s = '00'): | |
"""Return formated time_object with hour - 1, | |
and zero-filled minutes and seconds. | |
>>> normalize_date(datetime.strptime('Jun 1 2005 1:33PM', '%b %d %Y %I:%M%p')) | |
Date(year=2005, month=6, day=1, hour=12, minute='00', second='00') |