Thanks for checking out Pieces for Developers!

Ready to enter our Pieces hoodie raffle? Just save a snippet from anywhere with Pieces (example down below), and you’ll be in the running for a chance to win a Pieces hoodie. Don’t miss your chance to boost your workflow and score some awesome swag!

1. Download Pieces

Click the button below to install Pieces and unlock effortless snippet management.

2. Save a Snippet

Once you’ve installed Pieces, open it up and save your first snippet! Copy the sample code below and paste it into Pieces to get started.

# Sample snippet: Calculate the factorial of a number in Python

def factorial(n):

    if n == 0:

        return 1

    else:

        return n * factorial(n-1)

# Example usage:

result = factorial(5)

print(f"The factorial of 5 is {result}")

3. Add a Tag

After saving the snippet, make sure to add the tag “Pieces hoodie” to it. This is important to be eligible for the giveaway!

4. Generate a Shareable Link

Click the “Share” button to create a shareable link for your snippet. Make sure to fill out the typeform below to officially enter the giveaway!