Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 129 130 131 132 133 ... 552
Rol editor con permisos para crear usuarios no pueda tocar al administrador: 1. Solo los roles "Administrator" pueden editar datos de usuarios con rol "Administrator" 2. Cualquier otro perfil con el permiso "edit_users" no puede asignar el rol...
0 1563 posted 15 years ago by davidlluna
Description: A function that add a class to an element if the element doesn't have anyone, if it already has one, add a new class name. Arguments: The elemento to which you want to add the class and the name of the class you want to add. From boo...
0 3000 posted 15 years ago by alberomo
0 1773 posted 15 years ago by mkornatz
0 2029 posted 15 years ago by ajbatac
0 1772 posted 15 years ago by ddavidd
"Escapa caracteres especiales en la cadena no escapada, teniendo en cuenta el conjunto de caracteres actual de la conexión para que sea seguro usarla en mysql_query(). Si se van a insertar datos binarios, esta función debe ser usada. mysql_real_...
0 2425 posted 15 years ago by skozz
Easily create Windows Forms Shortcuts with this class. For example: A shortcut to catch pasting via Ctrl + V. Shortcut sc = new Shortcut(this, new Action(() => MessageBox.Show("Data pasted!"))); sc.Keys.Add(Keys.ControlKey); sc.Keys.Add(Keys.V)...
0 2094 posted 15 years ago by Currysuechtig
Add the following to your active theme's functions.php file then upload an image named "avatar.jpg" to your active theme's image folder. The image can be named anything you would like but be sure to change it in the code below as well. The last st...
0 1828 posted 15 years ago by xcsteve99
This snippet will send an HTTP POST from an Arduino using the WiFly library. The library is in early alpha, and is a port from the ethernet shield library. The code here should work with either. The critical part is the size of the data to send, a...
0 4595 posted 15 years ago by parkerkrhoyt
Here you see a example to make your table background color fdifferent at last
0 3039 posted 15 years ago by Darksider3
A function to make your site title dynamic
0 1491 posted 15 years ago by Darksider3
A Class to Logging false logins and more...
0 1831 posted 15 years ago by Darksider3
No Comment^^
0 1932 posted 15 years ago by Darksider3
Con esto añadirmos un mensaje de alerta en el backend de Wordpress como los de actualizaciones y demás del propio CMS. El código se añade en el archivo function.php del theme.
0 1858 posted 15 years ago by skozz
0 1492 posted 15 years ago by flexelektro
0 2068 posted 15 years ago by resting
A simple, thread-safe wrapper class for lazy-loading data into an instance on-demand (i.e. when the instance is first accessed.) Usage: LazyLoader<Foo> l = new LazyLoader<Foo>(() => Foo.LoadFromDataSource("DB Connection String")); // For acc...
2 2677 posted 15 years ago by stewartrae
Tweaked from the icant.co.uk thumbnail generator
0 2001 posted 15 years ago by dillonchr
get token upload track download track to client ( request --> REDIRECT --> follow it to get download
0 3770 posted 15 years ago by rowntreerob
rsync doesn't like to copy files from host to host. This is sort of the "old school" unix way - tar everything to a pipe, then pipe everything out. It's how we used to copy directories remotely before we had tools like rsync. I'm definitely open to s...
0 1789 posted 15 years ago by 4fthawaiian
To check if number is valid Indian Mobile Number.
0 1621 posted 15 years ago by mukeshdak
Description: Execute different functions when the page loads in a better way than default onload JS event. Include it in the end of the JS document. Arguments: Name of the function that you want to execute when the page loads. Author: Simon Williso...
0 2057 posted 15 years ago by alberomo
A JavaScript starter with a namespace and closure
0 2432 posted 15 years ago by geekyjohn
A SWFObject embed example with all options.
0 3065 posted 15 years ago by geekyjohn
Use CSS3 to animate the colour of links.
0 2943 posted 15 years ago by geekyjohn
1 ... 129 130 131 132 133 ... 552