Quickly share editable, runnable code
A crumb is a small piece of code that can be embedded anywhere. Our crumbs look stunning and can be modified and run from the browser. They are ideal for use on social media like Twitter, LinkedIn, and Facebook. You can also embed them in articles and tutorials about software engineering.
Are you interested in using crumbs? I'm still working hard to make this a polished product that others can use, so stay tuned or drop me a message on Twitter.
Latest crumbs
Here are the latest crumbs that have been created:
- Creating an iterable with a constructor
- Python pass statement
- Convert JSON to YAML using Python
- Quickly print your Python variables with this f-string trick
- JavaScript hello world example
- Convert strings to numbers by using a list comprehension
- Use a Python f-string
- Return the last element of a Python list
- Demonstration of how a Python range works
- Python for-loop using range with start and stop
- Python for-loop with range (with one argument)
- Creating a Python iterator
- Python ZeroDivisionError: Handling Division By Zero
- Convert YAML to JSON using Python
- Writing YAML to a file with Python
- Python's Finally block In Try Except
- Swap two variables in Python without using a third
- Python class example
- Python Hello World
- Runnable Python module
- Python modules
- Python Dictionary View Objects
- Default values and named parameters
- While loop
- Python for loop and lists
- The print function
- If statement
- Python exception handling with try.. except
- How to reverse a Python list
- Return a value from a Python function
- What happens when a Python function is finished?
- Comparing values in Bash
- Check arguments in your Bash script
- Your first program
- Read YAML file with multiple documents with Python
- How to read YAML with Python and PyYAML
- Using docstrings to document your code
- Encoding JSON with json.dumps
- Read JSON with json.loads
- The bash ls command
- Python append to text file
- Python Playground
- Read a file with open and close
- Write a file
- Open and read a file