##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
| /* | |
| This small hack loads fonts from the Typekit webfontloader (https://github.com/typekit/webfontloader) | |
| contextually, effectively "patching" in a new font if a media query is fired. | |
| You need to have 2 seperate kits on Typekit, one for your main fonts, and another for the fonts you want | |
| when the media query is fired. | |
| Improvements or suggestions welcome! |
| {exp:query sql=" | |
| SELECT md.entry_id, cd.field_id_56, md.col_id_48 | |
| FROM exp_matrix_data AS md | |
| LEFT JOIN exp_playa_relationships AS pr | |
| ON md.entry_id = pr.parent_entry_id | |
| LEFT JOIN exp_channel_data AS cd | |
| ON pr.child_entry_id = cd.entry_id | |
| WHERE md.field_id = 123 | |
| AND md.row_order = 1 | |
| GROUP BY md.entry_id |
| // Add this to your module tag | |
| if($no_results_prefix = $this->EE->TMPL->fetch_param('no_results_prefix')) | |
| { | |
| if(preg_match('/\\'.LD.'if '.$no_results_prefix.'no_results\\'.RD.'.*\\'.LD.'\\/if\\'.RD.'/us', $this->EE->TMPL->tagdata, $matches)) | |
| { | |
| $this->EE->TMPL->no_results = $this->EE->TMPL->parse_variables_row($matches[0], array( | |
| $no_results_prefix.'no_results' => 1 | |
| )); | |
| } |
| @function rgbaa($args...) { | |
| // rgbaa(#FFF, .5) | |
| @if length($args) == 2 { | |
| $hex: nth($args, 1); | |
| $alpha: nth($args, 2); | |
| @if $oldIE == 1 { | |
| @return rgb(red($hex), green($hex), blue($hex)); | |
| } @else { | |
| @return rgba(red($hex), green($hex), blue($hex), $alpha); |
| {!-- embed page template --} | |
| {embed="site/_page" | |
| hide_site_title="{embed:hide_site_title}" | |
| body_class="p-default" | |
| } | |
| {!-- get channel data --} | |
| {exp:channel:entries | |
| limit="1" | |
| entry_id="{embed:entry_id}" |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
| <?php | |
| $ignore = array('sitemap', 'error'); | |
| // send the right header | |
| header('Content-type: text/xml; charset="utf-8"'); | |
| // echo the doctype | |
| echo '<?xml version="1.0" encoding="utf-8"?>'; |
| <?php | |
| class kirbytextExtended extends kirbytext { | |
| function __construct($text, $markdown=true) { | |
| parent::__construct($text, $markdown); | |
| // define custom tags | |
| $this->addTags('figure'); | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> |
##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$