Skip to content

Instantly share code, notes, and snippets.

🐊
Probably designing or coding something...

Alex Crocker crock

View GitHub Profile
@crock
crock / script_runner.py
Last active Mar 5, 2019
Simple Python script to run a specific EXE in a loop while providing different arguments per iteration (Requires Python 3.6+)
View script_runner.py
#!/usr/bin/env python3
# Copyright 2019
# Alex Crocker - croc122@gmail.com
import os
import platform
import subprocess
from argparse import ArgumentParser, RawDescriptionHelpFormatter
import glob
View omnifocus.taskpaper
ProjectName @parallel(true) @autodone(false)
- TaskName @parallel(true) @autodone(false) @context(context) @tags(context) @due(Adjusted Date)
"Task notes can go here"
View steamidchecker.py
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
View Filters.py
import re
class Filters(object):
config = {}
def __init__(self, obj):
self.config = obj
@crock
crock / accorelib.js
Last active Feb 15, 2018
My personal collection of utility functions for JavaScript (ES6)
View accorelib.js
class accorelib {
debug(message) {
console.log("[DEBUG] " + message)
}
}
@crock
crock / accorelib.py
Last active Feb 15, 2018
My personal collection of utility functions for Python
View accorelib.py
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 Feb 15, 2018
My personal collection of utility functions for PHP
View accorelib.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
*/
View .vimrc
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 Aug 29, 2017 — forked from deekayen/1-1000.txt
1,000 most common US English words
View 1-1000.txt
the
of
to
and
a
in
is
it
you
that
View keybase.md

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:

You can’t perform that action at this time.