Skip to content

Instantly share code, notes, and snippets.

View jjuel's full-sized avatar

Jordan Juel jjuel

View GitHub Profile
@jjuel
jjuel / configuration.nix
Created June 9, 2021 19:18
My configuration.nix file
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@jjuel
jjuel / flake.nix
Created June 9, 2021 18:48
My flake.nix for System Configuration
description = "JSJ's System Config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.05";
home-manager.url = "github:nix-community/home-manager/release-21.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }:
{
"id": "BIG-12",
"name": "Big 12",
"teams": [{
"id": "BAY",
"name": "Bears",
"market": "Baylor",
"venue": {
"id": "02e0179d-2c03-41ec-b84e-ce37a66bc1c7",
"country": "USA",
def get_scores(url):
'''Get scores with BS from given URL'''
scores = []
source_code = requests.get(url)
plain_text = source_code.text
soup = BeautifulSoup(plain_text, 'lxml')
for text in soup.find_all('pre'):
if text.text is None:
continue