Skip to content

Instantly share code, notes, and snippets.

View jbmorgan's full-sized avatar

Jonathan Morgan jbmorgan

View GitHub Profile
>a:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.25em; /* Adjusts for spacing */
}
@jbmorgan
jbmorgan / gist:2775376
Created May 23, 2012 13:58 — forked from ffub/gist:1084424
Balsamiq HTML export
#!/usr/bin/php
<?php
error_reporting(E_ALL);
if (count($argv) <= 1) {
print("usage: createMockup source_dir dest_dir images_dir\n");
print("\tsource_dir: the directory containing all bmml file to convert\n");
print("\tdest_dir: the directory where all html files will be written to\n");
print("\timages_dir: a directory containing the exported PNGs of all .bmml files in source_dir (will be copied to dest_dir/images)\n");
exit(1);
}