Skip to content

Instantly share code, notes, and snippets.

View gk3's full-sized avatar

George Kedenburg III gk3

View GitHub Profile
function validateEmail(email) {
var re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return re.test(email);
}
@gk3
gk3 / 3dtouch.coffee
Last active October 1, 2015 15:17
3D Touch for Framer
# basic setup of layers
test = new Layer width: Screen.width, height: Screen.height
circle = new Layer
circle.center()
forceValue = new Layer width: Screen.width
forceValue.html = "0"
forceValue.style =
textAlign: "center"
@gk3
gk3 / icon_categorizer.py
Last active May 31, 2024 23:01
organize a list of icons using an LLM
# Importing necessary libraries
# To install the dependencies, use the following commands:
# pip install openai
# pip install pandas
import json # Built-in library, no installation required
import openai # For interacting with OpenAI's API
import pandas as pd # For data manipulation and analysis
client = openai.OpenAI()