Skip to content

Instantly share code, notes, and snippets.

View adelegard's full-sized avatar

Alex Delegard adelegard

  • Minneapolis, MN
View GitHub Profile
@adelegard
adelegard / Intersecting Rectangles.markdown
Created September 18, 2015 22:03
Intersecting Rectangles

Intersecting Rectangles

Pen for working through the math of this. Turned out to be really simple.

A Pen by adelegard on CodePen.

License.

.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
* html .clearfix { height: 1%; }
#!/bin/bash
# This script will move the last commit of your personal (computer name) branch back into master as uncommitted changes,
# then delete that branch
# This is intended to be used at the very start of the workday to continue working where you left off
git checkout $(uname -n) --quiet &&
git reset HEAD~1 --quiet &&
git stash >/dev/null &&
git checkout master --quiet &&
#!/bin/bash
# This script will move any uncommitted changes in your current git repo directory to a personal
# branch equal to your computer name
# I wrote this with the intention of running this at the end of the day on all git branches that still have uncommitted code
# ... just in case I crash my bicycle on my way home and destroy my computer
git stash >/dev/null &&
git checkout -b $(uname -n) --quiet &&
git stash pop >/dev/null &&
@adelegard
adelegard / index.html
Created August 15, 2012 23:01
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->