Skip to content

Instantly share code, notes, and snippets.

View crock's full-sized avatar
🐊
Probably designing or coding something...

Alex Crocker crock

🐊
Probably designing or coding something...
View GitHub Profile
import requests # http://docs.python-requests.org/en/master/
from bs4 import BeautifulSoup # https://www.crummy.com/software/BeautifulSoup/
def check(name):
"""
Function to check the availability of a specific Steam ID.
"""
session = requests.Session() # Initilzes a new session object from the requests module
matches = [] # Creates an empty list to hold our match objects
requestUrl = "https://steamcommunity.com/id/%s" % name # Creates a variable to hold our request url which should be the url to the Steam profile page
ProjectName @parallel(true) @autodone(false)
- TaskName @parallel(true) @autodone(false) @context(context) @tags(context) @due(Adjusted Date)
"Task notes can go here"
@crock
crock / script_runner.py
Last active March 5, 2019 00:05
Simple Python script to run a specific EXE in a loop while providing different arguments per iteration (Requires Python 3.6+)
#!/usr/bin/env python3
# Copyright 2019
# Alex Crocker - [email protected]
import os
import platform
import subprocess
from argparse import ArgumentParser, RawDescriptionHelpFormatter
import glob
@crock
crock / Header.jsx
Created August 18, 2019 23:10
Example of a functional component in React that uses React Hooks to manage state within the component
import React, { useState, useRef, useEffect } from 'react';
import MobileDrawer from 'src/components/Client/UI/Menu/MenuSubComponents/MobileDrawer';
import { Icon } from 'antd';
import Router from 'next/router';
import Logo from 'src/components/Client/UI/HeaderSubComponents/Logo';
import Searchbar from 'src/components/Client/UI/HeaderSubComponents/SearchBar';
import Menu from 'src/components/Client/UI/Menu/Menu';
import SignIn from 'src/components/Client/UI/HeaderSubComponents/SignIn';
const headerVerticalBar = {
@crock
crock / postcss.config.js
Last active May 7, 2020 17:22 — forked from Khaledgarbaya/postcss.config.js
Gatsby TailwindCSS + TUI Recipe
module.exports = {
plugins: [require("tailwindcss"), require("autoprefixer")],
}
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
// You can delete this file if you're not using it
const fetch = require("node-fetch");
const axios = require("axios");
@crock
crock / cv.txt
Created November 15, 2020 14:26
Alexander Crocker - Curriculum Vitae
_________ __
\_ ___ \_______ ____ ____ | | __ ___________
/ \ \/\_ __ \/ _ \_/ ___\| |/ // __ \_ __ \
\ \____| | \( <_> ) \___| <\ ___/| | \/
\______ /|__| \____/ \___ >__|_ \\___ >__|
\/ \/ \/ \/
Alexander Crocker
@crock
crock / .gitignore
Last active August 1, 2021 06:42
Telegram Token Finder
identifiers.txt
tokens.txt
@crock
crock / DomainQualityMeter.tsx
Last active February 6, 2021 18:28
A React component for estimating and scoring the quality of a domain name
import React, { useState, useEffect } from 'react'
import styled, { css } from 'styled-components'
/**
* Domain Quality Criteria
*
* - domain length
* - if the domain has hyphens or not
* - if the domain has numbers or not
* - if the domain is using a common tld/extension