Skip to content

Instantly share code, notes, and snippets.

View trey's full-sized avatar
🐢
Slow and steady

Trey Piepmeier trey

🐢
Slow and steady
View GitHub Profile
@trey
trey / bw-film-development.md
Last active March 20, 2020 20:46
Black and White Film Development Checklist

Black and White Film Development Checklist

Shopping List

  • Film tank
  • Changing bag
  • Developer
  • Stop bath (optional)
  • Fixer
  • Hypo-clear
@trey
trey / blank.sh
Created September 19, 2015 16:34
Script to install a new Blank project.
function blank() {
# Create a new project based on
# https://github.com/trey/blank
if [ -d $HOME/Code/blank ]; then
if [ $# -eq 1 ]; then
echo "Installing a new project based on Blank."
git clone ~/Code/Blank $1
cd $1
script/setup
rm -rf .git
@trey
trey / .htaccess
Created July 30, 2015 23:14
Redirect a Website Permanently
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?oldwebsite.com$ [NC]
RewriteRule ^(.*)$ http://newwebsite.com/$1 [R=301,L]
@trey
trey / polymer-click-event.md
Last active August 10, 2016 11:02
Setting a Click Event on a Polymer Element.

Setting a Click Event on a Polymer Element.

Polymer({
    is: 'your-element',

    listeners: {
        'click': '_handleClick'
    },
@trey
trey / A-README.md
Last active August 29, 2015 14:25
Quickly Look at a static PHP site using Grunt instead of Apache

Quickly Look at a static PHP site using Grunt instead of Apache

Installation

  • Add these files to the root of your project.
  • Run grunt from the command line.

This is made possible with the magic of grunt-php.

@trey
trey / _README.md
Last active September 15, 2016 02:06
Icon React Component

Icon React Component

For use with this setup.

Use:

<Icon shape="edit" />
@trey
trey / isreg.sh
Created July 10, 2015 19:14
See if a domain is registered.
#! /usr/bin/env ruby
#
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com
#
puts `whois #{ARGV[0]}` =~ /No match for \"#{ARGV[0]}\"/mi ? "No" : "Yes"
  • The Wonderful Wizard of Oz
  • The Marvelous Land of Oz
  • Ozma of Oz
  • Dorothy and the Wizard in Oz
  • The Road to Oz
  • The Emerald City of Oz
  • The Patchwork Girl of Oz
  • Tik-Tok of Oz
  • The Scarecrow of Oz
  • Rinkitink in Oz
@trey
trey / _triangle.scss
Created May 8, 2015 15:30
Sass Triangle Mixin
// https://css-tricks.com/snippets/css/css-triangle/
@mixin triangle ($color: #ccc, $direction: right, $size: 5px) {
height: 0;
width: 0;
@if $direction == up {
border-bottom: $size solid $color;
border-left: $size solid transparent;
border-right: $size solid transparent;
} @else if $direction == right {
@trey
trey / stephenking.json
Created April 18, 2015 17:43
Stephen King's Books in JSON
[
{
"title": "Carrie",
"year": 1974
},
{
"title": "'Salem's Lot",
"year": 1975
},
{