Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This persists the dynamic classes generate by the .net serialize to disk at location
C:\Documents and Settings\A063913\ASPNET\Local Settings\Temp
Note. This will allow you to debug into the serialized classes from VS2005
1
2058
posted 18 years ago by rengber
Open up terminal, paste the code below, then log your user out.
0
1830
posted 18 years ago by chrisaiv
Apologies if I haven't explained this to well, I'm still trying to get my head round closures.
0
1626
posted 18 years ago by 1man
This method allows you to call a function as a method of another object. The first argument the call method expects is the object it is to operate on. Any others are part of the function. Note how the this keyword now refers to the comp object, so a...
0
1816
posted 18 years ago by 1man
The important thing to notice is the () operator in a[2]. It is invoking the function inside a[0] with the argument a[1].
1
1897
posted 18 years ago by 1man
Every function has an object called the arguments object. This is an object that contains all the arguments that were passed to the function. The example below shows how to access these. Very rarely used but useful to know. Note: it may look like an...
2
2255
posted 18 years ago by 1man
Simple way of allowing functions to take optional arguments. Always place the optional arguments last, so you don't have to explicitly pass an argument as "undefined".
3
2046
posted 18 years ago by 1man
Implement "Asides" in a WordOress blog just with the Sandbox theme and CSS
2
1778
posted 18 years ago by j_junyent
Si miramos al horizonte empieza a deslumbrar el futuro del CSS, con la salida de CSS3 la vida de los diseñadores web va a mejorar considerablemente y no es para menos, por que con las mejoras que se están acercando ¿quien no se aprovechará de ell...
4
1934
posted 18 years ago by j_junyent
Getting SuperSleight running on a page is quite straightforward, you just need to link the supplied JavaScript file into your document inside conditional comments so that it is delivered to only Internet Explorer 6 or older.
3
2655
posted 18 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1
2050
posted 18 years ago by iTony
Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
1
2449
posted 18 years ago by engel
Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
2
2266
posted 18 years ago by engel
Pass a user-inputted variable to this function in order to prevent SQL injection. Example:
mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");
Instead of:
mysql_query("INSERT INTO table VALUES('" . $_POST["var...
34
13792
posted 18 years ago by engel
ej:
echo keepqsSinParametro('hola','hola=mundo&mundo=lindo&hola=chau'); #out = mundo=lindo
0
1713
posted 18 years ago by nicolaspar
this launches vi so you can add the files/dirs you want to ignore. i'm not happy.
4
2029
posted 18 years ago by mandric