Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
| <?php | |
| /** | |
| * Skip cart and redirect to direct checkout | |
| * | |
| * @package WooCommerce | |
| * @version 1.0.0 | |
| * @author Alessandro Benoit | |
| */ | |
| // Skip the cart and redirect to check out url when clicking on Add to cart |
| public function beforeFilter() { | |
| parent::beforeFilter(); | |
| $this->response->header('Access-Control-Allow-Origin','*'); | |
| $this->response->header('Access-Control-Allow-Methods','*'); | |
| $this->response->header('Access-Control-Allow-Headers','X-Requested-With'); | |
| $this->response->header('Access-Control-Allow-Headers','Content-Type, x-xsrf-token'); | |
| $this->response->header('Access-Control-Max-Age','172800'); | |
| } |
| Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
| The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg |
Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
Block encapsulates a standalone entity that is meaningful on its own.
While blocks can be nested and interact with each other, semantically they remain equal; there is no precedence or hierarchy.
Holistic entities without DOM representation (such as controllers or models) can be blocks as well.
| class Person (db.Document): | |
| name = db.StringField(required=True) | |
| created_date = db.ComplexDateTimeField(default=datetime.datetime.utcnow(), required=True) | |
| def to_dict(self): | |
| return helper.mongo_to_dict(self,[]) | |
| #helper.py | |
| def mongo_to_dict(obj, exclude_fields): |
| // Remove the product rating display on product loops | |
| remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 ); |
| -- | |
| -- Estrutura da tabela `pais` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `pais` ( | |
| `paisId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, | |
| `paisNome` varchar(50) NOT NULL, | |
| `paisName` varchar(50) NOT NULL, | |
| PRIMARY KEY (`paisId`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ; |