Skip to content

Instantly share code, notes, and snippets.

View stephepush's full-sized avatar

Stephen Peters stephepush

View GitHub Profile
import bs4
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'https://site.com'
#opening up connection, grabbing the page
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
@stephepush
stephepush / fcc-wikipedia-viewer.markdown
Created September 2, 2017 21:03
FCC Wikipedia Viewer
@stephepush
stephepush / fcc-weather-app.markdown
Last active September 3, 2017 04:03
FCC Weather App
@stephepush
stephepush / fcc-random-quote-generator.markdown
Last active September 3, 2017 15:46
FCC Random Quote Generator
@stephepush
stephepush / george-washington-carver-tribute.markdown
Created September 3, 2017 16:57
George Washington Carver Tribute
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 18, 2018 at 01:48 AM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@stephepush
stephepush / index.php
Created December 18, 2018 23:45
php code for survey page project
<?php
try {
require_once 'includes/pdo_connect.php';
$prelim =
"INSERT INTO prelim_guest_Info
(first_name, last_name, email, phone_number)
VALUES (:first_name, :last_name, :email, :phone_number)";
$stmt_prelim = $db->prepare($prelim);
$stmt_prelim->bindParam(':first_name', $_POST["first_name"]);
$stmt_prelim->bindParam(':last_name', $_POST["last_name"]);
@stephepush
stephepush / todo.mysql
Created January 24, 2019 20:43
SQL schema for Laracasts todo app
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 24, 2019 at 08:34 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@stephepush
stephepush / SearchableList.js
Created April 27, 2019 03:35
Code as copied from Taming the State in React's Searchable List component from ~page 5
import React from 'react';
import List from "./List";
import Search from "./Search";
class SearchableList extends React.Component {
constructor(props) {
super(props);
this.state = {
query: '',
@stephepush
stephepush / gist:9f3a9cc9f8042a02f169ff2268281f63
Created January 23, 2020 16:07
email-collector-pg-backup-dump
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.6 (Ubuntu 11.6-1.pgdg19.04+1)
-- Dumped by pg_dump version 12.1 (Ubuntu 12.1-1.pgdg19.04+1)
-- Started on 2020-01-23 11:03:53 EST
SET statement_timeout = 0;