Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 300 301 302 303 304 ... 552
// Taken from : // http://www.west-wind.com/weblog/posts/42319.aspx
0 1814 posted 16 years ago by delikassap
jQuery has a built in method that allows developers to store information inside elements. Learn how to use the .data() method and view some examples of how this can be used.
1 2065 posted 16 years ago by neal_grosskopf
Turning a dictionary into a list or an iterator is easy. To get a list of keys, you can just cast the dict into a list. It's cleaner, though to call .keys() on the dictionary to get a list of the keys, or .iterkeys() to get an iterator. Similarly, yo...
0 1719 posted 16 years ago by magicrebirth
1 1680 posted 16 years ago by tvanzele
this is all the actions needed for auth and the users login/register system
0 1551 posted 16 years ago by sevennbsp
this is the entire app_controller code with auth setup and use in it.
0 1563 posted 16 years ago by sevennbsp
If you accidentally exit while doing an interactive rebase, you can clean it with this command.
0 1842 posted 16 years ago by stayce
Paste this in address bar a viola!
0 1809 posted 16 years ago by landonmiller
Another common use of Auth component variables is to allow access to certain methods without the user being logged in (by default Auth restricts access to every action except the login and logout methods).
0 1932 posted 16 years ago by TioSolid
cleanly display the memory used so you know when your going over, especially useful for memory hog drupal sites.
1 1911 posted 16 years ago by electblake
This code will walk all elements from a given selector.
0 2189 posted 16 years ago by linusx
1 2173 posted 16 years ago by jepedo
0 1976 posted 16 years ago by cs2css3
0 1417 posted 16 years ago by cs2css3
0 1442 posted 16 years ago by cs2css3
0 3865 posted 16 years ago by cs2css3
the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.
0 2248 posted 16 years ago by iloveitaly
0 1809 posted 16 years ago by eme_dlr
Makes same-page links scroll smoothly instead of jumping around the page.
2 2061 posted 16 years ago by zachdunn
Un objeto QMenu tiene siempre un objeto QAction, aunque no lo hayas creado tú. Por esta razón si queremos ocultar un QMenu vacío no nos sirve llamar al método setHidden (o a setVisible) como normalmente harías.
0 1505 posted 16 years ago by Bloomy
To style the text in a TextArea component, create a TextFormat object and pass it to the TextArea's setStyle method.
0 2641 posted 16 years ago by adrianparr
Using a sorted list remove all the lines in file2 from file1
0 1525 posted 16 years ago by benpjohnson
0 4733 posted 16 years ago by latsnip
Sample BASH .profile for use in cygwin for windows.
0 1575 posted 16 years ago by gripnrip
1 ... 300 301 302 303 304 ... 552