Skip to content

Instantly share code, notes, and snippets.

View jkonowitch's full-sized avatar

Jeffrey Konowitch jkonowitch

  • New York
View GitHub Profile
@jkonowitch
jkonowitch / urlgrep
Created March 11, 2024 17:05 — forked from zmwangx/urlgrep
Python script to extract URLs from HTML documents.
#!/usr/bin/env python3
"""Extract URLs from HTML documents."""
import argparse
import re
import sys
import urllib.parse
import bs4
echo ""
echo "If you haven't already, please sign up for a github account"
#read to capture user input, saved as a variable as the third argument here
read -p "First Name: " fname
read -p "Last Name: " lname
read -p "Github Username (CASE SENSITIVE AND DON'T CHANGE THIS LATER): " github_name
read -p "Github Email: " github_email
read -s -p "Github Password: " github_password
@jkonowitch
jkonowitch / pokemon.json
Last active August 29, 2015 14:10 — forked from shri/pokemon.json
[
{
"name":"Bulbasaur",
"attack":49,
"defense":49,
"type":"grass",
"moves":[
"tackle",
"vine whip"
],
#################################### spec/models/episode_spec.rb
require 'spec_helper'
# here is the original description idea before refactoring;
# it works, but can be done in a somewhat cleaner and more Rails-y way below
#
# describe "the show begins" do
#
# context "the episode starts" do # FYI, context _is_an_alias_ for describe! they work the same!