Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| <div class="container"> | |
| <style scoped> | |
| p { color: red; } | |
| </style> | |
| <p>This paragraph has red text.<p> | |
| </div> | |
| <p>This paragraph does not.</p> |
| /** | |
| * Get either a Gravatar URL or complete image tag for a specified email address. | |
| * | |
| * @param string $email The email address | |
| * @param string $s Size in pixels, defaults to 80px [ 1 - 512 ] | |
| * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] | |
| * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] | |
| * @param boole $img True to return a complete IMG tag False for just the URL | |
| * @param array $atts Optional, additional key/value attributes to include in the IMG tag | |
| * @return String containing either just a URL or a complete image tag |
| $string = <<<EOF | |
| <p dir="rtl"> | |
| أَفَلاَ يَتَدَبَّرُونَ الْقُرْآنَ وَلَوْ كَانَ مِنْ عِندِ غَيْرِ اللّهِ لَوَجَدُواْ فِيهِ اخْتِلاَفًا كَثِيرًا | |
| </p> | |
| EOF; | |
| preg_match('/<p dir=(?:"rtl"|\'rtl\')>([\x{0600}-\x{06FF}\x{0750}-\x{077F}\x{FB50}-\x{FDFF}\x{FE70}-\x{FEFF} \r\n]+)<\/p>/um', $string, $matches); | |
| $match = $matches[1]; |
| #!/usr/bin/perl -w | |
| use strict; | |
| while (my $line=<>) { | |
| my ($date, $host, $url_with_method, $status, $size, $referrer, $agent) = $line =~ | |
| m/^\S+\s+\S+\s+\[(\S+\s+[\-|\+]\d{4})\]\s+(\S+)\s+\S+\s+\S+\s+\S+\s+\S+\s+"(\S+\s+\S+\s+[^"]+)"\s+(\d{3})\s+\S+\s+(\d+|-)\s+\d+\s+\d+\s+\d+\s+"(.*?)"\s+"(.*?)"/; | |
| # Print relevant bits | |
| } |
| Since you use JSONP, you should code it like this IMHO : | |
| $.ajax(URL, { | |
| crossDomain:true, | |
| dataType: "jsonp", | |
| success:function(data,text,xhqr){ | |
| $.each(data, function(i, item) { | |
| alert(item); | |
| }); | |
| } |
| Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
| #!/bin/bash | |
| # From http://hexxeh.net/?p=328117859 | |
| sudo apt-get install -y --force-yes libnss3 libxrender1 libxss1 libgtk2.0-0 libgconf2-4 | |
| sudo mkdir -p /opt/google/ | |
| cd /opt/google | |
| sudo wget http://distribution-us.hexxeh.net/chromium-rpi/chromium-rpi-r22.tar.gz -O chromium-rpi.tar.gz | |
| sudo tar xvf chromium-rpi.tar.gz | |
| sudo chown root:root chrome/chrome-sandbox | |
| sudo chmod 4755 chrome/chrome-sandbox |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw