资源收集之优秀代码片段分享网站

本文分享一些优秀代码片段的网络资源,不论是设计师,还是开发人员,相信能从这些优秀的代码片段中找到一些灵感,同时使用最少的代码来解决熟悉的问题,这些网址是从国外文章《Awesome sites to find useful code snippets》分享过来的。

CatsWhoCode snippet library

Some of you already know it, but a few weeks ago I’ve created a snippet library with a picky selection of usefull snippets focused on web development:PHP, JavaScript, CSS, htaccess

… Approximately one new snippet is published every day. Users are welcome to submit their own snippets.

Snipplr

Snipplr is probably the largest code snippet repository

available on the internet. Since 5 years, they have published thousand of pieces of code. Some snippets are super useful, some other not so, but there’s a strong chance that you’ll find what you need on a website with so many snippets.

WPRecipes

Another site of mine, where I publish only WordPress

related snippets since 2009. More than 300 snippets are available, so don’t miss it if you work with WordPress!

PHP Snips

Are you into PHP

? If yes, you’ll for sure love PHP Snips, a PHP-only code snippets library. Hundreds of snippets are freely available, most of them are very useful and well coded.

DZone code snippets

DZone Snippets is a public source code repository, hosted by popular developer website DZone. Thousands of snippets in more than 25 languages

are available. As it is 100% user powered, quality is very mixed: some snippets are useful and well coded while some other are a complete waste of time.

Jonas John snippet library

Currently 143 quality code snippets, covering PHP, C#, Visual Basic, JavaScript, and more. A good resource to keep in your bookmarks!

Code Beach

Code Beach is a central repository where Mac developers can share pieces of useful code in all programming languages used on Mac:Objective C, Ruby, C, C++, Python … Don’t miss it if you’re a Mac developper!

CodeKeep

With more than 18,000 code snippets

, there’s a strong change that you’ll find what you need on CodeKeep. The site have compiled snippets in various languages such as C#, C++, ActionScript, ASP, VB and more.

Code Codex

Using the popular wiki

formula, Code Codex is a website where you can find and add lots of snippets in languages like C, C++, Java, Perl, and more.

本文原始链接:http://blog.zhourunsheng.com/2012/04/%e8%b5%84%e6%ba%90%e6%94%b6%e9%9b%86%e4%b9%8b%e4%bc%98%e7%a7%80%e4%bb%a3%e7%a0%81%e7%89%87%e6%ae%b5%e5%88%86%e4%ba%ab%e7%bd%91%e7%ab%99/(迁移后固定链接原样保留)

历史评论 · 1 条

只读存档

以下评论来自原 WordPress 站点,已剔除邮箱、IP、浏览器标识与用户 ID,正文中的个人信息也已掩码。这是内容保全存档,不参与新评论的回复;想说点什么,请到下方「加入讨论」。

  1. 小熊 #139
    写的还是很不错的。过来支持下,下次还来,谢谢了哈。!有兴趣可以和我交换一下友情链接。

加入讨论

新评论 — 条

评论保存在本站自托管服务里,无需注册登录,填个昵称就能留言;不依赖任何第三方 Cookie 或账号。请尽量说点有用的 :)