The regex should be (\/\/).*$ If you have a way to mark your useful comments. Like I have — to mark them, you can use it in the negative lookahead ( to filter only the unuseful comment ) (\/\/)(?! –) You can use this in IDE such as PHPSTORM
ARCHIVE
Tips
Posted on July 31 2017 / in PHP, PHP, Tips, Tutorials, WordPress, WordPress Plugins, WordPress Themes / 1 comment
Menu by itself is a taxonomy in the different knownhost wordpress plans. It means that you can find all menus in wp_terms table, by running following query: SELECT * FROM wp_terms AS t LEFT JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id WHERE tt.taxonomy = 'nav_menu'; Menu item is custom post type in WP. They are

Say you have a theme or plugin you have to translate and you have only non domain gnu I mean the gettext syntax marked in green here And let’s say we want to select that and just replace them with domain get text If you have a code editor IDE like phpstorm that supports
Posted on June 30 2017 / in Tips
Launch Terminal write: defaults write com.apple.screencapture type jpg then you can write killall SystemUIServer Should be all Tried in Mac OS X Sierra
Google Fonts allows retrieving all of it’s fonts via their api. It’s in json format so once you decode it you can use it in your application. The process is simple, you just need to access your applications page, create an application and get an API key Then you can access this link https://www.googleapis.com/webfonts/v1/webfonts?key=YOUR-API-KEY
Posted on May 9 2017 / in Tips
You need to write this macro in Visual Basic Sub replaceat() Dim rng As Range Dim cl As Range Set rng = Range(Selection.Address) For Each cl In rng.Cells cl.Formula = “=Replace(“”” & cl.Value & “”” ,3,0,””.””)” Next End Sub Then you can execute it on any selection via the Developer > Macros

You just have to click this button here Then input a custom layout like 2/12 + 8/12 + 2/12
Recent Comments