Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
By default Apache won't allow you to download a file over 2GB. This PHP script overcomes that along with some extra goodies.
The script will read from standard url path the file on the server to download and display the filesize along with a link...
1
1341
posted 11 years ago by deanhouseholder
You can run this in firebug to get yourself an up to date select with all the Industries listed on this page.
http://developer.linkedin.com/documents/industry-codes
0
678
posted 11 years ago by hcker2000
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0
1167
posted 11 years ago by rickygri
* A standard multi-level list example for copy and paste in any site. Uses anchors as the default links, to be filled in later.
* Built to work with Bootstrap's default CSS, but also works fine with other CSS
* Pull the "plain" class from the [sta...
0
1115
posted 11 years ago by tymartist
Thanks to Stephen Harris for this > http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu
1
1482
posted 11 years ago by adambundy
Genius stuff right here from https://gist.github.com/BronsonQuick
1
2300
posted 11 years ago by JoshChris
http://sortwithprimes.webs.com/
Deeper description on how it works.
0
1051
posted 11 years ago by Henkish_92
Simple function to include in your script to enable multi-line text-overflow.
See the jsfiddle (http://jsfiddle.net/eAyyL/) for details on the necessary CSS and HTML layout.
0
1217
posted 11 years ago by JoshChris
This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
0
1250
posted 11 years ago by rickygri
Snippet may be usefull for cloning table header to the bottom of table.
Snippet will clone all children elements from thead, reverse and insert to tfoot. Example at jsFiddle: <a href="http://jsfiddle.net/xWWYN/">jsFiddle</a>
0
1546
posted 11 years ago by NeXTs
Create a List<String> for a specified number strings with a specified max characters (randomized...1-max). This method uses another snippet which contains initCharacterList(int, int) http://snipplr.com/view/71355/fill-character-list-from-ascii-table-...
0
1247
posted 12 years ago by borysn
See: // http://stackoverflow.com/questions/2406341/how-to-check-if-an-ip-address-is-the-local-host-on-a-multi-homed-system
0
1072
posted 12 years ago by laurenceosx
// file: install_camel-jgroups_2.11-SNAPSHOT.groovy
// url: http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT/InstallScript/install_camel-jgroups_2.11-SNAPSHOT.groovy
0
1062
posted 12 years ago by laurenceosx
- Check if any particular customer is currently logged in or not.
- Get all the logged in customers with their recent activity.
- Courtsey: <a href="http://ka.lpe.sh">http://ka.lpe.sh</a>
0
1237
posted 12 years ago by magefreak
In wordpress, if you want to auto convert all URLs in your string into clickable hyperlinks, you can actually do it using the built-in function make_clickable().
If you need to do that outside of wordpress, you can use the same function.
Example...
2
2311
posted 12 years ago by fackz
Generate numbered classes and apply variable mixins.
Base from [http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/](http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/)
0
1140
posted 12 years ago by BuschFunker
see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
0
1161
posted 12 years ago by laurenceosx
See: http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-start/7.1.1.v20100517/org/eclipse/jetty/start/Main.java#Main.stop%28int%2Cjava.lang.String%29
0
1145
posted 12 years ago by laurenceosx
Here's the basic principal behind spiders. (ex: <a href="http://giochiflash.123homepage.it">Giochi Flash</a> $html = file_get_contents('http://www.example.com');
6
5036
posted 12 years ago by haydin
This is the calling one (probably more useful if the clickable text is words, as the iPhone auto-detects phone numbers and does this automatically)
This is the SMS one, which overrides the default calling behavior (ex : <a href="http://giocaregratis...
0
1230
posted 12 years ago by haydin
The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. (ex : <a href="http://giochionline1.123homepage.it"> giochi online...
0
1327
posted 12 years ago by haydin
Add this snippet to `wp-config.php` to remove the file editor links from the WordPress admin menus. Read more about... [disabling the WordPress file editor](http://www.orderofbusiness.net/blog/disable-wordpress-file-editor/)
0
884
posted 12 years ago by tacudtap
http://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins
0
904
posted 12 years ago by hairajeshk
Use this plugin:
http://wordpress.org/extend/plugins/members/
Settings are here:
http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types
http://codex.wordpress.org/Function_Reference/register_post_type
Gravity Fo...
0
759
posted 12 years ago by ihatetomatoes
**Example of use:**
echo base64DataUri('/var/www/html/background.png');
*or*
echo base64DataUri('http://static.php.net/www.php.net/images/php.gif');
0
923
posted 12 years ago by phpdev