Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1353
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
1353
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
1295
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
1265
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
1341
posted 16 years ago by blackf0rk
To convert links on a twitter status to a clickable url. Also convert @ to follow link, and # to search
3
1933
posted 16 years ago by mardix
PHP
Hypo CSV crawler - online banking statements downloader from Hypovereinsbank Munich, Germany using PHP & CURL CLI
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
2396
posted 16 years ago by uioreanu
A little bit of browser detection and some functions to get the viewport height and width, crossbrowser.
1
2646
posted 16 years ago by ShiftyP
include document ready and standard code to run swfobject smoothly in IE6
1
1515
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
1116
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
1478
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
1759
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
1748
posted 16 years ago by 1man