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
""" CSS-file formatter | |
Formats CSS-files without merging rules, preserves comments. | |
""" | |
import argparse | |
import cssutils | |
import os | |
import logging | |
SERIALIZER_PREFERENCES = {'indentClosingBrace': False, |
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
testgist |
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
-- Example of how to fix double encoded UTF-8 in mysql with a single mysql query. | |
-- This example assumes that the data has been inserted with NAMES=latin1. | |
-- | |
-- XXX: Do not rely on this to work without testing it. XXX | |
-- | |
-- XXX: If this is run on a column with a UNIQUE index and the COLLATE is | |
-- case-insensitive this might fail. The reason for this is that double-encoded | |
-- upper and lower case chars are considered different but when encoded correctly | |
-- they will be considered the same. |
NewerOlder