Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
| <?php | |
| // Include tlc lib | |
| require_once WPMU_PLUGIN_DIR . '/wp-tlc-transients/tlc-transients.php'; | |
| /** | |
| * Use in place of `get_posts` | |
| * | |
| * @param array $args Array of get_posts arguments | |
| * @param integer $time Amount of time before cache expires |
| <?php | |
| /** | |
| * Class ModActiveRecord is the base class for classes representing relational data. | |
| * It provides methods to check if attributes were modified | |
| * | |
| * @author [email protected] | |
| * @link http://copi.st/JtvJ | |
| * @link http://www.yiiframework.com/extension/mod-active-record/ | |
| * |
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| """ | |
| Extract GPS coordinates and filename, output to CSV file | |
| Run this file from the same directory the images are in | |
| run using ./process_exif.py or python process_exif.py, or | |
| %run process_exif.py from an IPython instance | |
| Ensure you have PIL installed | |
| refer to http://www.exiv2.org/tags.html for a full detailed tag listing | |
| This is what the GPSInfo dict looks like for an iPhone 5 jpg: |
This gist assumes:
www-data (may be apache on other systems)We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
We create an index with:
synonyms_expand and synonyms_contractsynonyms_expand and synonyms_contracttext_1 uses the synonyms_expand analyzer at index and search timetext_2 uses the synonyms_expand analyzer at index time, but the standard analyzer at search timetext_3 uses the synonyms_contract analyzer at index and search time.