Skip to content

Instantly share code, notes, and snippets.

@kellyegan
kellyegan / tileGenerator.js
Last active July 25, 2016 04:06
Generates patterned tiles from svg shapes, using paper.js
var tilesStarted = false;
var files = ["shapes/a.svg",
"shapes/b.svg",
"shapes/c.svg",
"shapes/d.svg",
"shapes/e.svg",
"shapes/f.svg",
<!DOCTYPE html>
<html>
<head>
<title>Test Google Forms</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
@kellyegan
kellyegan / index.html
Created March 24, 2016 19:17
Basics of JavaScript and DOM interaction
<!doctype html>
<html lang="en">
<head>
<style>
.crossed-out {
text-decoration: line-through;
color: red;
}
@kellyegan
kellyegan / gist:ca3bb5e9b4b1df728cb0
Created April 10, 2015 20:24
Delegate Challenge
//
// ViewController.swift
// DelegateChallenge
//
// Created by Kelly Egan on 4/7/15.
// Copyright (c) 2015 Kelly Egan. All rights reserved.
//
import Foundation
import UIKit
@kellyegan
kellyegan / ViewController.swift
Last active April 2, 2023 00:57
Send emails with attachments in iOS using Swift
//
// ViewController.swift
// SendEmailWithAttachment
//
// Created by Kelly Egan on 3/17/15.
// Copyright (c) 2015 Kelly Egan. All rights reserved.
//
import UIKit
import MessageUI
@kellyegan
kellyegan / ExportAnimationAsSTLs.py
Created October 8, 2014 13:31
Blender addon to export each frame of an animation as an STL
bl_info = {
"name": "Export animation frames as mesh files",
"category": "Export",
}
import bpy
class frameExportMesh( bpy.types.Operator):
"""Export animation frames as mesh files."""
bl_idname = "frame.export_mesh"
@kellyegan
kellyegan / Zoetrope.ino
Created October 8, 2014 12:41
3D Zoetrope Arduino Code
// Zoetrope
// Copyright 2014 Kelly Egan
//
// 3D Strobescopic Zoetrope for Makerfaire 2014
#define BUTTON_PIN 12 //Button to turn zoetrope on and off
#define POT_PIN 0 //Potentiometer used to set speed of motor
#define INDICATOR_PIN 13 //Indicator LED
#define HALL_PIN 3 //Hall effect sensor to determine motor speed