Skip to content

Instantly share code, notes, and snippets.

View eddyizm's full-sized avatar
🐍
one more project

eddyizm eddyizm

🐍
one more project
View GitHub Profile
@eddyizm
eddyizm / folderize.py
Created July 17, 2022 16:08
Script to move all files in a directory into a folder named after the file.
''' usage: python folderize.py /path/to_process/ '''
import os
import shutil
import sys
def generate_dir(files: str, dir: str):
for file in files:
old_path = os.path.join(dir, file)
@eddyizm
eddyizm / stateHash.ts
Created September 21, 2021 05:46
Type script USA State hash
const stateHash: Record<string, string> = {
AL: "Alabama",
AK: "Alaska",
AZ: "Arizona",
AR: "Arkansas",
CA: "California",
CO: "Colorado",
CT: "Connecticut",
DE: "Delaware",
FL: "Florida",
@eddyizm
eddyizm / FormHTML
Last active December 13, 2017 01:16
Form code
<form id="contactform" action-xhr="//formspree.io/myemail@me.com" method="POST">
<label class="www-example-label bold mb3">Send a message</label>
<input type="hidden" name="_next" value="//resume/thanks/">
<div class="flex flex-column items-center">
<div class="ampstart-input inline-block relative m0 p0 mb3 ">
<input type="email" name="email" id="ip1" class="block border-none p0 m0 user-valid valid" placeholder="Your email">
<label for="ip1" class="absolute top-0 right-0 bottom-0 left-0" aria-hidden="true">Your email</label>
</div>
</div>
<div class="ampstart-input inline-block relative m0 p0 mb3 ">