Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The CSS calc() function can be used anywhere a length, frequency, angle, time, number, or integer is required. It can be used to apply values for width/height; font-size; margins; padding; borders; shadows; border radius; text-indent;top/right/bottom...
0
919
posted 11 years ago by COBOLdinosaur
Uploading a binary file(like .doc) to Dropbox.
I tried with .ics and it worked.
0
931
posted 11 years ago by RobinD
You can use Curl to create a backup of your site easily. It is very effective method for those who complain that they lost site content.
0
853
posted 11 years ago by codehero11
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
1319
posted 11 years ago by NeXTs
I wanted a time based gantt chart in excel. Robert's excel template was very useful. The hourly gantt chart was not useful to visualize my needs. I need something with 10 mins precision to analyse patterns in jobs that are running under 15 mins. So t...
0
883
posted 11 years ago by mprabhuram
To correct the shift that happens on hover when the weight of the link is normal, but bold on hover.
0
1051
posted 11 years ago by stephcode
using this code in a stored procedure you can reset the seed of the identity column in sql server database
0
766
posted 11 years ago by PalCoder
How can I do a function once a toggleClass has completed?
The .toggleClass method along with all other animation methods return a deferred object that you can access using .promise(). At that point, you can bind to it's done method.
1
800
posted 11 years ago by satie83
For side by side ULs that become too wide on small screens/devices.
The following script let you merge or unmerge ULs depending on the size of the screen/device.
Works with jQuery
0
896
posted 11 years ago by jbernus
How to put sidebars footer on twenty twelve theme again. Part 5: add the styles necesary in style.css (this styles are no optimized -yet- for the responsive layout)
1
738
posted 11 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 4: Insert a new function (retouched from twentyeleven) in the functions.php file.
1
757
posted 11 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 3: Insert this register_sidebar at the end of the function twentytwelve_widgets_init() into functions.php
1
715
posted 11 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 2:
Create the file sidebar-footer.php into the theme directory
1
772
posted 11 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 1:
Insert the call in the footer.php
1
769
posted 11 years ago by almendro
This SQL would help you to transpose a rows into columns in SQL
0
2250
posted 11 years ago by mprabhuram
This would round down the time stamp to the nearest 5 minute interval based on first interval being 00:00:00.
0
917
posted 11 years ago by mprabhuram
I was using Groovy to use Cajo to do distributed processing and after def cajo = new Cajo(); the process would never terminate on it's own until I discovered gnu.cajo.invoke.Remote.shutdown();
0
941
posted 11 years ago by laurenceosx
This formula will automatically change a cell's background color if there is data in it. You can also change the formula to only fill cells where there is no data.
0
900
posted 11 years ago by kidmizere
This sample contains 2 macro techniques for iterating through character values on a macro %DO loop.
0
1301
posted 11 years ago by webonomic
This is a template for a UIPickerView delegate and data source. Implement these methods to manage UIPickerViews.
1
1185
posted 11 years ago by BreadicalMD