Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Do you need you app to do something when it is first run on a certain computer? Do you need to know if it has been run before? Enter the following code into your Application Delegate.
This code creates a BOOL that is created when the app is run. T...
0
845
posted 12 years ago by zingo
Use a shortcode [sitemap] to render a sitemap ordered by custom menu order (Wordpress 3+).
0
1406
posted 12 years ago by ablears
.closest and .find are very useful - surprised I haven't heard of them before.
0
608
posted 12 years ago by inreflection7
also requires an .htpasswd file to be created in a secure directory
0
628
posted 12 years ago by ropehead
This function follows the following naming conventions: Give your checkboxes ID tags of "[contenttitle]trigger", where [contenttitle] is whatever you like. Then, give your hide-able content classes that match, without the "trigger". This function wil...
0
490
posted 12 years ago by gellpak
This goes in any phtml file to get the image from the skin folder
0
482
posted 12 years ago by uteman23
PL/SQL
Oracle Application - List Responsibilities and Responsibility Keys that are assigned to a user
I found this today and it's very useful for finding the responsibility key when trying ot run OAF from JDev.
0
1134
posted 12 years ago by theonlyalterego
You can use fluid for example in oldschool plugins without using extbase.
0
497
posted 12 years ago by pogosheep
css starting point for library websites - adds a uniform size, font weights and colors, etc for our websites
0
465
posted 12 years ago by jeremytarpley
It’s pretty straightforward, we loop the existing Views of the ScrollableView and copy each View, replacing the one to be change, to a new array. Then we tell the ScrollableView to use our new Views-array for it’s Views.
I hope this helps someon...
0
575
posted 12 years ago by chlab
We create a View with a background color, put a semi-transparent TabbedBar with empty button names on top of it, then add another layer of fully visible labels spaced to fit the TabbedBar beneath it. Everything is then wrapped in one View, which you...
0
640
posted 12 years ago by chlab
C#
TruncateOnWordBoundary - a useful extension method for cutting a string short, but not in the middle of a word.
Ever wanted a method that can truncate a string, but only on a word boundary? This method works like Substring() but doesn't snip a string in the middle of a word, i.e. it only truncates the string on a word boundary. Useful for producing a summary f...
1
997
posted 12 years ago by stewartrae