Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 42 43 44 45 46 ... 552
filter out by category ID in Magento
0 2126 posted 13 years ago by tomle123
append this to switch to different Stores in Magento
0 2882 posted 13 years ago by tomle123
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 4940 posted 13 years ago by fackz
This script opens an SSL tunnel between a source host and a target host.
1 2206 posted 13 years ago by miceno
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 2229 posted 13 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 2244 posted 13 years ago by edwinet
This script enables the conversion of the HTML files available in the ePub format in only one PDF file
0 4556 posted 13 years ago by chema_ar
From Java Concurrency in practice
0 1903 posted 13 years ago by fahrenx
A random number generator using a for-loop.
0 2227 posted 13 years ago by karellism
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 4667 posted 13 years ago by joshmn
# layout para un panel con scrollbars
0 2940 posted 13 years ago by lecksfrawen
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 6900 posted 13 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 2347 posted 13 years ago by paulprins
Create Thumbnail of an image in Java
0 3257 posted 13 years ago by roizaig
Java Fast File Copy using NIO
0 2133 posted 13 years ago by roizaig
Connecting to Oracle using Java JDBC
0 1851 posted 13 years ago by roizaig
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 2155 posted 13 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 4311 posted 13 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 3057 posted 13 years ago by BuschFunker
Removes any lines from the file that don't start with "ERROR"
1 3989 posted 13 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 3126 posted 13 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 4699 posted 13 years ago by fmemodules
Call this function to activate a named window.
0 4269 posted 13 years ago by deanhouseholder
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 4840 posted 13 years ago by deanhouseholder
If you have a script that must be run as the root user, put this at the top:
1 2479 posted 13 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 2353 posted 13 years ago by deanhouseholder
ffmpeg - Convert Sony Cybershot MPG file to mp4 for JavaFX 2
0 4648 posted 13 years ago by laurenceosx
This type of conversion is very fast because the main audio video content is just copied (not converted) to a new container type of file.
1 4689 posted 13 years ago by laurenceosx
Create this in: ~/.bash_aliases.
0 1730 posted 13 years ago by lddurbin
Drop this in your project dir and run it. This will recursively kill CVS files and folders.
0 4123 posted 13 years ago by laurenceosx
1 ... 42 43 44 45 46 ... 552