See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| /* Need to copy an entire folder from one Google Drive account to another Google Drive account? | |
| * 1. Right-click on original folder in Google Drive | |
| * 2. Share with the destination Google account | |
| * 3. Go into destination account's Google Drive | |
| * 4. Find the shared folder under "Shared with me" | |
| * 5. Select all the files (Ctrl-A / Cmd-A) | |
| * 6. Right-click, Make a copy | |
| * 7. Create a New Folder in destination account's Google Drive | |
| * 8. Go to Recent | |
| * 9. Select all recently copied files and move to the new folder |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| <?php | |
| class MergeNames | |
| { | |
| public static function unique_names($array1, $array2) | |
| { | |
| // Join array, distinct array (removes duplicate) | |
| return array_unique(array_merge($array1, $array2)); | |
| } | |
| } |
| -- Write only the SQL statement that solves the problem and nothing else. | |
| -- Solution 1 | |
| SELECT a.name FROM employees a LEFT JOIN employees b ON a.id = b.managerId WHERE B.managerId is null; | |
| -- Solution 2 | |
| SELECT name FROM employees WHERE id NOT IN (SELECT DISTINCT managerId FROM employees WHERE managerId IS NOT NULL); |
| <?php | |
| class Pipeline | |
| { | |
| public static function make_pipeline(...$funcs) | |
| { | |
| return function($arg) use ($funcs) | |
| { | |
| // Call each function in loop | |
| foreach($funcs as $func) (!isset($param)) ? $param = $func($arg) : $param = $func($param); | |
| return $param; |
| <?php | |
| class Palindrome | |
| { | |
| public static function isPalindrome($word) | |
| { | |
| $word = strtolower($word); // String lowercase | |
| return ($word == strrev($word)) ? true : false; // Check palindrome, return result | |
| } | |
| } |