Skip to content

Instantly share code, notes, and snippets.

View 695Multimedia's full-sized avatar

Steven 695Multimedia

  • 695 Multimedia, LLC
  • sixninefive.com
View GitHub Profile
@695Multimedia
695Multimedia / ImageUtil.class.php
Last active July 22, 2018 21:27
ImageUtil is a PHP class for intelligently resizing images.** cropScale: Given a 640 x 480 image and 240 x 240 target dimension, the image will first be scaled to 320 x 240, then center-cropped to 240 x 240. (compares scale factor of both dimensions and picks closest value to original then center-crops the other)** fitScale: The same image and t…
<?php
/**
** Written by Steven Settlemyre
** http://sixninefive.com
**
** class: ImageUtil
** description: Utility class for scaling and cropping images
*/
@695Multimedia
695Multimedia / Tree.html
Last active December 14, 2015 15:59
HTML tree implementation using only CSS. No JS needed!
<!DOCTYPE HTML>
<html>
<head>
<title>Tree?</title>
<style>
ul.tree{
height: 100%;
list-style: none;
padding: 0;
@695Multimedia
695Multimedia / Accordion.html
Last active December 14, 2015 15:58
Using only radio inputs, CSS3's general sibling selector, and CSS3 transitions, you can make an animated accordion. No JS required!
<!DOCTYPE HTML>
<html>
<head>
<title>Accordions?</title>
<style>
ul.accordion{
height: 100%;
list-style: none;
padding: 0;