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.
Generates a list, containing the Fibonacci sequence, up until the nth term.
Python, Math · Nov 2, 2020
Finds the first key in the provided dictionary that has the given value.
Python, Dictionary · Nov 2, 2020
Tests a value, x
, against a testing function, conditionally applying a function.
Python, Function · Nov 9, 2020
Creates a new commit skipping the pre-commit and commit-msg hooks.
Git, Commit · Apr 13, 2021
Initializes a new git repository, setting up all the configuration files needed by git.
Git, Repository · Apr 13, 2021