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
| /** | |
| * 3D cube | |
| */ | |
| body { | |
| perspective: 99999px; | |
| } | |
| body > section { | |
| display: inline-block; |
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
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| ".gitkeep", | |
| "dump.rdb" | |
| ], |
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
| CULTURE SPEC.CULTURE ENGLISH NAME | |
| -------------------------------------------------------------- | |
| Invariant Language (Invariant Country) | |
| af af-ZA Afrikaans | |
| af-ZA af-ZA Afrikaans (South Africa) | |
| ar ar-SA Arabic | |
| ar-AE ar-AE Arabic (U.A.E.) | |
| ar-BH ar-BH Arabic (Bahrain) | |
| ar-DZ ar-DZ Arabic (Algeria) | |
| ar-EG ar-EG Arabic (Egypt) |
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
| function has3d(){ | |
| if (!window.getComputedStyle) { | |
| return false; | |
| } | |
| var el = document.createElement('p'), | |
| has3d, | |
| transforms = { | |
| 'webkitTransform':'-webkit-transform', | |
| 'OTransform':'-o-transform', |
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
| <?php | |
| $ig_post_custom_fields = array ( | |
| "infographic" => array( | |
| "name" => "is_infographic", | |
| "std" => "", | |
| "title" => "Is this an infographic post?", | |
| "description" => "If you check this box, we'll add a Pin It share option.", | |
| "type" => "checkbox"), | |
| "image_url" => array( |
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
| <?php | |
| switch ($map_state) | |
| { | |
| case 'Alabama': | |
| $abbr = 'AL'; | |
| break; | |
| case 'Alaska': | |
| $abbr = 'AK'; | |
| break; |
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
| // Standard device screen widths | |
| $iphone-portrait: 320px | |
| $iphone-landscape: 480px | |
| $ipad-portrait: 767px | |
| $ipad-landscape: 980px | |
| $desktop: 1224px | |
| $desktop-large: 1824px | |
| // General device targeting | |
| // Use: Only use if you want the style to apply to many devices |
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
| /** | |
| * Is Old Android | |
| * | |
| * Check to see it the user agent is Android and if so then | |
| * check the version number to see if it is lower than 4.0.0 | |
| * or passed parameter | |
| * | |
| * @param string $version | |
| * @return boolean | |
| */ |
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
| <?php // https://gist.github.com/3950382 | |
| function toggle_monetization() { | |
| global $post; | |
| $custom = get_post_custom($post->ID); | |
| if(isset($custom["toggle_monetization"][0])) { | |
| $money = $custom["toggle_monetization"][0]; | |
| } | |
| ?> | |
| <p style="margin-bottom:10px;"> |
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
| // Vimeo serves up poster images in 100, 200 and 640. But there's also size they don't serve: 1280 | |
| // https://developer.vimeo.com/apis/simple | |
| $vimeo_value = get_post_meta($post->ID, 'vimeo_value', TRUE); | |
| $vimeo_video_id = substr($vimeo_value, strrpos($vimeo_value, '/')+1); // get just the id | |
| $vimeo_xml_file = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimeo_video_id.php")); // get the video data from the API | |
| $vimeo_video_width = $vimeo_xml_file[0]['width']; | |
| $vimeo_thumbnail_large = $vimeo_xml_file[0]['thumbnail_large']; // load up one of the image sizes | |
| if($vimeo_video_width < 1280) { | |
| $vimeo_thumbnail = $vimeo_thumbnail_large; |