Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
you'll need this .htaccess file also
RewriteEngine On
RewriteBase /
RewriteRule .* - [E=INFO_API_VERSION:%{API_VERSION},NE]
RewriteRule .* - [E=INFO_AUTH_TYPE:%{AUTH_TYPE},NE]
RewriteRule .* - [E=INFO_CONTENT_LENGTH:%{CONTENT_LENGTH},NE]
Rewrit...
2
1600
posted 15 years ago by jessecary
split_to_chunks splits the string up into an array with elements containing 140 characters <b>or less</b>. This enables you to keep words intact when sending automated twitter messages.
$to is needed in order to subtract from 140 the amount of cha...
0
1634
posted 15 years ago by s0l1dsnak3123
<input>
When used instead of my SharePoint: SaveButton above, the form saved it's data correctly, and the current page that the form was submitted from was reloaded for the user.
You could also put any URL in the __redirect={} that yo...
0
1110
posted 15 years ago by rumremix
A simple PHP object which connects to a mysql database, selects fields, creates users and more..
0
1381
posted 15 years ago by djstaz0ne
execute javaScript only for iphone / ipad / ipod using jQuery, triggered on page load
7
3009
posted 15 years ago by humanoid
I recently did an upgrade using apt-get update / upgrade and one of the packages didn't fair so well so I needed to roll it back.
0
1508
posted 15 years ago by bradless
grep through all history from within a Subversion working directory, like:
$ svngrep SecItemCopyMatching *
0
1321
posted 15 years ago by zingo
via [http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/](http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/)
0
1132
posted 15 years ago by cfleschhut
While there seem to be plenty accordion examples built with jQuery, I had trouble finding one that both worked well and was easily styled. UI Tabs is a pain in the ass to modify and adds a crap load of extra DOM elements that must be accounted for wh...
2
1066
posted 15 years ago by jHulbert
Windows Registry
Windows Registry: Set open folder default icons for all A-Z drive letters and Desktop Shell Folder in Windows 7
Based upon the Drive Icon Change Windows Vista tweak and the shell icons registry settings found at the respective links below, this Windows 7 / Vista tweak will set the default icon of all A-Z drive letters (like C: for instance) and the Desktop to...
1
4410
posted 15 years ago by karlhorky