See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # To add two-finger gesture to back and forth swiping, follow this steps with shell | |
| # 1 - Open .desktop file with nano | |
| sudo nano /usr/share/applications/brave-browser.desktop | |
| # 2 - Move to a little bottom, edit the place where it is `Exec=` to match this | |
| Exec=/usr/bin/brave-browser-stable %U --ozone-platform=wayland --enable-features=TouchpadOverscrollHistoryNavigation | |
| # Use `Ctrl-O` to write and `Ctrl-X` to exit | |
| # Now restart the brave browser and you will be able to swipe back and forth with two-finger touchpad gestures. |
| { | |
| "compilerOptions": { | |
| /* Basic Options */ | |
| "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ | |
| "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
| // "lib": [], /* Specify library files to be included in the compilation. */ | |
| // "allowJs": true, /* Allow javascript files to be compiled. */ | |
| // "checkJs": true, /* Report errors in .js files. */ | |
| // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | |
| // "declaration": true, /* Generates corresponding '.d.ts' file. */ |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| #My AES implementation | |
| # By Daniel Miller | |
| def xor(s1, s2): | |
| return tuple(a^b for a,b in zip(s1, s2)) | |
| class AES(object): | |
| class __metaclass__(type): | |
| def __init__(cls, name, bases, classdict): | |
| cls.Gmul = {} |