30 seconds of code provides a curated collection of short code snippets for all your development needs. Our collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Configures the text editor used by git.
Adds files to the staging area.
Removes files from the staging area.
Calculates the factorial of a number.
Calculates the number of ways to choose
k items from
n items without repetition and without order.
Converts an angle from degrees to radians.
Converts an angle from radians to degrees.
Returns the binary representation of the given number.
Returns the hexadecimal representation of the given number.