Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 481 482 483 484 485 ... 553
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 1146 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 1767 posted 17 years ago by neal_grosskopf
When there's a value in a textbox, like 'search', it disappears when you click on it, and reappears when you leave (blur) it. But only if you haven't filled in anything ofcourse. Use it like this:
1 1080 posted 17 years ago by jeppeb
Applications: 1. Centered block with unknown width 2. Simple block which can have float style (f.e. horizontal menu)
1 1405 posted 17 years ago by kossmoss
This will create and then populate a MySQL table with a list of the names and USPS abbreviations for US states and possessions in existence.
3 4042 posted 17 years ago by cbrant
This will create and then populate a MySQL table with a list of the names and ISO 3166 codes for countries in existence.
5 3224 posted 17 years ago by cbrant
The code for my wordpress Archives page, there have been a few people who asked how I did it.
0 1526 posted 17 years ago by kristin
在UTF-8的編碼下縮減字串並避免中文字串最後一個字變亂碼
0 2955 posted 17 years ago by multani
Using CSS3 selectors, highlight links to deleted pages and 404 pages. Also highlight function calls to deleted javascript using this CSS technique.
4 1642 posted 17 years ago by neal_grosskopf
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0 1712 posted 17 years ago by narkisr
One thing that always bothered me about Classic ASP is that there isn't an easy way to get the entire url. So I devised a function that will get the full path including the query string.
2 6399 posted 17 years ago by neal_grosskopf
My Favorites eclipse plugins: PDT, Subversive, Aptana and Symfoclipse
0 1073 posted 17 years ago by jlbfalcao
Startup eclipse code. sudo touch /usr/bin/eclipse sudo chmod 755 /usr/bin/eclipse sudoedit /usr/bin/eclipse
0 1033 posted 17 years ago by jlbfalcao
Cowthink is an ASCII script for Linux to show text in a bubble over a cows head Picture: http://tinyurl.com/5mupb7 Download: http://www.nog.net/~tony/warez/cowsay.shtml
1 1114 posted 17 years ago by Sn0opy
https://www.chrisjmendez.com/2008/06/06/as3-regular-expression-basics/
12 2408 posted 17 years ago by chrisaiv
2 1261 posted 17 years ago by banzaiman
You'll need to download the latest version of jQuery for this to work, as it is linked in the tag. CSS/XHTML included.
15 4210 posted 17 years ago by dmosher
https://www.chrisjmendez.com/2008/06/04/ruby-open-a-text-file-and-re-write-its-contents-into-a-new-text-file/
1 1810 posted 17 years ago by chrisaiv
alternative to using DateTime.now.to_s
1 1557 posted 17 years ago by jhenry
3 1777 posted 17 years ago by johnloy
This was copied off wordpress FTP plugin
0 1422 posted 17 years ago by luizlopes
0 2650 posted 17 years ago by wintondeshong
This rendition works for most of my tasks, but the inform may need to be changed to suit base64 encoded files.
0 1496 posted 17 years ago by breakerjump
1 ... 481 482 483 484 485 ... 553