Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 7, 2023. It is now read-only.

Commit da95c27

Browse files
Tidy up for rebranding
1 parent 9045a4a commit da95c27

File tree

7 files changed

+14
-93
lines changed

7 files changed

+14
-93
lines changed

‎.github/config.yml‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎.github/lock.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎.github/stale.yml‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,35 @@
22

33
**30 seconds of code** is powered by the community, so feel free to contribute in any way you can to help us!
44

5-
## Tools
6-
7-
Before you begin contributing, you should install the integration-tools globally on your machine:
8-
9-
```sh
10-
npm install -g @30-seconds/integration-tools
11-
```
12-
13-
This will allow you to use our customized tools for all of our content repositories.
14-
155
## How you can help
166

177
- Submit pull requests with new snippets (see guidelines below) or snippet updates (tags, descriptions, explanations, typos, examples, code improvements).
18-
- Open issues for things you want to see added, modified, discuss ideas or help out with existing issues.
8+
- Open issues for things you want to see added, modified, discuss ideas or help out with existing issues.
199

2010
## Ground rules
2111

2212
Breaking any of these rules will result in your pull request being closed. Please follow these guidelines above all else:
2313

2414
- **Always be polite and respectful to others** and try to follow the advice of the moderators/collaborators/owners.
2515
- **Only modify snippet files**, never modify the generated files in the `snippet_data` directory.
26-
- **Use the integration tools commands** to generate new snippets, ensuring they have the correct name and are in the correct location.
16+
- **Use the snippet template** to create new snippets, ensure they have the correct name and are in the correct location.
2717
- **Follow snippet format exactly**, otherwise your snippets will not be recognized correctly by the tools responsible for publishing them on the website. This includes such things as spacing and empty lines - if you accidentally make a mistake, consult the repository's [snippet template](snippet-template.md).
2818
- **Snippets should solve real-world problems**, no matter how simple and should be abstract enough to be applied to different scenarios.
2919

3020
## Snippet creation
3121

32-
After installing the integration tools, you can run the following command:
33-
34-
```sh
35-
create-new-snippet <my-snippet-name>
36-
```
22+
In order to create a new snippet, you should follow the steps below:
3723

38-
Replace `<my-snippet-name>` with the name of the snippet you are adding.
24+
- Crate a copy of the [snippet template](snippet-template.md) in the `snippets` directory.
25+
- Change the name of the newly created file to the name of your snippet.
26+
- Edit the file, adding your snippet based on the guidelines.
3927

4028
## Snippet guidelines
4129

4230
- Snippets must have all their frontmatter sections (title, tags etc.) filled.
4331
- Snippet titles must correspond to the filename and follow the language and repository's naming conventions.
4432
- Snippet tags must be comma-separated, contain a primary tag as seen on the website as their first tag and an expertise tag (`beginner`, `intermediate` or `advanced`) as their last tag.
33+
- Snippets must have their `firstSeen` dates formatted using [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601).
4534
- Snippet descriptions must be short and to the point. Explain *what* the snippet does and detail *how* the snippet works and the language features used in it.
4635
- Snippet code and examples must be enclosed in appropriate, language-tagged blocks as shown in the snippet template, be short and use modern techniques and features. Also make sure to test your code before submitting.
4736
- If your snippet contains arguments with default parameters, explain what happens if they are omitted when calling the function and what the default case is. Specify default parameters for arguments only if necessary.

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[![Logo](/logo.png)](https://30secondsofcode.org/python/p/1)
22

3-
## 30 seconds of Python
3+
# 30 seconds of code
44

55
> Short Python code snippets for all your development needs
66
77
* Visit [our website](https://30secondsofcode.org) to view our snippet collection.
88
* Use the [Search page](https://30secondsofcode.org/search) to find snippets that suit your needs. You can search by name, tag, language or using a snippet's description. Just start typing a term and see what comes up.
9-
* Browse the [Python Snippet List](https://30secondsofcode.org/python/p/1) to see all the snippets in this project or click individual tags at the top of the same page to narrow down your search to a specific tag.
9+
* Browse the [Python Snippet collection](https://30secondsofcode.org/python/p/1) to see all the snippets in this project or click individual tags at the top of the same page to narrow down your search to a specific tag.
1010
* Click on each snippet card to view the whole snippet, including code, explanation and examples.
11-
* You can use the button on the right side of a snippet card to copy the code to clipboard.
11+
* You can use the button at the bottom of a snippet card to copy the code to clipboard.
1212
* If you like the project, give it a star. It means a lot to the people maintaining it.
1313

1414
## Want to contribute?
@@ -18,9 +18,9 @@
1818
* If you find a problem with a specific snippet, please [open an issue](https://github.com/30-seconds/30-seconds-of-python/issues/new).
1919
* If you find a problem with the website, please [report it in the web repository](https://github.com/30-seconds/30-seconds-web/issues/new).
2020

21-
## Credits & Sponsors
21+
## Credits
2222

23-
* This repository is maintained by the [30-seconds organization on GitHub](https://github.com/30-seconds).
23+
* This repository is maintained by the [30seconds of code organization on GitHub](https://github.com/30-seconds).
2424
* All snippets are licensed under the CC0-1.0 License, unless explicitly stated otherwise.
25-
* Logos, names and trademarks are not to be used without the explicit consent of the maintainers or owners of the 30 seconds GitHub organization.
26-
* Our website is powered by [Netlify](https://www.netlify.com/), [Gatsby](https://www.gatsbyjs.org/), [Travis CI](https://travis-ci.com/)& [GitHub](https://github.com/)
25+
* Logos, names and trademarks are not to be used without the explicit consent of the owners of the 30 seconds of code GitHub organization.
26+
* Our website is powered by [Netlify](https://www.netlify.com/), [Next.js](https://nextjs.org/)& [GitHub](https://github.com/).

‎logo.png‎

138 KB
Loading[フレーム]

‎snippet-template.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: function_name
33
tags: utility,intermediate
44
firstSeen: 2021年06月13日T05:00:00-04:00
5-
lastUpdated: 2021年06月13日T05:00:00-04:00
65
---
76

87
Explain briefly what the snippet does.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /