Welcome To Snipplr


Everyone's Recent Snippets



1 ... 85 86 87 88 89 ... 554
Se pide 3 numeros al usuario y luego se pregunta si lo quiere en orden ascendente o descendente.
0 3189 posted 13 years ago by Chaqui
Add this snippet to template.php
0 899 posted 13 years ago by mktimes5
what could be placed in the * {} inorder to solve a few common issues
0 930 posted 13 years ago by prwhitehead
use an object as an array
0 1105 posted 13 years ago by prwhitehead
Set a variable by getting the URLs id with PHP. Find the the option with the name value that is equal with the variable and add "selected" to it.
0 1097 posted 13 years ago by LadyLoomis
File transfer keeping dir structure
1 889 posted 13 years ago by blackthorne
so you want to have your url structure like : yourdomain.com/post-type/286 add the following snippet to your functions.php and change the post-type names where appropriate
0 1504 posted 13 years ago by nerdsane
Command list subdirectories in current directory.
0 982 posted 13 years ago by ef
Now I've written it down maybe I'll remember it...
0 701 posted 13 years ago by tregeagle
this is a snippet from a parsing piece of code I had to do for class, basically I had to grab employee names, numbers, paycodes, hours worked, etc. and organize it. In order to align the columns I ended up using some code like this
0 1055 posted 13 years ago by nickstanish
Just call "ProcessImageAndItsThumbnail" with your newly uploaded image's URL, and it will resize it for you, and make a thumbnail as well. Just remember to set the sizes you want for these new images.
1 1134 posted 13 years ago by Krummelz
This Applescript take the selected file in Finder and open it with Sublime Text 2 (~/bin/subl). Using Alfred you can bind a global hotkey for this script, so you can edit your files with just a keypress, without worrying about the default editor.
0 1366 posted 13 years ago by bash
This Applescript take the selected file in Finder and open it with Sublime Text 2 (~/bin/subl). Using Alfred you can bind a global hotkey for this script, so you can edit your files with just a keypress, without worrying about the default editor.
0 1190 posted 13 years ago by bash
The usual way to shuffle an array uses the .sort() method with Math.round(Math.random())-0.5 This solution is highly biased based on the sort algorithm used by the browsers. A sort comparison operation has to fulfill the condition "if a>b then b<a"...
0 890 posted 13 years ago by devnull69
Understanding callbacks in jQuery animations
0 743 posted 13 years ago by handsomegenius
PHP 301 redirect code for giving a page a 301 permanently moved code
0 832 posted 13 years ago by bigroadtrip
Remove meta boxes from the Wordpress admin area. Useful for simplifying Wordpress' admin interface for your clients. Add this snippet to your Wordpress theme's functions.php file.
0 963 posted 13 years ago by f6design
This simply justifies a single line of text via CSS.
1 1287 posted 13 years ago by Kerrick
Counts numbers and places the result in row 1. To get this populated click an top row (any) cell and click Yes to the following dialogue box. Only uniquely counts number values, not text.
0 754 posted 13 years ago by sjmoorecouk
For our project, this code had been implemented in the theme template.php
0 1075 posted 13 years ago by nicoknaepen
Enabling pear on a Mac using XXAMP
0 948 posted 13 years ago by prolutions
Esto suele ocurrer muy amenudo cuando instalamos Ruby on Rails antes que MySQL. Es un error "Library not loaded: libmysqlclient.18.dylib (LoadError)" donde lista los directorios donde busca y no lo encuentra. La solución es guiarle para que lo encue...
0 1071 posted 13 years ago by skozz
Create a comma separated list of a post's custom taxonomy terms.
0 1868 posted 13 years ago by f6design
HTML Snippet for apple-touch-icon for all of the different iOS devices, and Android 2.0 supported Icon.
0 1229 posted 13 years ago by luizlopes
Requires filter added in ECP 2.1
2 936 posted 13 years ago by nciske
interesting app: http://codecanyon.net/item/socialcounter-php-class-social-statistics/282826
0 850 posted 13 years ago by czachor
Change with your id FB.
0 1163 posted 13 years ago by BebenKoben
Perform command on all hosts found in **~/.ssh/known_hosts** Works better when [**auth.sh**](http://snipplr.com/view/46699/authsh/ "auth.sh") has been run on each host first.
0 983 posted 13 years ago by cruelfate
Check the version of CentOS
0 940 posted 13 years ago by klovera
Extract groups from a Regular Expression
0 1545 posted 13 years ago by BenClayton
1 ... 85 86 87 88 89 ... 554