Postagens do @battisti!
vuejs i18n ptbr
First you need to install vue-i18n after that follow this script
The basics of emment
You can do a lot of things using emment, but, the very basics like: id, class, id, repetition, nesting and child you can see in the below line. div#nome>p^ul>li*5>a[href='http://teste'].link{clique aqui $} this line should create a html code like this:...
Change WordPress Thumbnail Size in wp-admin
Put thie code in the function.php file of your template. post_type is the name yout your post type 🙂 An important information is, the SIZE of the image returned in should be exist in your thumbs. function custom_admin_thumb_size( $thumb_size, $thumbnail_id, $post ) {...
Search By Id WordPress
To modify your sercrh system to find a post_id in a wp_query consult you need to this! $args = array( 'p' => (int) $_GET['s'], 'post_type' => 'download', 'posts_per_page' => getNumImages(), 'paged' => $paged, ); It's important to cast the String type to...
How to format date in laravel query
$db = DB::table('obras as ob'); $db->select(DB::raw("ob.*, DATE_FORMAT(ob.created_at, '%d/%m/%Y %h:%i') as created_at"));
Access a Laravel project running in a virtual machine
To access you laravel's project running in a virtual machine you can do this trick, run de php artisan serve using the local ip address as the address os the server. Like: php artisan serve --host my_local_ip --port 80 To find your local IP use ifconfig...
Vuetable-2 and the [Vue warn]: existing instance property “fields”
This error: [Vue warn]: existing instance property "fields" will be overwritten by a computed property with the same name. in our case was caused by the vue-validate package The problem is: both of the packages use the same name "fields", to solve it you need to a...
Displaing erros php7 and apache
By default after installation of php7 the display_erros is setting to off. How to modifi it in php.ini configuration? If you are using linux probably in /etc/php/7.0/apache2/php.ini (if you are using php directly from terminal you need to change...
How to speedup scrollSensitivity / scroll mouse wheel in atom editor
Atom editor is a great editor, but by default, the speed of scroll mouse is to slow! How to change it? 1 - Menu File > Config 2 - Find the editor: section 3 - write the new attribute (scrollSensitivity: 80) 4 - save the file and that is it! Now your mouse scroll...