Welcome To Snipplr


You searched for: http

Everyone's Recent Snippets



FirefoxはHTML4.0以外のDOCTYPE宣言つけると100%表示のFlashが一部しか表示されないバグがあるそう。 参考サイト http://uu-uu.com/blog/2006/10/flash_100another_htmllint.html
2 957 posted 18 years ago by kyokutyo
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2 1058 posted 18 years ago by gtcaz
Simple Ajax POST request using the getHTTPObject function.
2 1163 posted 18 years ago by 1man
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 1419 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 1240 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 904 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 1672 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 1282 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 1382 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 970 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 1239 posted 18 years ago by rolandog
Usage of Server, Response and Request object with HttpContext declaration from external class
0 1044 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 911 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 1137 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 1176 posted 18 years ago by ryanprel
Seen here: http://textsnippets.com/posts/show/319
1 1831 posted 18 years ago by huckeduster
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 940 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 977 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 1129 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 1190 posted 18 years ago by inakiabt
This snippets try to download itself from http://snipplr.com using xml-rpc
6 1264 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 908 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 999 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 7841 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 1446 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 1607 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 1266 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 1418 posted 18 years ago by zensir
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 1188 posted 18 years ago by yuconner
Table with style as in; http://24ways.org/examples/tables-with-style/table_columns.html
14 1591 posted 18 years ago by zensir