Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This temperature measurement script is one that comes from the original NPDS package. As formatted, it is meant to be used as an NPDS SSI tag. It obtains the current battery temperature and returns it in degrees Celsius.
0
3849
posted 19 years ago by splorp
After:
sudo port -v selfupdate
Update outdated ports with:
sudo port upgrade outdated
1
2119
posted 19 years ago by rhockens
After installing MacPorts, try running a selfupdate to grab all the latest MacPorts Portfiles (Portfiles contain information about how to install MacPorts software "ports"). You will need to run this command as an administrator, and it requires root...
0
1677
posted 19 years ago by rhockens
Shortens a string, and adds a span with a title of the full string.
Function is useful for listings where you don't want wraping; or for places where a long string liek a username can break the layout.
1
2172
posted 19 years ago by berkes
Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).
2
2062
posted 19 years ago by 1man
simply adding the tags will display the contents of the array in a much better fashion.
0
3463
posted 19 years ago by scriptmakingcom
This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan.
Cells get an additional class 'even-col' or 'odd-col'
2
2432
posted 19 years ago by berkes