As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # A small script to change the color of mono-colored transparent .pngs | |
| # | |
| # Uses ImageMagick to read the most common 100% alpha color and then computes | |
| # scale factors to multiply the whole image by. | |
| # | |
| # Improvements to be made: | |
| # -deal with images containing pure black. | |
| # -make portable between new and old ImageMagick versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title></title> | |
| <!--[if lt IE 9]> | |
| <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Under WTPL 2 | |
| # https://github.com/AdamN/python-webkit2png | |
| COMMITS=$(git log --format="%H" --reverse) | |
| OUTPUT_DIR="/tmp" | |
| i=0 | |
| for commit in ${COMMITS} | |
| do |
