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
1172
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
1313
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
877
posted 15 years ago by rumremix
A simple PHP object which connects to a mysql database, selects fields, creates users and more..
0
1118
posted 15 years ago by djstaz0ne
execute javaScript only for iphone / ipad / ipod using jQuery, triggered on page load
7
2364
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
1132
posted 15 years ago by bradless
grep through all history from within a Subversion working directory, like:
$ svngrep SecItemCopyMatching *
0
1097
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
914
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
881
posted 15 years ago by jHulbert