- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| [ | |
| { | |
| "command": "projectManager.listGitProjects#sideBarGit", | |
| "key": "cmd+o" | |
| }, | |
| { | |
| "command": "expand_region", | |
| "key": "ctrl+=", | |
| "when": "editorTextFocus" | |
| }, |
| { | |
| "[javascript]": { | |
| "editor.defaultFormatter": "vscode.typescript-language-features" | |
| }, | |
| "[json]": { | |
| "editor.defaultFormatter": "vscode.json-language-features" | |
| }, | |
| "[jsonc]": { | |
| "editor.defaultFormatter": "vscode.json-language-features" | |
| }, |
| String calculateAge(DateTime birthdate) { | |
| DateTime currentDate = DateTime.now(); | |
| int years = currentDate.year - birthdate.year; | |
| int months = currentDate.month - birthdate.month; | |
| int days = currentDate.day - birthdate.day; | |
| if (days < 0) { | |
| DateTime lastMonth = | |
| DateTime(currentDate.year, currentDate.month - 1, birthdate.day); |
| String calculateAge(DateTime birthdate) { | |
| DateTime currentDate = DateTime.now(); | |
| Duration difference = currentDate.difference(birthdate); | |
| int years = (difference.inDays / 365.25).floor(); | |
| DateTime birthdateCopy = | |
| DateTime(birthdate.year, birthdate.month, birthdate.day); | |
| birthdateCopy = DateTime(currentDate.year, birthdate.month, birthdate.day); |
| void main() { | |
| DateTime birthdate = DateTime(2023, 9, 27); | |
| print(calculateAge(birthdate)); | |
| } |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
| public static string NonoDigito(string f) | |
| { | |
| string fTemp = null; | |
| fTemp = f.Replace("(", "").Replace(")", "").Replace(" ", "").Replace("-", ""); | |
| string ddd = "|11|12|13|14|15|16|17|18|19|21|22|24|27|28|"; | |
| if (ddd.IndexOf("|" + fTemp.Substring(0, 2) + "|") > -1 && fTemp.Length == 10 && Strings.Mid(fTemp, 3, 1) > 7) { | |
| return (string.Format("{0:(##) 9####-####}", Convert.ToInt64(fTemp))); | |
| } else { |