What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-31 04:05:27
git rebase conflict
Resolving merge conflicts after a Git rebase When you perform a git rebase operation, you're typically moving commits around. Because of this, you might get into a situation where a merge conflict is introduced. That means that two of your commits modifi... Add solution -
Shell/Bash 2022-01-22 23:15:46
posh git install windows
Option 1: Install posh-git via PowerShellGet on Windows (Best Way) posh-git is available on the PowerShell Gallery and can be installed using the PowerShellGet module. To get it done through this route, Start either Windows PowerShell 5.x or PowerShell Co... Add solution -
C++ 2021-11-20 12:32:17
str[i] - '0'
The part str[i] - '0' takes the ASCII character of the corresponding digit which are sequentially "0123456789" and subtracts the code for '0' from the current character. This leaves a number in the range 0..9 as to which digit is in that plac... Add solution -
Rust 2021-10-25 05:54:13
Validate the check digit of an ISBN-13 code
/* Validate the check digit of an ISBN-13 code: Multiply every other digit by 3. Add the digits together. Take the remainder of division by 10. If it is 0, the ISBN-13 check digit is correct. from RosettaCode */ fn check_isbn(isbn: &str) ... Add solution -
Ruby 2021-10-24 13:33:19
Validate the check digit of an ISBN-13 code
/* Validate the check digit of an ISBN-13 code: Multiply every other digit by 3. Add the digits together. Take the remainder of division by 10. If it is 0, the ISBN-13 check digit is correct. from RosettaCode */ fn check_isbn(isbn: &str) ... Add solution -
Shell/Bash 2021-10-03 12:13:07
how to get the digit count of number swift
public extension Int { /// returns number of digits in Int number public var digitCount: Int { get { return numberOfDigits(in: self) } } /// returns number of useful digits in Int number public var usefulDigitCount: Int { get { ... Add solution -
Shell/Bash 2021-09-08 21:28:03
Git
Git has been the standard, it is more transparent in operations then other source control systems and allows more flexibility in terms of scipting and automating, logging etc. Git is also great for beginners fostering a solid understanding of principals... Add solution
Best helpers
Zach Zundel
+5
JSanchez
+5
Sam davies
+5
M. Arafat
+5
AMACB
+5
M208
+5
Kraig Lee
+5
Dk123
+5
Phatfingers
+5
Jsuissa
+5
Steve Caine
+5
Aerin
+5
Nsayer
+5
Phuzi
+5
E meyr
+5
Kevin Raffay
+5
Amziraro
+5
Zijoud
+5
Wad Cheber
+5