Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1997
posted 11 years ago by fackz
This script opens an SSL tunnel between a source host and a target host.
1
865
posted 11 years ago by miceno
Python
Replace procedural Nuke Write paths with real paths in write node by replacing the write node(s)
This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.
0
864
posted 11 years ago by throb
This SQL statesment help you to understand which trigger is going to execute first and which one is going to execute last.
0
921
posted 11 years ago by edwinet
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0
2388
posted 11 years ago by chema_ar
If you're using Rails and want to make this a global function, drop this into your application_controller and call it as a function.
Example:
# get_string_between("hellomyfriendmoto", 'o', 'm')
# > myfriend
0
1405
posted 11 years ago by joshmn
Sql table with country codes coordinates timezone utc utc-dst
usefull if you want to have human friendly time zones like America/Los_Angeles
0
4596
posted 11 years ago by decahedronhotmailcom
When I got the font from SymbolSet I was really excited to drop it into my interface but found many of the classes did not work. It looked like an encoding issue (since using the in line versions worked). Upon replacing all 570+ UTF-8 characters with...
0
1081
posted 11 years ago by paulprins
Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I find I need to restore that file.
0
873
posted 11 years ago by satie83
This can be used to get arp mac address from a ip address. Remember that MAC addresses are in arp tables (volatile), that's why a ping is done first. But i don't know if timing between ping call and arp call is enought to make sense (of pinging).
0
1671
posted 11 years ago by someguy123
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
943
posted 11 years ago by BuschFunker
Removes any lines from the file that don't start with "ERROR"
1
856
posted 11 years ago by gamerzfuse
The CSS text overflow ellipsis solution is perfect for single line truncations. I use this constantly when building mobile or responsive applications.
0
944
posted 11 years ago by chillyjames
The module allows prestashop store owners to place Facebook comment box under each product / post page where users can post comments using their Facebook ID and this helps in reducing number of spam comments.
0
2722
posted 11 years ago by fmemodules
This is a AutoHotKey.com script. It runs on Windows and allows you to lock your computer by simply hitting a single key combination and unlock it with a different one. Download the whole script at the url listed.
0
1275
posted 11 years ago by deanhouseholder
If you have a script that must be run as the root user, put this at the top:
1
1076
posted 11 years ago by deanhouseholder
In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties. Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.
0
915
posted 11 years ago by deanhouseholder