Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A very dynamic and flexible bash prompt. Personally I find this to have everything needed. It shows exit status, shortens itself for long directories, and shows bash history for easy referencing.
Hopefully it doesn't get messed up.
2
1557
posted 17 years ago by robh
This is to prevent a form from being inadvertently submitted.
0
1374
posted 17 years ago by ecavazos
There may be a simpler way to do this but this is the only way I could find to solve this problem. There is no Add method for basic arrays.
2
1589
posted 17 years ago by ecavazos
A simple but usefull smarty plugin to convert a unix timestamp to any date format.
Usage: {$var|convertunix:"d-m-Y"}
2
2129
posted 17 years ago by FrankBr
Use this for background images. Put it in conditional comments in the head of your doc.
3
1752
posted 17 years ago by shellydennison
Когда нет под рукой дебаггера, а вÑÑ‘-таки хочетÑÑ Ð¿Ð¾Ñмотреть дамп маÑÑива или объекта,
приходит на помощь print_r() в коде… да вот вид не оче...
0
1208
posted 17 years ago by DeadLy
All you need todo in order to use this is just to add it to your path
0
1434
posted 17 years ago by narkisr
Arbol usado para mostrar categorias dentro de una lista
Cat1
==subcat11
Cat2
==subcat21
====subcat211
0
1166
posted 18 years ago by lisandro
Small query to help you relocate those modules you are not using anyways.
2
1616
posted 18 years ago by torkil
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC]....
6
1769
posted 18 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force removal of www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
3
1936
posted 18 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force users to use www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
5
2026
posted 18 years ago by torkil
This script can help you control the scroll of div by a simple function.
Set thr property 'scrollTop' then the scoll can be controlled.
1
1809
posted 18 years ago by multani
This function allows you to limit the amount of a string, like a sample from a post.
Create a file like function_lmt_txt.php and include it to use it.
Any comments to improve this are welcomed.
1
1052
posted 18 years ago by bioascii
This code is based on enlaces de paginacin posted by Web Design
2
1242
posted 18 years ago by shellydennison