This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/
Thanks, @wesbos
- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
| # Redirect visitors who request the root domain path (e.g. www.mywebsite.ch) to the appropriate language version | |
| # Fallback to English version if no matching browser language defined | |
| # Based on language version being at e.g. www.mywebsite.ch/de/ | |
| # This has no effect on any subpaths of the website, and therefore has no effect on e.g. WordPress admin. | |
| # Using a 302 temporary redirect header stops the redirection from being cached in the browser. | |
| # language is ES-MX (Mexico) | |
| RewriteCond %{HTTP:Accept-Language} ^es-mx [NC] | |
| RewriteRule ^$ /mx/ [L,R=302] |
| # | |
| # Verify captcha | |
| $post_data = http_build_query( | |
| array( | |
| 'secret' => CAPTCHA_SECRET, | |
| 'response' => $_POST['g-recaptcha-response'], | |
| 'remoteip' => $_SERVER['REMOTE_ADDR'] | |
| ) | |
| ); | |
| $opts = array('http' => |
This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/
Thanks, @wesbos
| <!-- Reference: https://developers.facebook.com/docs/sharing/best-practices#tags --> | |
| <!-- CORE og --> | |
| <!-- Title, without branding. --> | |
| <meta property="og:title" content="" /> | |
| <!-- Name, not URL (e.g. Apple, not apple.com) --> | |
| <meta property="og:site_name" content="" /> | |
| <!-- URL. Should match canonical URL for SEO. Unique identifier for your article. --> | |
| <meta property="og:url" content="" /> | |
| <!-- OPTIONAL description. 2-4 sentences. --> | |
| <meta property="og:description" content="" /> |
| *|RSSITEMS:|* | |
| <h2 class="mc-toc-title"><a href="*|RSSITEM:URL|*" target="_blank">*|RSSITEM:TITLE|*</a></h2> | |
| <br /> | |
| *|RSSITEM:CONTENT_FULL|*<br /> | |
| <a href="*|RSSITEM:URL|*" target="_blank">Read in browser »</a><br /> | |
| *|RSSITEM:SHARE:Facebook,Twitter|* *|RSSITEM:PLUSONE|*<br /> | |
| *|END:RSSITEMS|*<br /> | |
| | |
| <h3 class="h3">Recent Articles:</h3> | |
| *|RSS:RECENT|* |
| cd ~/Library/Containers && du -h -d 0 *airmail* |
| # Don't show errors which contain full path diclosure (FPD) | |
| # Use that line only if PHP is installed as a module and not per CGI | |
| # try using a php.ini in that case. | |
| # Change mod_php5.c to mod_php7.c if you are running PHP7 | |
| <IfModule mod_php5.c> | |
| php_flag display_errors Off | |
| </IfModule> | |
| # Don't list directories | |
| <IfModule mod_autoindex.c> |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var spData = null; | |
| function doData(json) { | |
| spData = json.feed.entry; | |
| } | |
The following demo intends to describe how to use the HTML5 Geolocation feature. The gist includes three step files:
Used to use MySQL then found out it was being depreciated, this is of course right after I got the hang of it and was almost finished with the project i was using to learn myself. So desided to make the switch to PDO way much easier especially if you have security in mind.
For instance instead of $var = mysql_real_escape_string($_POST['data'];, you just $var = $db->quote($_POST['data'];. Or even better use prepared staements and the underlying driver will not only escape but quote the string for you!