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
@crock
crock / RangeSlider.js
Last active January 12, 2024 16:48
Multi-handle range slider input (HTML5 Web Component)
import { polyfillDeclarativeShadowDom } from "./pollyfill";
/**
* Multi-handle range slider input Web Component
* @class RangeSlider
* @extends HTMLElement
* @property {number} min - Minimum value of the slider
* @property {number} max - Maximum value of the slider
* @property {number} step - Step value of the slider
* @property {number[]} values - Array of values for each handle
@crock
crock / .gitignore
Last active January 7, 2024 21:46
Scrape all expiring, pending delete, and exclusive auction lists from NameJet.com and SnapNames.com
.cache
node_modules
.DS_Store
package-lock.json
lists
tmp
@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
@crock
crock / .gitignore
Last active August 1, 2021 06:42
Telegram Token Finder
identifiers.txt
tokens.txt
@crock
crock / cv.txt
Created November 15, 2020 14:26
Alexander Crocker - Curriculum Vitae
_________ __
\_ ___ \_______ ____ ____ | | __ ___________
/ \ \/\_ __ \/ _ \_/ ___\| |/ // __ \_ __ \
\ \____| | \( <_> ) \___| <\ ___/| | \/
\______ /|__| \____/ \___ >__|_ \\___ >__|
\/ \/ \/ \/
Alexander Crocker
/**
* 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 / 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")],
}
@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 / 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 - croc122@gmail.com
import os
import platform
import subprocess
from argparse import ArgumentParser, RawDescriptionHelpFormatter
import glob