Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
947
posted 14 years ago by adrianparr
You can see details on http://msdn.microsoft.com/en-us/library/ms178592.aspx , but I try to explain how you throw error with "uniqueidentifier" type parameters.
I convert uniqueidentifier to string (nvarchar(50)) and set a variable.
"%s" is equal...
0
1785
posted 14 years ago by emregulcan
See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).
1
1076
posted 14 years ago by riddla
JavaScript
JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position
// big thanks to these tips for giving me code to steal: http://bit.ly/bundles/brandonjp/9
/*
* USAGE: give your HTML textarea or text input element an ID
* give your button an onClick="insertThisInThere(text2insert, theInputIDwhereItGoes);"...
0
2405
posted 14 years ago by brandonjp
Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. because I forget them sometimes
from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0
from Rails Migrations http://bit.ly/hI5zpz
0
1189
posted 14 years ago by brandonjp
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
1131
posted 14 years ago by disas
Custom sorting for events based on a custom field
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
0
1100
posted 14 years ago by hussong
The docs for the Sekati SWC are here: http://docs.sekati.com/sekati/sekati/utils/ColorUtil.html
Another useful blog post: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
0
1243
posted 14 years ago by adrianparr
Every time I start coding a new Tumblr theme I find myself writing the same Tumblr tags over and over again. That's why I decided to create a boilerplate, or a framework, that I can reuse for my next projects.
I tried to cover most of the features...
4
1127
posted 14 years ago by apaunchev
A LESS class which can be included to easily allow for a page-curl/shadow on element.
*NOTE: Still needs work to allow for consistency at various sizes...*
**Usage Instructions**
* To remove reliance on javascript, setup the LESS compiler:...
6
1087
posted 14 years ago by bdiddymc
CSS3 multiple backgrounds with fallback color.
For compatibility info see http://caniuse.com/#search=multiple%20background
1
883
posted 14 years ago by Moonsheeld
HTML para Absolutamente Noobs.
Post Completo: http://kanis.com.br/
Primeira video aula da série de 10 episódios.
0
1047
posted 14 years ago by leandrokanis
Credits to 'Simon' (http://doctype.com/css-font-stack-use-myriad-pro)
1
974
posted 14 years ago by tonatiuh
PHP
How to obtain current page permalink url from a function on call on a page template and not from inside the Loop?
I got the answer to this question on WordPress Stack Exchange website:
http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is
0
1654
posted 14 years ago by racl101
Check if a string it's json encoded using regular expressions
Thanks to Jens Anders Bakke for his mootools code published in webfreak.no
http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0
1216
posted 14 years ago by jatubio
see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#for..in for details
1
1572
posted 14 years ago by martin9999uk
This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/
I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extrac...
0
844
posted 14 years ago by mgeduld
This script handles table sorting, is easy to implement and to alter and has decent documentation. I did not write this JavaScript, rather, I found it here:
http://www.kryogenix.org/code/browser/sorttable/
I used this script on the ACEE WordPr...
0
1039
posted 14 years ago by racl101
I did not, in fact write this script. I found it here:
http://www.webtoolkit.info/javascript-url-decode-encode.html
0
833
posted 14 years ago by racl101
Accessing the 37signals product Highrise API requires HTTPS. I initially had problems with this (seemingly the certificate authority) from ColdFusion initially. Found the solution by tapping into the underlying Java layer to manage the providers.
0
1074
posted 14 years ago by parkerkrhoyt
This fixes the way Magento imports data as it just keeps adding ‘straight join’ to the array which uses a lot of memory if your importing a lot of products and will kill the import.
Replace this function in /lib/Varien/Db/Select.php
This h...
0
819
posted 14 years ago by TheJasonParker
1. You'll need the perl-based rename script http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal
2. I'm using Terminal on mac so you might need to change some of your flags
0
1120
posted 14 years ago by timberjorge
You will want to include the jquery easing plugin: http://gsgd.co.uk/sandbox/jquery/easing/
Add a class of 'scroll' to any element that should slide to an anchor tag. You must give the anchor tag an id equal to the name.
1
1152
posted 14 years ago by BFTrick
When a float is contained within a container box that has a visible border or background, that float does not automatically force the container's bottom edge down as the float is made taller. Instead the float is ignored by the container and will han...
0
832
posted 14 years ago by lamebollock
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1
1266
posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1
1084
posted 14 years ago by Activetuts