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
ProjectName @parallel(true) @autodone(false)
- TaskName @parallel(true) @autodone(false) @context(context) @tags(context) @due(Adjusted Date)
"Task notes can go here"
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
import re
class Filters(object):
config = {}
def __init__(self, obj):
self.config = obj
@crock
crock / accorelib.js
Last active February 15, 2018 01:40
My personal collection of utility functions for JavaScript (ES6)
class accorelib {
debug(message) {
console.log("[DEBUG] " + message)
}
}
@crock
crock / accorelib.py
Last active February 15, 2018 01:28
My personal collection of utility functions for Python
import string
import random
class accorelib:
"""My personal collection of utility functions"""
def __init__(self):
print("accorelib initialized...")
def debug(self, message):
@crock
crock / accorelib.php
Last active February 15, 2018 02:04
My personal collection of utility functions for PHP
<?php
class accorelib {
/**
* Prints out contents of variable surrounded with <pre> tags for easier analysis
*
* @param [Any] $variable - the variable to print out to page
* @return void
*/
@crock
crock / .vimrc
Last active April 14, 2019 17:44
set nocompatible
filetype off
filetype plugin indent on
syntax on
" Sets Vim shell to bash
set shell=/bin/zsh
" Sets undo directory
set undodir=~/.vim/undo
@crock
crock / 1-1000.txt
Created August 29, 2017 13:15 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that

Keybase proof

I hereby claim:

  • I am crock on github.
  • I am croc (https://keybase.io/croc) on keybase.
  • I have a public key whose fingerprint is 2489 EEC5 931A EDB5 972C A462 55DE 6232 6DFC C471

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am crocbuzz on github.
  • I am croc (https://keybase.io/croc) on keybase.
  • I have a public key whose fingerprint is 2489 EEC5 931A EDB5 972C A462 55DE 6232 6DFC C471

To claim this, I am signing this object: