Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I found this snippet - and about 10 others like it - in an app I am re-factoring. Apparently re-factoring db\_fetch\_assoc was too much trouble, as was finding and replacing all references to it with the new function name.
0
1591
posted 16 years ago by philsown
Sometimes, you need a jQuery tab that will close. Finding the right way to do that has been a challenge for me, personally. This is especially true when you are adding new tabs dynamically. The trick is getting the proper index of the closable elemen...
0
1688
posted 16 years ago by tbelknap
This demo expects there to be 10 video UI components on the stage ('playPauseBtn', 'stopBtn', 'backBtn', 'forwardBtn', 'seekBar', 'captionBtn', 'fullScreenBtn', 'muteBtn', 'volumeBar' and 'bufferingBar') these can all be skinned as required. You also...
1
3070
posted 16 years ago by adrianparr
initial code and concept bitten from: http://drupal.org/project/menutrails
3
2247
posted 16 years ago by electblake
You need to create the 'SWFReader.as' class file (see link above) and save it in to the package (folder structure) 'com/senocular/utils'.
1
2215
posted 16 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0
1562
posted 16 years ago by adrianparr
Keeping track of complex forms - especially those that exist within multiple jQuery UI tabs - can be a pain. This is a simple little function that will reorganize all visible inputs, buttons, drop-downs and links. Use it whenever switching between ta...
0
1666
posted 16 years ago by tbelknap
This will make links that look like this:
previous 1 2 ... 33 34 35 36 37 38 39 ... 264 265 next
You would just need to change the link in each of the numbers.
variables:
current page
total items in list
how many items per page are being dis...
0
2027
posted 16 years ago by linusx
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
2368
posted 16 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
2516
posted 16 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
1708
posted 16 years ago by rumremix
A simple PHP object which connects to a mysql database, selects fields, creates users and more..
0
2082
posted 16 years ago by djstaz0ne