Posts Tagged ‘code’

8 Code Snippet Sites

April 11th, 2010

Code SnippetSnippet sites first cropped up as a way of sharing code with others in IRC and forums where formatted code with syntax highlighting wasn’t practical. Since then they’ve grown to provide version control, sharing and other features. Here’s a quick list of the major players. Personally – I’d recommend Github.

dZone Snippets

Part of the massive dZone network who also run jobs boards, social news, etc.

  • URL: http://snippets.dzone.com
  • Pros: huge membership, massive selection, solid brand.
  • Cons: interface needs improvement.

Snipplr

  • URL: http://www.snipplr.com
  • Pros: Huge selection of snippets.
  • Cons: suffers from spam and neglect.

ByteMyCode

Only a small selection compared to the others mentioned earlier. Nice looking site though.

  • URL: http://www.bytemycode.com
  • Pros: interface
  • Cons: small numbers

Snipt

  • Pros: clean interface and easy sharing features.
  • Cons: not a huge database.
  • URL: http://snipt.org

PasteBin

One of the oldest services on the net and you can tell with a mature set of features and large database.

  • Pros: plugins for various browsers.
  • Cons: Not much.
  • URL: http://pastebin.com

Pastie

A Rails app and I suppose the opposite to dpaste below.

  • Pros: Clean, basic.
  • Cons: Basic.
  • URL: http://pastie.org/

GitHub Gist

For a relative newcomer this service has grown massively. It helps to be a part of one of the largest developer communities on the web – Github. Not only do you get to put your code snippet up but its also version checked too – using Git obviously.

  • Pros: Each snippet is also a Git repo.
  • Cons: Not as feature-packed as other services like Pastebin.
  • URL: http://gist.github.org

DPaste

Purely for sharing code and originally developed by and for Django developers.

  • Pros: Simple.
  • Cons: VERY simple. Snippets deleted after 7 days.
  • URL: http://dpaste.com

Chrome Extension: Augment Search

December 29th, 2009

Augment Chrome ExtensionJust released first Chrome Extension: Augment Search.

Its been heavily inspired by BetterSearch which is available on Firefox. I wanted this mainly for myself nut thought it’d be worth releasing to. Will hopefully be the first of many.

Get It

Download from Google

What It Does

  • Adds links to other search results pages for: Google, Yahoo, Bing, Ask, Reddit, Digg, Technorati.
  • Adds extra info links to each result: Alexa, Robotex DNS info, Web archive

Problems

If you have any problems with the extension leave a comment.

To Come

Much more goodies including an options page to customise what is shown.

Saturday Code Quote: 3

November 29th, 2008

Step away form the computer…

newlocation must now be the absolute path on newhost.
If not we’ve been redirected to somewhere totally stupid
(oh yeah, no offsite linking, go to our fucking front page).
Say goodbye to the webserver in this case. In fact, we don’t
even say goodbye, but just drop the connection.

From the source of Liferea – A Linux RSS/news aggregator

Saturday Code Quote: 1

November 15th, 2008

This is going to be the first in a series of funny source code comments I happen to stumble across.  First up is the Apache Jakarta project…

Someone’s not flushing the office toilet – eew:

    /**
     * A Writer based on a wrapped Writer but ignoring requests to
     * close() and flush() it.  (Someone must have wrapped the
     * toilet in my office similarly...)
     */

From the source of Apache Jakarta Project.