Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| ALTER DATABASE 'my_wp_database' CHARACTER SET utf8; | |
| ALTER TABLE 'wp_comments' CHARACTER SET utf8; | |
| alter table 'wp_comments' change comment_content comment_content LONGTEXT CHARACTER SET utf8; | |
| alter table 'wp_comments' change comment_author comment_author LONGTEXT CHARACTER SET utf8; | |
| update `wp_posts` set `post_content` = replace(`post_content` ,'á','á'); | |
| update `wp_posts` set `post_content` = replace(`post_content` ,'é','é'); | |
| update `wp_posts` set `post_content` = replace(`post_content` ,'í©','é'); | |
| update `wp_posts` set `post_content` = replace(`post_content` ,'ó','ó'); |
| <?php | |
| /** | |
| * Google Analytics tracking code per language (WPML) | |
| * | |
| * @param array $options | |
| * @see http://plugins.trac.wordpress.org/browser/google-analytics-for-wordpress/tags/4.3.3/frontend/class-frontend.php#L12 | |
| */ | |
| function prefix_ga_init( $options ) { | |
| global $yoast_ga; |
| /** | |
| * Outputs a new function with interpolated object property values. | |
| * Use like so: | |
| * var fn = makeInterpolator('some/url/{param1}/{param2}'); | |
| * fn({ param1: 123, param2: 456 }); // => 'some/url/123/456' | |
| */ | |
| var makeInterpolator = (function() { | |
| var rc = { | |
| '\n': '\\n', '\"': '\\\"', | |
| '\u2028': '\\u2028', '\u2029': '\\u2029' |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| img.grayscale.disabled { | |
| filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
| -webkit-filter: grayscale(0%); | |
| } |
| // Add a getElementsByClassName function if the browser doesn't have one | |
| // Limitation: only works with one class name | |
| // Copyright: Eike Send http://eike.se/nd | |
| // License: MIT License | |
| if (!document.getElementsByClassName) { | |
| document.getElementsByClassName = function(search) { | |
| var d = document, elements, pattern, i, results = []; | |
| if (d.querySelectorAll) { // IE8 | |
| return d.querySelectorAll("." + search); |
There is no span1..15 styles, instead your css defines your layout and your html remains semantic and not polluted with display information. As it should be.
The markup is incredibly easy, you specify the wrappers width, and then each columns width in percentages. Every other grid framework I've found is incredibly complicated with this.
It allows you to have the exact same markup, and completely different styles for different devices, resolutions, stylesheets, whatever. As it should be.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="email"> | |
| <span>Enter your email to sign up</span> | |
| <form action="/subscribe.php" id="invite" method="POST"> |
| #!/bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # SOME INFOS : fairly standard (debian) init script. | |
| # Note that node doesn't create a PID file (hence --make-pidfile) | |
| # has to be run in the background (hence --background) | |
| # and NOT as root (hence --chuid) | |
| # | |
| # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
| # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
| # INSTALL/REMOVE http://www.debian-administration.org/articles/28 |