Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is the command to re-enable apache after you disabled it.
0
1697
posted 17 years ago by bhubbard
There is a similar snippet on the site, yet it is listed for Windows Powershell, while the syntax is clearly Batch, and secondly, it is very incomplete and no response is coming from the author, so I'm posting my completer version here.
Beware, th...
4
2693
posted 17 years ago by Vordreller
A basic PHP script that I simply FTP to the server and use to evaluate extensions on the server. I simply supply the extensions I require and the script does the rest of the work.
1
1969
posted 17 years ago by fackz
从数æ®åº“ä¸é€‰å‡ºå¤§äºŽ3å°äºŽ13çš„çº¯å—æ¯åŸŸå,然åŽè¿›è¡Œè¿‡æ»¤ï¼Œå¾—åˆ°åŒæ‹¼åŸŸå。
å¢žåŠ ä¸€ä¸ªæ‹¼éŸ³é¢„åˆ¤æ–,过滤掉å‰ä¸¤ä¸ªå—æ¯ä¸ç¬¦åˆæ‹¼éŸ³è¦æ±‚çš„å—符串。
0
1971
posted 17 years ago by zhengrenchi
To remove that ugly added padding from submit buttons try this
width:auto !important; seems to work for IE7
2
2939
posted 17 years ago by localhorst
/**
* @brief 给定n个整数,求一个最å°çš„æ•°ï¼Œä½¿å¾—它们除以这个数的余数ä¸é‡å¤
* @author soulmachine
* @param[in] numbers 整数数组
* @param[in] count 整数个数
* @param[in] max_norm 模的最大值
* @return...
0
2007
posted 17 years ago by soulmachine
Very useful for when you don't have Cygwin or are not running on a linux box...
0
4336
posted 17 years ago by abwaters
Simple way to escape string for LIKE statements, useful for searches.
3
1913
posted 17 years ago by robv
I just put all the functions in here
the validateConfPass function uses the key event and the two text fields to change the background color of the confPassword field when it does not equal the pass field
0
2019
posted 17 years ago by jlvallelonga
send in an event
it returns the key that you pressed if it was alphanumeric or backspace
otherwise it returns "-1"
use with getKeyCode and isAlphaNumeric
0
1630
posted 17 years ago by jlvallelonga
to use this function send in an ASCII character code (use my getKeyCode function)
it will return true if the code corresponds to a printable character (not backspace code - 8, enter code - 13, or "undefined")
0
1618
posted 17 years ago by jlvallelonga
<h2>POSH => HTML semántico</h2>
http://aprendiendoweb.com/2008/08/posh-html-semantico
<ol>
<li>Debe ser HTML válido</li>
<li>No se deben usar elementos de presentación como <b> o <i></li>
<li>Todos los estilos deben darse usando C...
2
1607
posted 17 years ago by demixo
Clojsure composition in Groovy (functional style programing).
@http://www.ibm.com/developerworks/java/library/j-pg08235/index.html
0
1950
posted 17 years ago by narkisr
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items.
The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5
2298
posted 17 years ago by kristarella
PHP
Rewrite Drupal's File system paths to remove redundant sites/example.com (alternate settings.php method)
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested.
In settings.php, put this code:
0
1828
posted 17 years ago by zachharkey