Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 308 309 310 311 312 ... 553
This snippet shows how you can detect when a FlowElement that has been added to a TextFlow object (Text Layout Framework) has run to the end of the container that is flowing into. You may have linked containers that you are flowing a load of lorem ip...
0 2859 posted 15 years ago by LeeProbert
This snippet shows how you can detect when a FlowElement that has been added to a TextFlow object (Text Layout Framework) has run to the end of the container that is flowing into. You may have linked containers that you are flowing a load of lorem ip...
0 2951 posted 15 years ago by LeeProbert
I used to have the strlen block and the 2 preg if blocks each separately return false throughout, but lately I'm in a single point of exit mindset. I cannot take credit for the regexps - I borrowed them from someone who borrowed them. If the real...
0 1413 posted 15 years ago by philsown
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 1041 posted 15 years ago by philsown
0 922 posted 15 years ago by edsonpavoni
Calculate the difference from two date in days
0 1661 posted 15 years ago by gfazioli
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 1134 posted 15 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 2360 posted 15 years ago by adrianparr
initial code and concept bitten from: http://drupal.org/project/menutrails
3 1549 posted 15 years ago by electblake
0 985 posted 15 years ago by jepedo
This will create the text 1 - 10
0 927 posted 15 years ago by linusx
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 1642 posted 15 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0 1062 posted 15 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 1107 posted 15 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 1467 posted 15 years ago by linusx
1 1587 posted 15 years ago by daipratt
0 1338 posted 15 years ago by alexandrepayet
1 ... 308 309 310 311 312 ... 553