Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
<?php> will random load images named (in this example) image_1.jpg up to image_5.jpg
0
925
posted 13 years ago by DeluxiveState
Use this to convert JavaScript numbers to official scientific standard form (e.g. 1.54 × 10^3)
Uses HTML <sup> tags and × symbol
Example:
var number = 4.223e20;
var stnd = standardForm(number);
// stnd = 4.223 x 10^20
0
815
posted 13 years ago by Jellybean732
With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable t...
0
840
posted 13 years ago by FatFolderDesigner
Add MessageUI.framework reference
then in header file
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
#import <MessageUI/MFMessageComposeViewController.h>
1
909
posted 13 years ago by yasirmturk
You can use this in Joomla extensions where you need to get the current language locale for example to use with Facebook Connect/Like plugins etc. in the "en_US" format. With facebooj JS, all you have to do is replace the default locale with the resu...
0
941
posted 13 years ago by burconsult
It's not immediately clear from the `context_set()` function how to trigger a context to be "active" using code. Do it like this:
0
745
posted 13 years ago by jonathanpglick
Instrucciones Mysql para crear un nuevo usuario (añadiendo valores a campos existentes en una BBDD existente) y una nueva BBDD con una tabla con cuatro campos a la que tenga acceso el usuario creado.
0
713
posted 13 years ago by alberomo
This small snippet can be used to get the children and grand children of a Wordpress page. See the comments for how it works
0
1053
posted 13 years ago by jvandemerwe