Welcome To Snipplr


Everyone's Recent Snippets



1 ... 480 481 482 483 484 ... 553
0 1154 posted 17 years ago by johnloy
1 1412 posted 17 years ago by rwczippy
2 1550 posted 17 years ago by morroida
0 2812 posted 17 years ago by morroida
1 1436 posted 17 years ago by ezerick
0 1040 posted 17 years ago by 6e
3 2319 posted 17 years ago by Anthony
4 2370 posted 17 years ago by Anthony
5 1699 posted 17 years ago by iTony
REXML does not seem to have a 'lang' method, which is strange since lang is in the XML 1.0 Specification §2.12 'Language Identification', and in many other libraries. Because of Ruby's 'monkey patching', it's pretty easy to add - you just recursivel...
1 1230 posted 17 years ago by tommorris
Allow for easier editing of content by users who didn't make the site.
1 1326 posted 17 years ago by EvanL
6 1293 posted 17 years ago by blackabee
Test-first programming, in which you write the unit tests first with the unittest module and then work on the code until it passes all the tests, seems like a good substitute for writing interfaces or documentation first. The unit tests are like an A...
0 1529 posted 17 years ago by chombee
0 1436 posted 17 years ago by JustinCrossman
This example shows how to compile the hello.c file out of the fuse source tar.
0 1283 posted 17 years ago by narkisr
2 1495 posted 17 years ago by cr4zyguy
By the legendary abigail. Fails to match if and only if it is matched against a prime number of 1's. That is, '11' fails, but '1111' does not. I once heard him talk why this works, but I forgot most of it.
3 1882 posted 17 years ago by banzaiman
I made this simple JavaScript to save me time. I was sick of having to thumb-bash on a tiny keypad or login to the slow Clickatell site and use their clunky interface (nothing it simpler than 2 text boxes and an OK button). You will need an HTTP A...
1 1521 posted 17 years ago by mountainash
Loads the contens of a dir an sorts them by the date of creation.
2 2143 posted 17 years ago by romanos
0 1253 posted 17 years ago by cczona
Using this convention, you can override any system table setting.
1 1473 posted 17 years ago by shrop
0 1151 posted 17 years ago by Meestercor
1 1330 posted 17 years ago by Juanje
https://www.chrisjmendez.com/2008/06/11/show-hidden-folders-and-files-in-os-x-leopard/
2 1781 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/11/how-to-use-ems-when-youre-already-comfortable-with-pixels/
2 1486 posted 17 years ago by chrisaiv
This is my implementation of the messager pattern used by Panda3D for event handling. It's a really nice idea but I think Panda's version is implemented weirdly, it uses the subscribe objects as keys in the dictionary. That means that if you want...
0 1273 posted 17 years ago by chombee
Use this function to create a unique class name based on the page's url. It makes for a great way to drill down with specificity in CSS later by placing this on the ID or as a Class on the body tag.
1 1891 posted 17 years ago by neal_grosskopf
1 ... 480 481 482 483 484 ... 553