Skip to content

Instantly share code, notes, and snippets.

View originalhat's full-sized avatar
👾
L I M I T L E S S

Devin Brown originalhat

👾
L I M I T L E S S
View GitHub Profile
@originalhat
originalhat / delete_branches_older_than.sh
Last active September 11, 2015 15:46 — forked from antonio/delete_branches_older_than.sh
Script to delete branches older than a certain date
#!/bin/sh
date=$1
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$'); do
if [[ "$(git log $branch --since $date | wc -l)" -eq 0 ]]; then
if [[ "$branch" =~ "origin/" ]]; then
local_branch_name=$(echo "$branch" | sed 's/^origin\///')
if [[ "$DRY_RUN" -eq 1 ]]; then
echo "git push origin :$local_branch_name"

Titles / Text

  • how is overflow handled?
  • weight / font-size / line height / letter spacing?
  • what is the behavior if the text / title is empty?

Inputs

  • validations?
  • error case styling & messaging?
//% Fixed Width Figures
function figureWidth()
{
var cap=$('figcaption'),
fig=$('figure'),
figWidth;
$(fig).each(function()
{
fig=$(this).children('img');