Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 427 428 429 430 431 ... 553
3 1157 posted 16 years ago by joeymarchy
Simple markup example in YAML.
0 1584 posted 16 years ago by 1man
A dictionary-like class that can be used to assign unique integer IDs to names. This class is part of the [igraph library](http://igraph.sourceforge.net), but I need it occasionally in other projects so I post it here.
1 1441 posted 16 years ago by ntamas
An example of utilizing a category in Groovy in order to create withIndexfunctionality on lists each methods (traversing the list and having the index on each step), @ http://markmail.org/message/pa2irg4mvydpxi7c
0 1427 posted 16 years ago by narkisr
About the dd command: dd if=<source> of=<target> bs=<byte>("USUALLY" some power of 2, not less than 512 bytes(ie, 512, 1024, 2048, 4096, 8192, 16384[/b], but can be ANY reasonable number.) skip= seek= conv=<conversion>. Source is the data being...
0 1363 posted 16 years ago by webonomic
If you want to have a JavaScript confirmation alert to popup before executing the codebehind (e.g. asking the user if they really want to delete a record):
1 1362 posted 16 years ago by blackf0rk
If you need to get the DataKey value in RowDataBound (e.g. Assigning the DataKey to the CommandArgument of a button):
0 1394 posted 16 years ago by blackf0rk
0 1111 posted 16 years ago by lucastex
0 2181 posted 16 years ago by eden159
To convert links on a twitter status to a clickable url. Also convert @ to follow link, and # to search
3 2019 posted 16 years ago by mardix
updated 2013-04-18! just replace the XXX fields with your own numbers. Then run this PHP Script from the command line (CLI mode). It will fetch the online statements from Hypovereinsbank direct banking. The code works by tweaking CURL settings...
0 2506 posted 16 years ago by uioreanu
A little bit of browser detection and some functions to get the viewport height and width, crossbrowser.
1 2726 posted 16 years ago by ShiftyP
1 1485 posted 16 years ago by apro2000
include document ready and standard code to run swfobject smoothly in IE6
1 1584 posted 16 years ago by apro2000
This is a little trick I've used a few times to emulate Folders on a site and drop the extensions. In this example I'm using a PHP site but could easily be ported for other file types. One caveat to look out for is files will not always want to be ca...
1 1202 posted 16 years ago by jackkeller
This is a CSS reset snippet for the default (yui-navset-top) style of YUI TabView 2.7.0. This snippet enables rapid TabView prototyping and makes it easy to overwrite the default style while still serving the main CSS from Yahoo!'s servers. Note:...
0 1549 posted 16 years ago by jlizarraga
The 'request' and 'response' objects are chock full of useful info. But console can't usually access them. Here's how: start the server with the -u option, insert a breakpoint where you would like to have access to the controllers/helpers/etc. Wh...
1 1849 posted 16 years ago by cczona
A very simple plug-in I wrote to make x number of columns equal height. Looks for the column with the biggest height then sets the rest to the same. I'm sure it can be made cleaner, will look into that later.
4 1840 posted 16 years ago by 1man
1 ... 427 428 429 430 431 ... 553