Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Firefoxã¯HTML4.0以外ã®DOCTYPE宣言ã¤ã‘ã‚‹ã¨100%表示ã®FlashãŒä¸€éƒ¨ã—ã‹è¡¨ç¤ºã•れãªã„ãƒã‚°ãŒã‚ã‚‹ãã†ã€‚
å‚考サイト
http://uu-uu.com/blog/2006/10/flash_100another_htmllint.html
2
898
posted 18 years ago by kyokutyo
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2
992
posted 18 years ago by gtcaz
This functions allows you to create a new XMLHTTPRequest, it checks to see if the browser supports each method, if not it returns false.
4
1342
posted 18 years ago by 1man
This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.
2
1147
posted 18 years ago by 1man
Needed a way to mix up the order of questions and answers for a Flash quiz. https://www.chrisjmendez.com/2007/02/21/as1-swap-numbers/
0
839
posted 18 years ago by chrisaiv
This replaces the PHP-based function in the HTML bundle. You need to add two files to your bundle's Support/lib folder (create the directories if they're not present):
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vend...
6
1597
posted 18 years ago by gtcaz
Alternative bundle command for e (http://www.e-texteditor.com) or TextMate.
Replace YOUR_API_KEY_HERE with a valid API key -- you can find it on your Settings page (http://snipplr.com/settings/).
Changed the command to allow selection of langua...
10
1198
posted 18 years ago by gtcaz
This command allows you to browse your snippet collection on Snipplr and retrieve them into e. Requires the installation of the wxCocoaDialog exe in the /Support/bin subdirectory.
Replace YOUR_API_KEY_HERE with the API key -- you can find it on y...
6
1276
posted 18 years ago by gtcaz
used to remove unnecessary duplication of code. Code is from Jamis Buck (http://weblog.jamisbuck.org/2007/1/24/object-with_options)
1
869
posted 18 years ago by andyh
Helps identify correctly the type of whatever you put as an argument. This was adapted from http://www.planetpdf.com/developer/article.asp?ContentID=testing_for_object_types_in_ja
3
1155
posted 18 years ago by rolandog
Usage of Server, Response and Request object with HttpContext declaration from external class
0
951
posted 18 years ago by miziomon
Here's a quick block of code that adds a valid Atom feed to you Grails application. Validate here: http://feedvalidator.org/check?url=http://aboutgroovy.com/item/atom
1
849
posted 18 years ago by scottdavis99
The AMR video and audio codec the license distribution is unclear. But you download the reference implementation here to insert in the respective avcodec library directory of ffmpeg :
http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series
0
1062
posted 18 years ago by adulau
Used for rounding corners of a div. Need an upper left corner and an upper right corner. Example page is http://www.ruby-lang.org/en/documentation/quickstart/
3
1109
posted 18 years ago by ryanprel
Rails builds on the standard Ruby observer, so you can too.
Originally found at http://rails.techno-weenie.net/forums/1/topics/672?page=6,
so don't give me any credit ;)
2
861
posted 18 years ago by stuckinrealtime
This is a website specific script... pops up the source of an OPML file with 145+ podcasts.
http://www.productivity501.com/2006/11/free_academic_p.html
Note: The 'bookmarklet' format is included as a comment at the bottom... (write in a webpage a...
1
901
posted 18 years ago by rolandog
Sends a request to a supplied path for a given host. It can send either a GET or POST request and can pass parameters.
2
1058
posted 18 years ago by ryansobol
Patch para quitar el molesto cartel en una sola linea de codigo.
Lo interesante es que hace una cola de funciones para el "OnLoad".
Mas que nada sirve si tenes un sitio armado y tenes que meter este patch en todas tus paginas. Con la funcion "fixO...
2
1099
posted 18 years ago by inakiabt
This snippets try to download itself from http://snipplr.com using xml-rpc
6
1182
posted 18 years ago by arcturus
Caja con esquinas redondeadas y un borde de diferente color tambien redondeado. Más info en: http://www.curvycorners.net/
0
841
posted 18 years ago by aurele
No es necesario redondear los vertices de la imagen para darle una apariencia tal. Más info en: http://www.curvycorners.net/
0
935
posted 18 years ago by aurele
A simple function to check if the request comes from an AJAX XMLHttpRequest.
Use it if your page should behave differently when called from AJAX.
Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/
29
7633
posted 18 years ago by TC
Found on the jquery mailing list: http://jquery.com/discuss/2006-April/004625/
The url shows it in action, checking text when you move away from a field.
4
1355
posted 18 years ago by TC
A great way to work on website in Mac OS X is to set up a vhost. Doing so is very easy. In System Preferences click on Sharing and then make sure you have Personal Web Sharing turned on. Then, open or create your vhosts.conf file (/private/etc/httpd/...
4
1528
posted 18 years ago by jonhenshaw
Heres how to use
print_r(browser_detection('full'));
We can also use this script
print "IP: ". $_SERVER['REMOTE_ADDR'].""; ### IP ADDRESS ##
print "Browser:" . $_SERVER["HTTP_USER_AGENT"].""; ## Browser
print "OS: ". $_ENV["OS"]; ### OS
8
1185
posted 18 years ago by mail_json
If you want your pages to be valid XHTML-Strict, but you also wish to open external links in new window, the following snippet is doing just that—sets attribute target=“_blank†to all external links in a document to keep your code valid XHTML-S...
2
1347
posted 18 years ago by zensir
Bash
Dynamic IP update (to DNS service like zoneedit or dyndns) inside a local LAN or behind a router
Useful if you are behind a router, or in a LAN, and you didn't make (or can't have) a direct ppp connection to the ISP.
Change "myweb.com" to the correct hostname
For example to update zoneedit zone:
#update_dns_ip.sh
wget -O - --http-user= --ht...
0
1104
posted 18 years ago by yuconner
Table with style as in;
http://24ways.org/examples/tables-with-style/table_columns.html
14
1516
posted 18 years ago by zensir