Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 477 478 479 480 481 ... 553
Use sample: var inputTxt = getElementsByAttr('input', 'type', 'text');
1 1536 posted 18 years ago by kcmr
Useful for checking the status of individual bits.
0 2129 posted 18 years ago by pckujawa
See also: http://code.google.com/p/undolibrary/
2 2067 posted 18 years ago by gfazioli
1 1763 posted 18 years ago by gfazioli
Determines if a given element is visible, by checking a variety of things. Will work for CSS or inline style declarations of visible:hidden or display: none. Will check if it's inside of an invisible element, as well.
3 2390 posted 18 years ago by TALlama
'port install ruby' sometimes results in malloc errors near the final phase (just after destroot completes). It appears that macports may be out of memory while installing documentation.
0 1577 posted 18 years ago by cczona
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value. The former code (http://snipplr.com/view/3448/kill-app-after-expire-date/) was not internationalised an...
5 3636 posted 18 years ago by zingo
The “2>&1″ bit tells to pipe the standard error to the standard output. Otherwise the standard error may not be outputted by the system and you won’t have a way to troubleshoot your script.
2 2296 posted 18 years ago by jdstraughan
0 1716 posted 18 years ago by chombee
1. Allows encryption between client and server 2. Bypasses filtered port, if any on the standard port for the given service.
1 1977 posted 18 years ago by iblis
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0 1721 posted 18 years ago by iblis
Browser Support: IE5.5, IE6, IE7, Firefox 1-3, Mozilla, Opera 8-9.5, Safari(Win,Mac), Knoqueror(Linux). Use: Any Tag.
5 2522 posted 18 years ago by Ashung
1 1571 posted 18 years ago by wesbaker
3 2105 posted 18 years ago by shrop
Do this from inside a Git repository, and it will do a 'git push' every time you do a 'git commit'. This defeats a bit of the purpose of having a distributed SCM, but it's good for certain situations.
0 2407 posted 18 years ago by trey
From Drupal 5 Themes book.
2 1720 posted 18 years ago by shrop
From Drupal 5 Themes book.
2 1638 posted 18 years ago by shrop
From Drupal 5 Themes book.
3 2015 posted 18 years ago by shrop
From Drupal 5 Themes book.
2 1828 posted 18 years ago by shrop
From Drupal 5 Themes book.
1 1607 posted 18 years ago by shrop
This rule lets you define CSS rules that are visible to IE only.
0 1856 posted 18 years ago by Uzbekjon
“min-height” attribute works well in Firefox but IE ignores it. IE’s height act as FF’s min-height. Note: in IE 7 problem was fixed.
0 1806 posted 18 years ago by Uzbekjon
It’s an Internet Explorer-exclusive bug wherein an element that is floated – and given a margin in the same direction as the float – ends up with twice the specified margin size. The fix is extremely simple. All you have to do is apply a displa...
2 2069 posted 18 years ago by Uzbekjon
Change #floatbox and p selectors to anything you want...
0 1951 posted 18 years ago by Uzbekjon
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/
9 3089 posted 18 years ago by chrisaiv
1 ... 477 478 479 480 481 ... 553