This file contains 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
<?php | |
// assuming a loop where i is incremented | |
if ($i % 2 == 1) $classes .= " odd"; | |
else $classes .= " even"; | |
?> |
This file contains 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
ul { | |
list-style: none; | |
} | |
ul li:before { | |
color: #f00; | |
content: '» \0000a0'; /* unicode character for space */ | |
font-size: 1.2em; | |
font-weight: bold; | |
} |
This file contains 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
cd /Users/username/path/to/process/folder | |
# remove MakerNotes field to appease iOS 7 pics in exiftool | |
exiftool -MakerNotes= * | |
# copy DateTimeOriginal to all dates fields | |
exiftool "-FileModifyDate<DateTimeOriginal" * | |
exiftool "-AllDates<FileModifyDate" * | |
exiftool "-FileModifyDate<CreateDate" * |
NewerOlder