See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // ==UserScript== | |
| // @name Remember to eat your food while watching Netflix | |
| // @namespace https://www.tarikguney.com | |
| // @version 0.1 | |
| // @description Kids watching cartoons on Netflix often forget to eat and chew their food, which drives parents crazy. You need to sit down with them and pause the video and remind them to eat their food. This script will automate that. | |
| // @author Tarik Guney | |
| // @match https://www.netflix.com/watch/* | |
| // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Netflix_icon.svg/1200px-Netflix_icon.svg.png | |
| // @grant none | |
| // ==/UserScript== |
| const diacriticsMap = { | |
| a: 'a', | |
| A: 'A', | |
| ₐ: 'a', | |
| á: 'a', | |
| Á: 'A', | |
| à: 'a', | |
| À: 'A', | |
| ă: 'a', | |
| Ă: 'A', |
| /* | |
| Show user names of people you are following on Twitter, being able to choose certain filters to skip some users (and even skip followers or non-followers). | |
| This will work for new Twitter web site code structure (it was changed from July 2019). | |
| Instructions: | |
| 1) The code may need to be modified depending on the language of your Twitter web site: | |
| * For English language web site, no modification needed. | |
| * For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
| * For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
| /* | |
| Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
| This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
| Instructions: | |
| 1) The code may need to be modified depending on the language of your Twitter web site: | |
| * For English language web site, no modification needed. | |
| * For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
| * For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
| /* Block Class */ | |
| .insan { | |
| display: inline-block; | |
| } | |
| /* Element Class */ | |
| .insan__pantolon { | |
| padding: 5px; | |
| } |
| module.exports = (string) => { | |
| return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase(); | |
| }; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| /* tc kimlik numarasının geçerli olup olmadığını kontrol eder | |
| * 2015 Erhan BURHAN | |
| *--------------------------------------------------------------------*/ | |
| function tcno_dogrula(tcno) | |
| { | |
| // geleni her zaman String'e çevirelim! | |
| tcno = String(tcno); | |
| // tcno '0' karakteri ile başlayamaz! | |
| if (tcno.substring(0, 1) === '0') { |